Commit 472aeabc authored by Olivier Robin's avatar Olivier Robin Committed by Commit Bot

Initialize country names in cwv_autofill_profile_unittest.mm

Initialization is usually done by previous tests, CWVAutofillProfileTest
will always fail on second try.

Bug: 895811
Cq-Include-Trybots: luci.chromium.try:ios-simulator-cronet;luci.chromium.try:ios-simulator-full-configs
Change-Id: Ice37db622b6416fb8ce09688090fb5af9f1eda59
Reviewed-on: https://chromium-review.googlesource.com/c/1283017Reviewed-by: default avatarEugene But <eugenebut@chromium.org>
Commit-Queue: Olivier Robin <olivierrobin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#600436}
parent 718581c2
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include "components/autofill/core/browser/autofill_profile.h" #include "components/autofill/core/browser/autofill_profile.h"
#include "components/autofill/core/browser/autofill_test_utils.h" #include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/autofill_type.h" #include "components/autofill/core/browser/autofill_type.h"
#include "components/autofill/core/browser/country_names.h"
#include "testing/gtest/include/gtest/gtest.h" #include "testing/gtest/include/gtest/gtest.h"
#import "testing/gtest_mac.h" #import "testing/gtest_mac.h"
#include "testing/platform_test.h" #include "testing/platform_test.h"
...@@ -30,6 +31,7 @@ class CWVAutofillProfileTest : public PlatformTest { ...@@ -30,6 +31,7 @@ class CWVAutofillProfileTest : public PlatformTest {
ui::ResourceBundle::InitSharedInstanceWithLocale( ui::ResourceBundle::InitSharedInstanceWithLocale(
l10n_util::GetLocaleOverride(), /*delegate=*/nullptr, l10n_util::GetLocaleOverride(), /*delegate=*/nullptr,
ui::ResourceBundle::DO_NOT_LOAD_COMMON_RESOURCES); ui::ResourceBundle::DO_NOT_LOAD_COMMON_RESOURCES);
autofill::CountryNames::SetLocaleString(l10n_util::GetLocaleOverride());
} }
~CWVAutofillProfileTest() override { ~CWVAutofillProfileTest() override {
......
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