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

Side by Side Diff: content/test/layout_test_http_server.h

Issue 11346016: Move remaining content test code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/test/layout_browsertest.cc ('k') | content/test/layout_test_http_server.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_TEST_LAYOUT_TEST_HTTP_SERVER_H_ 5 #ifndef CONTENT_TEST_LAYOUT_TEST_HTTP_SERVER_H_
6 #define CONTENT_TEST_LAYOUT_TEST_HTTP_SERVER_H_ 6 #define CONTENT_TEST_LAYOUT_TEST_HTTP_SERVER_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 10
11 #if defined(OS_WIN) 11 #if defined(OS_WIN)
12 #include "base/win/scoped_handle.h" 12 #include "base/win/scoped_handle.h"
13 #endif 13 #endif
14 14
15 namespace content {
16
15 // This object bounds the lifetime of an external HTTP server 17 // This object bounds the lifetime of an external HTTP server
16 // used for layout tests. 18 // used for layout tests.
17 // 19 //
18 // NOTE: If you're not running a layout test, you probably want 20 // NOTE: If you're not running a layout test, you probably want
19 // a more lightweight net/test/test_server HTTP server. 21 // a more lightweight net/test/test_server HTTP server.
20 class LayoutTestHttpServer { 22 class LayoutTestHttpServer {
21 public: 23 public:
22 LayoutTestHttpServer(const FilePath& root_directory, int port); 24 LayoutTestHttpServer(const FilePath& root_directory, int port);
23 ~LayoutTestHttpServer(); 25 ~LayoutTestHttpServer();
24 26
(...skipping 18 matching lines...) Expand all
43 bool running_; // True if the server is currently running. 45 bool running_; // True if the server is currently running.
44 46
45 #if defined(OS_WIN) 47 #if defined(OS_WIN)
46 // JobObject used to clean up orphaned child processes. 48 // JobObject used to clean up orphaned child processes.
47 base::win::ScopedHandle job_handle_; 49 base::win::ScopedHandle job_handle_;
48 #endif 50 #endif
49 51
50 DISALLOW_COPY_AND_ASSIGN(LayoutTestHttpServer); 52 DISALLOW_COPY_AND_ASSIGN(LayoutTestHttpServer);
51 }; 53 };
52 54
55 } // namespace content
56
53 #endif // CONTENT_TEST_LAYOUT_TEST_HTTP_SERVER_H_ 57 #endif // CONTENT_TEST_LAYOUT_TEST_HTTP_SERVER_H_
OLDNEW
« 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