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 #include "chrome_frame/test/net/fake_external_tab.h" | 5 #include "chrome_frame/test/net/fake_external_tab.h" |
6 | 6 |
7 #include <atlbase.h> | 7 #include <atlbase.h> |
8 #include <atlcom.h> | 8 #include <atlcom.h> |
9 #include <exdisp.h> | 9 #include <exdisp.h> |
10 | 10 |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 FakeExternalTab::~FakeExternalTab() { | 180 FakeExternalTab::~FakeExternalTab() { |
181 if (!overridden_user_dir_.empty()) { | 181 if (!overridden_user_dir_.empty()) { |
182 PathService::Override(chrome::DIR_USER_DATA, overridden_user_dir_); | 182 PathService::Override(chrome::DIR_USER_DATA, overridden_user_dir_); |
183 } | 183 } |
184 } | 184 } |
185 | 185 |
186 void FakeExternalTab::Initialize() { | 186 void FakeExternalTab::Initialize() { |
187 DCHECK(g_browser_process == NULL); | 187 DCHECK(g_browser_process == NULL); |
188 ui::SystemMonitor system_monitor; | 188 ui::SystemMonitor system_monitor; |
189 | 189 |
190 // The gears plugin causes the PluginRequestInterceptor to kick in and it | |
191 // will cause problems when it tries to intercept URL requests. | |
192 PathService::Override(chrome::FILE_GEARS_PLUGIN, FilePath()); | |
193 | |
194 icu_util::Initialize(); | 190 icu_util::Initialize(); |
195 | 191 |
196 chrome::RegisterPathProvider(); | 192 chrome::RegisterPathProvider(); |
197 app::RegisterPathProvider(); | 193 app::RegisterPathProvider(); |
198 ui::RegisterPathProvider(); | 194 ui::RegisterPathProvider(); |
199 | 195 |
200 // Load Chrome.dll as our resource dll. | 196 // Load Chrome.dll as our resource dll. |
201 FilePath dll; | 197 FilePath dll; |
202 PathService::Get(base::DIR_MODULE, &dll); | 198 PathService::Get(base::DIR_MODULE, &dll); |
203 dll = dll.Append(chrome::kBrowserResourcesDll); | 199 dll = dll.Append(chrome::kBrowserResourcesDll); |
(...skipping 309 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 // See url_request_unittest.cc for these credentials. | 509 // See url_request_unittest.cc for these credentials. |
514 SupplyProxyCredentials credentials("user", "secret"); | 510 SupplyProxyCredentials credentials("user", "secret"); |
515 watchdog.AddObserver(&credentials, "Windows Security", ""); | 511 watchdog.AddObserver(&credentials, "Windows Security", ""); |
516 testing::InitGoogleTest(&argc, argv); | 512 testing::InitGoogleTest(&argc, argv); |
517 FilterDisabledTests(); | 513 FilterDisabledTests(); |
518 PluginService::EnableChromePlugins(false); | 514 PluginService::EnableChromePlugins(false); |
519 CFUrlRequestUnittestRunner test_suite(argc, argv); | 515 CFUrlRequestUnittestRunner test_suite(argc, argv); |
520 test_suite.RunMainUIThread(); | 516 test_suite.RunMainUIThread(); |
521 return 0; | 517 return 0; |
522 } | 518 } |
OLD | NEW |