OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ | 5 #ifndef CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ |
6 #define CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ | 6 #define CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/cancelable_callback.h" | 10 #include "base/cancelable_callback.h" |
11 #include "base/file_path.h" | 11 #include "base/file_path.h" |
12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
13 #include "base/process.h" | 13 #include "base/process.h" |
14 #include "base/win/scoped_handle.h" | 14 #include "base/win/scoped_handle.h" |
15 #include "chrome/browser/browser_process_impl.h" | 15 #include "chrome/browser/browser_process_impl.h" |
16 #include "chrome_frame/test/net/test_automation_provider.h" | 16 #include "chrome_frame/test/net/test_automation_provider.h" |
17 #include "chrome_frame/test/test_server.h" | 17 #include "chrome_frame/test/test_server.h" |
18 #include "chrome_frame/test_utils.h" | 18 #include "chrome_frame/test_utils.h" |
19 #include "content/public/browser/browser_main_parts.h" | 19 #include "content/public/browser/browser_main_parts.h" |
20 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
21 #include "net/base/net_test_suite.h" | 21 #include "net/base/net_test_suite.h" |
22 | 22 |
23 class CommandLine; | 23 class CommandLine; |
24 class FakeBrowserProcessImpl; | 24 class FakeBrowserProcessImpl; |
25 class ProcessSingleton; | 25 class ProcessSingleton; |
| 26 |
| 27 namespace net { |
26 class ScopedCustomUrlRequestTestHttpHost; | 28 class ScopedCustomUrlRequestTestHttpHost; |
| 29 } // namespace net |
27 | 30 |
28 namespace content { | 31 namespace content { |
29 class NotificationService; | 32 class NotificationService; |
30 } // namespace content | 33 } // namespace content |
31 | 34 |
32 namespace logging_win { | 35 namespace logging_win { |
33 class FileLogger; | 36 class FileLogger; |
34 } // namespace logging_win | 37 } // namespace logging_win |
35 | 38 |
36 namespace chrome_frame_test { | 39 namespace chrome_frame_test { |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 // will be called. | 118 // will be called. |
116 static DWORD WINAPI RunAllUnittests(void* param); | 119 static DWORD WINAPI RunAllUnittests(void* param); |
117 | 120 |
118 void TakeDownBrowser(); | 121 void TakeDownBrowser(); |
119 | 122 |
120 protected: | 123 protected: |
121 base::win::ScopedHandle test_thread_; | 124 base::win::ScopedHandle test_thread_; |
122 base::ProcessHandle crash_service_; | 125 base::ProcessHandle crash_service_; |
123 DWORD test_thread_id_; | 126 DWORD test_thread_id_; |
124 | 127 |
125 scoped_ptr<ScopedCustomUrlRequestTestHttpHost> override_http_host_; | 128 scoped_ptr<net::ScopedCustomUrlRequestTestHttpHost> override_http_host_; |
126 | 129 |
127 scoped_ptr<test_server::SimpleWebServer> test_http_server_; | 130 scoped_ptr<test_server::SimpleWebServer> test_http_server_; |
128 test_server::SimpleResponse chrome_frame_html_; | 131 test_server::SimpleResponse chrome_frame_html_; |
129 | 132 |
130 // The fake chrome instance. | 133 // The fake chrome instance. |
131 scoped_ptr<FakeExternalTab> fake_chrome_; | 134 scoped_ptr<FakeExternalTab> fake_chrome_; |
132 ScopedChromeFrameRegistrar registrar_; | 135 ScopedChromeFrameRegistrar registrar_; |
133 int test_result_; | 136 int test_result_; |
134 | 137 |
135 private: | 138 private: |
(...skipping 17 matching lines...) Expand all Loading... |
153 scoped_ptr<ProcessSingleton> process_singleton_; | 156 scoped_ptr<ProcessSingleton> process_singleton_; |
154 base::CancelableClosure timeout_closure_; | 157 base::CancelableClosure timeout_closure_; |
155 scoped_ptr<logging_win::FileLogger> file_logger_; | 158 scoped_ptr<logging_win::FileLogger> file_logger_; |
156 FilePath log_file_; | 159 FilePath log_file_; |
157 scoped_ptr<chrome_frame_test::IEConfigurator> ie_configurator_; | 160 scoped_ptr<chrome_frame_test::IEConfigurator> ie_configurator_; |
158 | 161 |
159 DISALLOW_COPY_AND_ASSIGN(CFUrlRequestUnittestRunner); | 162 DISALLOW_COPY_AND_ASSIGN(CFUrlRequestUnittestRunner); |
160 }; | 163 }; |
161 | 164 |
162 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ | 165 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ |
OLD | NEW |