| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ui/webui/chromeos/login/l10n_util.h" | 5 #include "chrome/browser/ui/webui/chromeos/login/l10n_util.h" |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 } | 68 } |
| 69 | 69 |
| 70 } // namespace | 70 } // namespace |
| 71 | 71 |
| 72 class L10nUtilTest : public testing::Test { | 72 class L10nUtilTest : public testing::Test { |
| 73 public: | 73 public: |
| 74 L10nUtilTest(); | 74 L10nUtilTest(); |
| 75 virtual ~L10nUtilTest(); | 75 virtual ~L10nUtilTest(); |
| 76 | 76 |
| 77 // testing::Test: | 77 // testing::Test: |
| 78 virtual void SetUp() OVERRIDE; | 78 virtual void SetUp() override; |
| 79 virtual void TearDown() OVERRIDE; | 79 virtual void TearDown() override; |
| 80 | 80 |
| 81 void SetInputMethods1(); | 81 void SetInputMethods1(); |
| 82 void SetInputMethods2(); | 82 void SetInputMethods2(); |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 base::ShadowingAtExitManager at_exit_manager_; | 85 base::ShadowingAtExitManager at_exit_manager_; |
| 86 | 86 |
| 87 MockInputMethodManagerWithInputMethods* input_manager_; | 87 MockInputMethodManagerWithInputMethods* input_manager_; |
| 88 }; | 88 }; |
| 89 | 89 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 215 VerifyOnlyUILanguages(*list); | 215 VerifyOnlyUILanguages(*list); |
| 216 | 216 |
| 217 ASSERT_LE(3u, list->GetSize()); | 217 ASSERT_LE(3u, list->GetSize()); |
| 218 | 218 |
| 219 VerifyLanguageCode(*list, 0, "it"); | 219 VerifyLanguageCode(*list, 0, "it"); |
| 220 VerifyLanguageCode(*list, 1, "de"); | 220 VerifyLanguageCode(*list, 1, "de"); |
| 221 VerifyLanguageCode(*list, 2, kMostRelevantLanguagesDivider); | 221 VerifyLanguageCode(*list, 2, kMostRelevantLanguagesDivider); |
| 222 } | 222 } |
| 223 | 223 |
| 224 } // namespace chromeos | 224 } // namespace chromeos |
| OLD | NEW |