OLD | NEW |
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 Loading... |
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_ |
OLD | NEW |