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" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 | 42 |
43 class FakeExternalTab { | 43 class FakeExternalTab { |
44 public: | 44 public: |
45 FakeExternalTab(); | 45 FakeExternalTab(); |
46 virtual ~FakeExternalTab(); | 46 virtual ~FakeExternalTab(); |
47 | 47 |
48 virtual void Initialize(); | 48 virtual void Initialize(); |
49 virtual void InitializePostThreadsCreated(); | 49 virtual void InitializePostThreadsCreated(); |
50 virtual void Shutdown(); | 50 virtual void Shutdown(); |
51 | 51 |
52 const FilePath& user_data() const { | 52 const base::FilePath& user_data() const { |
53 return user_data_dir_; | 53 return user_data_dir_; |
54 } | 54 } |
55 | 55 |
56 FakeBrowserProcessImpl* browser_process() const; | 56 FakeBrowserProcessImpl* browser_process() const; |
57 | 57 |
58 private: | 58 private: |
59 scoped_ptr<FakeBrowserProcessImpl> browser_process_; | 59 scoped_ptr<FakeBrowserProcessImpl> browser_process_; |
60 FilePath overridden_user_dir_; | 60 base::FilePath overridden_user_dir_; |
61 FilePath user_data_dir_; | 61 base::FilePath user_data_dir_; |
62 scoped_ptr<content::NotificationService> notificaton_service_; | 62 scoped_ptr<content::NotificationService> notificaton_service_; |
63 | 63 |
64 DISALLOW_COPY_AND_ASSIGN(FakeExternalTab); | 64 DISALLOW_COPY_AND_ASSIGN(FakeExternalTab); |
65 }; | 65 }; |
66 | 66 |
67 // The "master class" that spins the UI and test threads. | 67 // The "master class" that spins the UI and test threads. |
68 // | 68 // |
69 // In this weird test executable that pretends to almost be Chrome, it | 69 // In this weird test executable that pretends to almost be Chrome, it |
70 // plays a similar role to ChromeBrowserMainParts, and must fulfill | 70 // plays a similar role to ChromeBrowserMainParts, and must fulfill |
71 // the existing contract between ChromeBrowserMainParts and | 71 // the existing contract between ChromeBrowserMainParts and |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 // See http://crbug.com/114369 . | 140 // See http://crbug.com/114369 . |
141 void OverrideHttpHost(); | 141 void OverrideHttpHost(); |
142 void StartFileLogger(); | 142 void StartFileLogger(); |
143 void StopFileLogger(bool print); | 143 void StopFileLogger(bool print); |
144 void OnIEShutdownFailure(); | 144 void OnIEShutdownFailure(); |
145 | 145 |
146 void CancelInitializationTimeout(); | 146 void CancelInitializationTimeout(); |
147 void StartInitializationTimeout(); | 147 void StartInitializationTimeout(); |
148 void OnInitializationTimeout(); | 148 void OnInitializationTimeout(); |
149 | 149 |
150 bool ProcessSingletonNotificationCallback(const CommandLine& command_line, | 150 bool ProcessSingletonNotificationCallback( |
151 const FilePath& current_directory); | 151 const CommandLine& command_line, |
| 152 const base::FilePath& current_directory); |
152 | 153 |
153 bool launch_browser_; | 154 bool launch_browser_; |
154 bool prompt_after_setup_; | 155 bool prompt_after_setup_; |
155 bool tests_ran_; | 156 bool tests_ran_; |
156 scoped_ptr<ProcessSingleton> process_singleton_; | 157 scoped_ptr<ProcessSingleton> process_singleton_; |
157 base::CancelableClosure timeout_closure_; | 158 base::CancelableClosure timeout_closure_; |
158 scoped_ptr<logging_win::FileLogger> file_logger_; | 159 scoped_ptr<logging_win::FileLogger> file_logger_; |
159 FilePath log_file_; | 160 base::FilePath log_file_; |
160 scoped_ptr<chrome_frame_test::IEConfigurator> ie_configurator_; | 161 scoped_ptr<chrome_frame_test::IEConfigurator> ie_configurator_; |
161 | 162 |
162 DISALLOW_COPY_AND_ASSIGN(CFUrlRequestUnittestRunner); | 163 DISALLOW_COPY_AND_ASSIGN(CFUrlRequestUnittestRunner); |
163 }; | 164 }; |
164 | 165 |
165 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ | 166 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ |
OLD | NEW |