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

Side by Side Diff: chrome/test/base/chrome_unit_test_suite.cc

Issue 2511683002: Remove unneeded stringprintf.h usage in chrome/ and net/ (Closed)
Patch Set: rebase Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/base/chrome_unit_test_suite.h" 5 #include "chrome/test/base/chrome_unit_test_suite.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/process/process_handle.h" 9 #include "base/process/process_handle.h"
10 #include "base/strings/stringprintf.h"
11 #include "build/build_config.h" 10 #include "build/build_config.h"
12 #include "chrome/browser/chrome_content_browser_client.h" 11 #include "chrome/browser/chrome_content_browser_client.h"
13 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h" 12 #include "chrome/browser/ui/webui/chrome_web_ui_controller_factory.h"
14 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h" 13 #include "chrome/browser/update_client/chrome_update_query_params_delegate.h"
15 #include "chrome/common/chrome_content_client.h" 14 #include "chrome/common/chrome_content_client.h"
16 #include "chrome/common/chrome_paths.h" 15 #include "chrome/common/chrome_paths.h"
17 #include "chrome/test/base/testing_browser_process.h" 16 #include "chrome/test/base/testing_browser_process.h"
18 #include "chrome/utility/chrome_content_utility_client.h" 17 #include "chrome/utility/chrome_content_utility_client.h"
19 #include "components/component_updater/component_updater_paths.h" 18 #include "components/component_updater/component_updater_paths.h"
20 #include "components/update_client/update_query_params.h" 19 #include "components/update_client/update_query_params.h"
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 void ChromeUnitTestSuite::InitializeResourceBundle() { 158 void ChromeUnitTestSuite::InitializeResourceBundle() {
160 // Force unittests to run using en-US so if we test against string 159 // Force unittests to run using en-US so if we test against string
161 // output, it'll pass regardless of the system language. 160 // output, it'll pass regardless of the system language.
162 ui::ResourceBundle::InitSharedInstanceWithLocale( 161 ui::ResourceBundle::InitSharedInstanceWithLocale(
163 "en-US", NULL, ui::ResourceBundle::LOAD_COMMON_RESOURCES); 162 "en-US", NULL, ui::ResourceBundle::LOAD_COMMON_RESOURCES);
164 base::FilePath resources_pack_path; 163 base::FilePath resources_pack_path;
165 PathService::Get(chrome::FILE_RESOURCES_PACK, &resources_pack_path); 164 PathService::Get(chrome::FILE_RESOURCES_PACK, &resources_pack_path);
166 ResourceBundle::GetSharedInstance().AddDataPackFromPath( 165 ResourceBundle::GetSharedInstance().AddDataPackFromPath(
167 resources_pack_path, ui::SCALE_FACTOR_NONE); 166 resources_pack_path, ui::SCALE_FACTOR_NONE);
168 } 167 }
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_rtp_stream.cc ('k') | chrome/test/base/interactive_test_utils_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698