// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
#define WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__

#include "net/base/load_flags.h"
#include "net/test/test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/appcache/appcache_interfaces.h"

class UnittestTestServer : public net::TestServer {
 public:
  UnittestTestServer()
      : net::TestServer(net::TestServer::TYPE_HTTP,
                        FilePath(FILE_PATH_LITERAL("webkit/data"))) {
  }
};

#endif  // WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__

// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__
#define WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__

#include "net/base/load_flags.h"
#include "net/test/test_server.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webkit/appcache/appcache_interfaces.h"

class UnittestTestServer : public net::TestServer {
 public:
  UnittestTestServer()
      : net::TestServer(net::TestServer::TYPE_HTTP,
                        net::TestServer::kLocalhost,
                        FilePath(FILE_PATH_LITERAL("webkit/data"))) {
  }
};

#endif  // WEBKIT_GLUE_UNITTEST_TEST_SERVER_H__

Remove usage of a deprecated TestServer constructor.
Remove usage of a deprecated TestServer constructor.

Hostname must now be explicitly specified (previously default was 127.0.0.1). See the following CL for further details:

http://codereview.chromium.org/9369029/

A follow-up CL will remove the deprecated constructor:

http://codereview.chromium.org/9431002/

BUG=114369
TEST=everything still compiles and passes


Review URL: http://codereview.chromium.org/9429052

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@123095 0039d316-1c4b-4281-b951-d872f2087c98
