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

Unified Diff: base/test/test_suite.cc

Issue 2199493002: libFuzzer for blink::MHTMLParser (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed CR feedback from esprehn@. Created 4 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/test/icu_test_util.cc ('k') | testing/libfuzzer/fuzzers/dicts/mhtml.dict » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_suite.cc
diff --git a/base/test/test_suite.cc b/base/test/test_suite.cc
index 512bde5810a349dc6cc2f8a3a39db86d8d28daf7..a56dc59fecceff86f96180938be3049414e62c32 100644
--- a/base/test/test_suite.cc
+++ b/base/test/test_suite.cc
@@ -26,6 +26,7 @@
#include "base/process/memory.h"
#include "base/test/gtest_xml_unittest_result_printer.h"
#include "base/test/gtest_xml_util.h"
+#include "base/test/icu_test_util.h"
#include "base/test/launcher/unit_test_launcher.h"
#include "base/test/multiprocess_test.h"
#include "base/test/test_switches.h"
@@ -349,10 +350,8 @@ void TestSuite::Initialize() {
logging::SetLogAssertHandler(UnitTestAssertHandler);
}
- if (!CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kTestDoNotInitializeIcu)) {
- i18n::InitializeICU();
- }
+ base::test::InitializeICUForTesting();
+
// On the Mac OS X command line, the default locale is *_POSIX. In Chromium,
// the locale is set via an OS X locale API and is never *_POSIX.
// Some tests (such as those involving word break iterator) will behave
« no previous file with comments | « base/test/icu_test_util.cc ('k') | testing/libfuzzer/fuzzers/dicts/mhtml.dict » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698