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..0e6f92b571d2adab2b51a7e6b6d0507446768ef9 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() { |
+ assert(base::i18n::InitializeICU()); |
+ } |
+ |
+ // used by ICU integration. |
+ base::AtExitManager at_exit_manager; |
+}; |
+ |
+TestCase test_case; |
krasin
2015/11/21 00:07:12
Per Google C++ style guide ([1]), which Chromium f
aizatsky
2015/11/21 00:11:36
This is the exact opposite of what Kostya asks to
aizatsky
2015/11/21 01:13:40
replaced by a pointer.
|
+ |
// Entry point for LibFuzzer. |
extern "C" int LLVMFuzzerTestOneInput(const unsigned char *data, |
unsigned long size) { |