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

Side by Side Diff: base/test/test_suite.cc

Issue 12286020: Replace FilePath with base::FilePath. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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 | « base/test/test_shortcut_win.cc ('k') | base/test/test_support_android.cc » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/test/test_suite.h" 5 #include "base/test/test_suite.h"
6 6
7 #include "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "base/base_paths.h" 8 #include "base/base_paths.h"
9 #include "base/base_switches.h" 9 #include "base/base_switches.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 #endif 203 #endif
204 204
205 #if defined(OS_IOS) 205 #if defined(OS_IOS)
206 InitIOSTestMessageLoop(); 206 InitIOSTestMessageLoop();
207 #endif // OS_IOS 207 #endif // OS_IOS
208 208
209 #if defined(OS_ANDROID) 209 #if defined(OS_ANDROID)
210 InitAndroidTest(); 210 InitAndroidTest();
211 #else 211 #else
212 // Initialize logging. 212 // Initialize logging.
213 FilePath exe; 213 base::FilePath exe;
214 PathService::Get(base::FILE_EXE, &exe); 214 PathService::Get(base::FILE_EXE, &exe);
215 FilePath log_filename = exe.ReplaceExtension(FILE_PATH_LITERAL("log")); 215 base::FilePath log_filename = exe.ReplaceExtension(FILE_PATH_LITERAL("log"));
216 logging::InitLogging( 216 logging::InitLogging(
217 log_filename.value().c_str(), 217 log_filename.value().c_str(),
218 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG, 218 logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG,
219 logging::LOCK_LOG_FILE, 219 logging::LOCK_LOG_FILE,
220 logging::DELETE_OLD_LOG_FILE, 220 logging::DELETE_OLD_LOG_FILE,
221 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); 221 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS);
222 // We want process and thread IDs because we may have multiple processes. 222 // We want process and thread IDs because we may have multiple processes.
223 // Note: temporarily enabled timestamps in an effort to catch bug 6361. 223 // Note: temporarily enabled timestamps in an effort to catch bug 6361.
224 logging::SetLogItems(true, true, true, true); 224 logging::SetLogItems(true, true, true, true);
225 #endif // else defined(OS_ANDROID) 225 #endif // else defined(OS_ANDROID)
(...skipping 16 matching lines...) Expand all
242 icu_util::Initialize(); 242 icu_util::Initialize();
243 243
244 CatchMaybeTests(); 244 CatchMaybeTests();
245 ResetCommandLine(); 245 ResetCommandLine();
246 246
247 TestTimeouts::Initialize(); 247 TestTimeouts::Initialize();
248 } 248 }
249 249
250 void TestSuite::Shutdown() { 250 void TestSuite::Shutdown() {
251 } 251 }
OLDNEW
« no previous file with comments | « base/test/test_shortcut_win.cc ('k') | base/test/test_support_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698