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

Unified Diff: net/base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc

Issue 1760973002: Initialize ICU before running any of the //net fuzzers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: mark as testonly Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/fuzzer_test_support.cc ('k') | net/ftp/ftp_directory_listing_fuzzer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc
diff --git a/net/base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc b/net/base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc
index 8b749c1c5320226038562d7c0227455a6d24ee47..e71c7dc26a7b6d50ea9940570f6978eb2f1e9f61 100644
--- a/net/base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc
+++ b/net/base/registry_controlled_domains/get_domain_and_registry_fuzzer.cc
@@ -5,20 +5,10 @@
#include <stddef.h>
#include <stdint.h>
-#include "base/at_exit.h"
-#include "base/i18n/icu_util.h"
#include "base/strings/string_piece.h"
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
#include "url/gurl.h"
-// Initialize ICU.
-struct InitICU {
- InitICU() { CHECK(base::i18n::InitializeICU()); }
- base::AtExitManager at_exit_manager;
-};
-
-InitICU* init_icu = new InitICU();
-
// Entry point for LibFuzzer.
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
// Call GetDomainAndRegistry() twice - once with each filter type to ensure
« no previous file with comments | « net/base/fuzzer_test_support.cc ('k') | net/ftp/ftp_directory_listing_fuzzer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698