OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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/file_path.h" | 10 #include "base/file_path.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual void OnConnectAutomationProviderToChannel( | 66 virtual void OnConnectAutomationProviderToChannel( |
67 const std::string& channel_id); | 67 const std::string& channel_id); |
68 | 68 |
69 // TestAutomationProviderDelegate. | 69 // TestAutomationProviderDelegate. |
70 virtual void OnInitialTabLoaded(); | 70 virtual void OnInitialTabLoaded(); |
71 | 71 |
72 void RunMainUIThread(); | 72 void RunMainUIThread(); |
73 | 73 |
74 void StartTests(); | 74 void StartTests(); |
75 | 75 |
| 76 // Borrowed from TestSuite::Initialize(). |
| 77 static void InitializeLogging(); |
| 78 |
76 protected: | 79 protected: |
77 // This is the thread that runs all the UrlRequest tests. | 80 // This is the thread that runs all the UrlRequest tests. |
78 // Within its context, the Initialize() and Shutdown() routines above | 81 // Within its context, the Initialize() and Shutdown() routines above |
79 // will be called. | 82 // will be called. |
80 static DWORD WINAPI RunAllUnittests(void* param); | 83 static DWORD WINAPI RunAllUnittests(void* param); |
81 | 84 |
82 static void TakeDownBrowser(CFUrlRequestUnittestRunner* me); | 85 static void TakeDownBrowser(CFUrlRequestUnittestRunner* me); |
83 | 86 |
84 protected: | 87 protected: |
85 // Borrowed from TestSuite::Initialize(). | |
86 void InitializeLogging(); | |
87 | 88 |
88 protected: | 89 protected: |
89 ScopedHandle test_thread_; | 90 ScopedHandle test_thread_; |
90 DWORD test_thread_id_; | 91 DWORD test_thread_id_; |
91 | 92 |
92 scoped_ptr<test_server::SimpleWebServer> test_http_server_; | 93 scoped_ptr<test_server::SimpleWebServer> test_http_server_; |
93 test_server::SimpleResponse chrome_frame_html_; | 94 test_server::SimpleResponse chrome_frame_html_; |
94 | 95 |
95 // The fake chrome instance. This instance owns the UI message loop | 96 // The fake chrome instance. This instance owns the UI message loop |
96 // on the main thread. | 97 // on the main thread. |
97 FakeExternalTab fake_chrome_; | 98 FakeExternalTab fake_chrome_; |
98 scoped_ptr<ProcessSingletonSubclass> pss_subclass_; | 99 scoped_ptr<ProcessSingletonSubclass> pss_subclass_; |
99 scoped_ptr<BrowserThread> main_thread_; | 100 scoped_ptr<BrowserThread> main_thread_; |
100 }; | 101 }; |
101 | 102 |
102 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ | 103 #endif // CHROME_FRAME_TEST_NET_FAKE_EXTERNAL_TAB_H_ |
OLD | NEW |