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

Side by Side Diff: chrome/test/unit/chrome_test_suite.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
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/test/unit/chrome_test_suite.h" 5 #include "chrome/test/unit/chrome_test_suite.h"
6 6
7 #include "app/app_paths.h" 7 #include "app/app_paths.h"
8 #include "app/resource_bundle.h"
9 #include "base/command_line.h" 8 #include "base/command_line.h"
10 #include "base/mac/scoped_nsautorelease_pool.h" 9 #include "base/mac/scoped_nsautorelease_pool.h"
11 #include "base/metrics/stats_table.h" 10 #include "base/metrics/stats_table.h"
12 #include "base/process_util.h" 11 #include "base/process_util.h"
13 #include "base/utf_string_conversions.h" 12 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/browser_process.h" 13 #include "chrome/browser/browser_process.h"
15 #include "chrome/common/chrome_constants.h" 14 #include "chrome/common/chrome_constants.h"
16 #include "chrome/common/chrome_paths.h" 15 #include "chrome/common/chrome_paths.h"
17 #include "chrome/common/url_constants.h" 16 #include "chrome/common/url_constants.h"
18 #include "chrome/test/testing_browser_process.h" 17 #include "chrome/test/testing_browser_process.h"
19 #include "net/base/net_errors.h" 18 #include "net/base/net_errors.h"
19 #include "ui/base/resource/resource_bundle.h"
20 #include "ui/base/ui_base_paths.h"
20 21
21 #if defined(OS_MACOSX) 22 #if defined(OS_MACOSX)
22 #include "base/mac/mac_util.h" 23 #include "base/mac/mac_util.h"
23 #endif 24 #endif
24 25
25 #if defined(OS_POSIX) 26 #if defined(OS_POSIX)
26 #include "base/shared_memory.h" 27 #include "base/shared_memory.h"
27 #endif 28 #endif
28 29
29 static void RemoveSharedMemoryFile(const std::string& filename) { 30 static void RemoveSharedMemoryFile(const std::string& filename) {
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 base::mac::ScopedNSAutoreleasePool autorelease_pool; 88 base::mac::ScopedNSAutoreleasePool autorelease_pool;
88 89
89 base::TestSuite::Initialize(); 90 base::TestSuite::Initialize();
90 91
91 chrome::RegisterChromeSchemes(); 92 chrome::RegisterChromeSchemes();
92 host_resolver_proc_ = new LocalHostResolverProc(); 93 host_resolver_proc_ = new LocalHostResolverProc();
93 scoped_host_resolver_proc_.Init(host_resolver_proc_.get()); 94 scoped_host_resolver_proc_.Init(host_resolver_proc_.get());
94 95
95 chrome::RegisterPathProvider(); 96 chrome::RegisterPathProvider();
96 app::RegisterPathProvider(); 97 app::RegisterPathProvider();
98 ui::RegisterPathProvider();
97 g_browser_process = new TestingBrowserProcess; 99 g_browser_process = new TestingBrowserProcess;
98 100
99 if (!browser_dir_.empty()) { 101 if (!browser_dir_.empty()) {
100 PathService::Override(base::DIR_EXE, browser_dir_); 102 PathService::Override(base::DIR_EXE, browser_dir_);
101 PathService::Override(base::DIR_MODULE, browser_dir_); 103 PathService::Override(base::DIR_MODULE, browser_dir_);
102 } 104 }
103 105
104 #if defined(OS_MACOSX) 106 #if defined(OS_MACOSX)
105 // Look in the framework bundle for resources. 107 // Look in the framework bundle for resources.
106 FilePath path; 108 FilePath path;
(...skipping 26 matching lines...) Expand all
133 delete g_browser_process; 135 delete g_browser_process;
134 g_browser_process = NULL; 136 g_browser_process = NULL;
135 137
136 // Tear down shared StatsTable; prevents unit_tests from leaking it. 138 // Tear down shared StatsTable; prevents unit_tests from leaking it.
137 base::StatsTable::set_current(NULL); 139 base::StatsTable::set_current(NULL);
138 delete stats_table_; 140 delete stats_table_;
139 RemoveSharedMemoryFile(stats_filename_); 141 RemoveSharedMemoryFile(stats_filename_);
140 142
141 base::TestSuite::Shutdown(); 143 base::TestSuite::Shutdown();
142 } 144 }
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_proxy_uitest.cc ('k') | chrome/tools/mac_helpers/infoplist_strings_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698