OLD | NEW |
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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 #endif // defined(OS_WIN) | 239 #endif // defined(OS_WIN) |
240 | 240 |
241 // In some cases, we do not want to see standard error dialogs. | 241 // In some cases, we do not want to see standard error dialogs. |
242 if (!base::debug::BeingDebugged() && | 242 if (!base::debug::BeingDebugged() && |
243 !CommandLine::ForCurrentProcess()->HasSwitch("show-error-dialogs")) { | 243 !CommandLine::ForCurrentProcess()->HasSwitch("show-error-dialogs")) { |
244 SuppressErrorDialogs(); | 244 SuppressErrorDialogs(); |
245 base::debug::SetSuppressDebugUI(true); | 245 base::debug::SetSuppressDebugUI(true); |
246 logging::SetLogAssertHandler(UnitTestAssertHandler); | 246 logging::SetLogAssertHandler(UnitTestAssertHandler); |
247 } | 247 } |
248 | 248 |
249 icu_util::Initialize(); | 249 base::i18n::InitializeICU(); |
250 | 250 |
251 CatchMaybeTests(); | 251 CatchMaybeTests(); |
252 ResetCommandLine(); | 252 ResetCommandLine(); |
253 | 253 |
254 TestTimeouts::Initialize(); | 254 TestTimeouts::Initialize(); |
255 } | 255 } |
256 | 256 |
257 void TestSuite::Shutdown() { | 257 void TestSuite::Shutdown() { |
258 } | 258 } |
OLD | NEW |