Commit 36deaa51 authored by Mark Brand's avatar Mark Brand Committed by Commit Bot

MojoLPM: Add missing i18n initialisation.

code_cache_host_mojolpm_fuzzer was missing the dependency on the ICU
data files, and the initialisation call for i18n.

Bug: 1105950
Change-Id: Ibfd6e1579c9bdc75764979db5c24feff3fd95ba7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2324421Reviewed-by: default avatarJonathan Metzman <metzman@chromium.org>
Commit-Queue: Mark Brand <markbrand@google.com>
Cr-Commit-Position: refs/heads/master@{#792447}
parent 82abbf60
......@@ -175,6 +175,7 @@ mojolpm_fuzzer_test("code_cache_host_mojolpm_fuzzer") {
"//content/test:test_support",
"//services/network:test_support",
"//storage/browser:test_support",
"//third_party/icu:icudata",
]
proto_deps = [ "//third_party/blink/public/mojom:mojom_platform_mojolpm" ]
......
......@@ -9,6 +9,7 @@
#include "base/base_switches.h"
#include "base/command_line.h"
#include "base/files/scoped_temp_dir.h"
#include "base/i18n/icu_util.h"
#include "base/task/post_task.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/test_switches.h"
......@@ -49,6 +50,7 @@ class ContentFuzzerEnvironment {
content::BrowserTaskEnvironment::REAL_IO_THREAD) {
logging::SetMinLogLevel(logging::LOG_FATAL);
mojo::core::Init();
base::i18n::InitializeICU();
fuzzer_thread_.StartAndWaitForTesting();
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment