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

Unified Diff: testing/libfuzzer/fuzzers/url_parse_fuzzer.cc

Issue 1467713004: initializing ICU in url fuzzer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: review Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « testing/libfuzzer/fuzzers/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/libfuzzer/fuzzers/url_parse_fuzzer.cc
diff --git a/testing/libfuzzer/fuzzers/url_parse_fuzzer.cc b/testing/libfuzzer/fuzzers/url_parse_fuzzer.cc
index 48df2c878727ffbed62c43745c353d4e86eff8b9..ce51ceeae8709068ea98c2585b8e3e47ea03845e 100644
--- a/testing/libfuzzer/fuzzers/url_parse_fuzzer.cc
+++ b/testing/libfuzzer/fuzzers/url_parse_fuzzer.cc
@@ -2,8 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/at_exit.h"
+#include "base/i18n/icu_util.h"
#include "url/gurl.h"
+struct TestCase {
+ TestCase() {
+ CHECK(base::i18n::InitializeICU());
+ }
+
+ // used by ICU integration.
+ base::AtExitManager at_exit_manager;
+};
+
+TestCase* test_case = new TestCase();
+
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const unsigned char *data,
unsigned long size) {
« no previous file with comments | « testing/libfuzzer/fuzzers/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698