Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(483)

Unified Diff: content/test/layout_test_http_server.h

Issue 16268011: Remove InProcessBrowserLayoutTest, since we now run layout tests in content_shell (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: updates Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/layout_browsertest.cc ('k') | content/test/layout_test_http_server.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/layout_test_http_server.h
diff --git a/content/test/layout_test_http_server.h b/content/test/layout_test_http_server.h
deleted file mode 100644
index 80587f733fba80069d9bcbfee358e36c3e3ec8b2..0000000000000000000000000000000000000000
--- a/content/test/layout_test_http_server.h
+++ /dev/null
@@ -1,57 +0,0 @@
-// Copyright (c) 2011 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 CONTENT_TEST_LAYOUT_TEST_HTTP_SERVER_H_
-#define CONTENT_TEST_LAYOUT_TEST_HTTP_SERVER_H_
-
-#include "base/compiler_specific.h"
-#include "base/files/file_path.h"
-
-#if defined(OS_WIN)
-#include "base/win/scoped_handle.h"
-#endif
-
-namespace content {
-
-// This object bounds the lifetime of an external HTTP server
-// used for layout tests.
-//
-// NOTE: If you're not running a layout test, you probably want
-// a more lightweight net/test/test_server HTTP server.
-class LayoutTestHttpServer {
- public:
- LayoutTestHttpServer(const base::FilePath& root_directory, int port);
- ~LayoutTestHttpServer();
-
- // Starts the server. Returns true on success.
- bool Start() WARN_UNUSED_RESULT;
-
- // Stops the server. Returns true on success.
- //
- // NOTE: It is recommended to explicitly call Stop and check its return value.
- // If Stop fails, the server is most likely still running and future attempts
- // to bind to the same port will fail, possibly resulting in further test
- // failures.
- bool Stop() WARN_UNUSED_RESULT;
-
- int port() const { return port_; }
-
- private:
- base::FilePath root_directory_; // Root directory of the server.
-
- int port_; // Port on which the server should listen.
-
- bool running_; // True if the server is currently running.
-
-#if defined(OS_WIN)
- // JobObject used to clean up orphaned child processes.
- base::win::ScopedHandle job_handle_;
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(LayoutTestHttpServer);
-};
-
-} // namespace content
-
-#endif // CONTENT_TEST_LAYOUT_TEST_HTTP_SERVER_H_
« no previous file with comments | « content/test/layout_browsertest.cc ('k') | content/test/layout_test_http_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698