| Index: i18n/number_formatting_unittest.cc
|
| diff --git a/i18n/number_formatting_unittest.cc b/i18n/number_formatting_unittest.cc
|
| index 3b0718d454f399395cb20215cad5490b6e1fb7c8..dc6de2bbb6dc0b96b01d430d8b1957a407274f09 100644
|
| --- a/i18n/number_formatting_unittest.cc
|
| +++ b/i18n/number_formatting_unittest.cc
|
| @@ -7,7 +7,9 @@
|
| #include "base/i18n/number_formatting.h"
|
| #include "base/i18n/rtl.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| +#include "base/test/icu_test_util.h"
|
| #include "testing/gtest/include/gtest/gtest.h"
|
| +#include "third_party/icu/source/i18n/unicode/usearch.h"
|
|
|
| namespace base {
|
| namespace {
|
| @@ -27,6 +29,8 @@ TEST(NumberFormattingTest, FormatNumber) {
|
| {-42, "-42", "-42"},
|
| };
|
|
|
| + test::ScopedRestoreICUDefaultLocale restore_locale;
|
| +
|
| for (size_t i = 0; i < arraysize(cases); ++i) {
|
| i18n::SetICUDefaultLocale("en");
|
| testing::ResetFormatters();
|
| @@ -72,6 +76,7 @@ TEST(NumberFormattingTest, FormatDouble) {
|
| {-42.7, 3, "-42.700", "-42,700"},
|
| };
|
|
|
| + test::ScopedRestoreICUDefaultLocale restore_locale;
|
| for (size_t i = 0; i < arraysize(cases); ++i) {
|
| i18n::SetICUDefaultLocale("en");
|
| testing::ResetFormatters();
|
|
|