Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(24)

Side by Side Diff: chrome_frame/test/net/fake_external_tab.cc

Issue 6263008: Move ResourceBundle, DataPack to ui/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome_frame/chrome_frame_automation.cc ('k') | ui/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #include "app/app_paths.h" 11 #include "app/app_paths.h"
12 #include "app/resource_bundle.h"
13 #include "app/win/scoped_com_initializer.h" 12 #include "app/win/scoped_com_initializer.h"
14 #include "base/command_line.h" 13 #include "base/command_line.h"
15 #include "base/debug/debugger.h" 14 #include "base/debug/debugger.h"
16 #include "base/file_util.h" 15 #include "base/file_util.h"
17 #include "base/file_version_info.h" 16 #include "base/file_version_info.h"
18 #include "base/i18n/icu_util.h" 17 #include "base/i18n/icu_util.h"
19 #include "base/path_service.h" 18 #include "base/path_service.h"
20 #include "base/scoped_comptr_win.h" 19 #include "base/scoped_comptr_win.h"
21 #include "base/string_util.h" 20 #include "base/string_util.h"
22 #include "base/stringprintf.h" 21 #include "base/stringprintf.h"
(...skipping 12 matching lines...) Expand all
35 #include "chrome/common/chrome_paths_internal.h" 34 #include "chrome/common/chrome_paths_internal.h"
36 #include "chrome/common/chrome_switches.h" 35 #include "chrome/common/chrome_switches.h"
37 #include "chrome/common/notification_service.h" 36 #include "chrome/common/notification_service.h"
38 #include "chrome/common/pref_names.h" 37 #include "chrome/common/pref_names.h"
39 #include "chrome_frame/test/chrome_frame_test_utils.h" 38 #include "chrome_frame/test/chrome_frame_test_utils.h"
40 #include "chrome_frame/test/net/test_automation_resource_message_filter.h" 39 #include "chrome_frame/test/net/test_automation_resource_message_filter.h"
41 #include "chrome_frame/test/simulate_input.h" 40 #include "chrome_frame/test/simulate_input.h"
42 #include "chrome_frame/test/win_event_receiver.h" 41 #include "chrome_frame/test/win_event_receiver.h"
43 #include "chrome_frame/utils.h" 42 #include "chrome_frame/utils.h"
44 #include "testing/gtest/include/gtest/gtest.h" 43 #include "testing/gtest/include/gtest/gtest.h"
44 #include "ui/base/resource/resource_bundle.h"
45 #include "ui/base/ui_base_paths.h"
45 46
46 namespace { 47 namespace {
47 48
48 // A special command line switch to allow developers to manually launch the 49 // A special command line switch to allow developers to manually launch the
49 // browser and debug CF inside the browser. 50 // browser and debug CF inside the browser.
50 const char kManualBrowserLaunch[] = "manual-browser"; 51 const char kManualBrowserLaunch[] = "manual-browser";
51 52
52 // Pops up a message box after the test environment has been set up 53 // Pops up a message box after the test environment has been set up
53 // and before tearing it down. Useful for when debugging tests and not 54 // and before tearing it down. Useful for when debugging tests and not
54 // the test environment that's been set up. 55 // the test environment that's been set up.
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 ui::SystemMonitor system_monitor; 187 ui::SystemMonitor system_monitor;
187 188
188 // The gears plugin causes the PluginRequestInterceptor to kick in and it 189 // The gears plugin causes the PluginRequestInterceptor to kick in and it
189 // will cause problems when it tries to intercept URL requests. 190 // will cause problems when it tries to intercept URL requests.
190 PathService::Override(chrome::FILE_GEARS_PLUGIN, FilePath()); 191 PathService::Override(chrome::FILE_GEARS_PLUGIN, FilePath());
191 192
192 icu_util::Initialize(); 193 icu_util::Initialize();
193 194
194 chrome::RegisterPathProvider(); 195 chrome::RegisterPathProvider();
195 app::RegisterPathProvider(); 196 app::RegisterPathProvider();
197 ui::RegisterPathProvider();
196 198
197 // Load Chrome.dll as our resource dll. 199 // Load Chrome.dll as our resource dll.
198 FilePath dll; 200 FilePath dll;
199 PathService::Get(base::DIR_MODULE, &dll); 201 PathService::Get(base::DIR_MODULE, &dll);
200 dll = dll.Append(chrome::kBrowserResourcesDll); 202 dll = dll.Append(chrome::kBrowserResourcesDll);
201 HMODULE res_mod = ::LoadLibraryExW(dll.value().c_str(), 203 HMODULE res_mod = ::LoadLibraryExW(dll.value().c_str(),
202 NULL, LOAD_LIBRARY_AS_DATAFILE | LOAD_LIBRARY_AS_IMAGE_RESOURCE); 204 NULL, LOAD_LIBRARY_AS_DATAFILE | LOAD_LIBRARY_AS_IMAGE_RESOURCE);
203 DCHECK(res_mod); 205 DCHECK(res_mod);
204 _AtlBaseModule.SetResourceInstance(res_mod); 206 _AtlBaseModule.SetResourceInstance(res_mod);
205 207
(...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 // See url_request_unittest.cc for these credentials. 498 // See url_request_unittest.cc for these credentials.
497 SupplyProxyCredentials credentials("user", "secret"); 499 SupplyProxyCredentials credentials("user", "secret");
498 watchdog.AddObserver(&credentials, "Windows Security", ""); 500 watchdog.AddObserver(&credentials, "Windows Security", "");
499 testing::InitGoogleTest(&argc, argv); 501 testing::InitGoogleTest(&argc, argv);
500 FilterDisabledTests(); 502 FilterDisabledTests();
501 PluginService::EnableChromePlugins(false); 503 PluginService::EnableChromePlugins(false);
502 CFUrlRequestUnittestRunner test_suite(argc, argv); 504 CFUrlRequestUnittestRunner test_suite(argc, argv);
503 test_suite.RunMainUIThread(); 505 test_suite.RunMainUIThread();
504 return 0; 506 return 0;
505 } 507 }
OLDNEW
« no previous file with comments | « chrome_frame/chrome_frame_automation.cc ('k') | ui/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698