Reenable L10nUtilTest.GetString for Android |
||
Issue description
The last mile for L10nUtilTest.GetString is to get the resources read by the devices. This works fine in the simulator but fails on the bots.
For the subsequent change, insert in the following build rules:
//ui/base/BUILD.gn
if (is_android) {
android_assets("ui_base_test_android_assets") {
testonly = true
# Use $target_gen_dir so the associated .pak.info file is available.
sources = [
"$target_gen_dir/ui_base_test_resources.pak",
]
deps = [
":ui_base_test_resources_grit",
]
}
}
Fix up deps in ui_base_unittests:
if (is_android) {
deps += [ ":ui_base_test_android_assets" ]
}
And then in
//ui/base/test/run_all_unittests.cc
#if defined(OS_ANDROID)
result =
base::PathService::Get(ui::DIR_RESOURCE_PAKS_ANDROID, &dir_resources);
#elif ...
,
Dec 8
The following revision refers to this bug: https://chromium.googlesource.com/chromium/src.git/+/06c3596b92fa03cdf17eed7278c475a958126217 commit 06c3596b92fa03cdf17eed7278c475a958126217 Author: Robert Liao <robliao@chromium.org> Date: Sat Dec 08 01:00:41 2018 Reenable ui_base_unittests L10nUtilTest.GetString on Android BUG= 911191 Change-Id: Ic641b53cbed17f191adb503aa28f2ce07f48b9f2 Reviewed-on: https://chromium-review.googlesource.com/c/1368305 Commit-Queue: Robert Liao <robliao@chromium.org> Reviewed-by: Scott Violet <sky@chromium.org> Cr-Commit-Position: refs/heads/master@{#614892} [modify] https://crrev.com/06c3596b92fa03cdf17eed7278c475a958126217/ui/base/BUILD.gn [modify] https://crrev.com/06c3596b92fa03cdf17eed7278c475a958126217/ui/base/l10n/l10n_util_unittest.cc [modify] https://crrev.com/06c3596b92fa03cdf17eed7278c475a958126217/ui/base/test/run_all_unittests.cc
,
Dec 8
|
||
►
Sign in to add a comment |
||
Comment 1 by bugdroid1@chromium.org
, Dec 4