• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2019 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 #include "base/i18n/icu_util.h"
6 
7 #include "build/build_config.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9 
10 #if !BUILDFLAG(IS_NACL) && (ICU_UTIL_DATA_IMPL == ICU_UTIL_DATA_FILE) && \
11     (BUILDFLAG(IS_CHROMEOS_LACROS) || BUILDFLAG(IS_ANDROID))
12 
13 namespace base::i18n {
14 
15 class IcuUtilTest : public testing::Test {
16  protected:
SetUp()17   void SetUp() override { ResetGlobalsForTesting(); }
18 };
19 
TEST_F(IcuUtilTest,InitializeIcuSucceeds)20 TEST_F(IcuUtilTest, InitializeIcuSucceeds) {
21   bool success = InitializeICU();
22 
23   ASSERT_TRUE(success);
24 }
25 
26 }  // namespace base::i18n
27 
28 #endif
29