| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 // This file contains unit tests for Windows internationalization funcs. | 5 // This file contains unit tests for Windows internationalization funcs. |
| 6 | 6 |
| 7 #include "testing/gtest/include/gtest/gtest.h" | 7 #include "testing/gtest/googletest/include/gtest/gtest.h" |
| 8 | 8 |
| 9 #include "base/win/i18n.h" | 9 #include "base/win/i18n.h" |
| 10 #include "base/win/windows_version.h" | 10 #include "base/win/windows_version.h" |
| 11 | 11 |
| 12 namespace base { | 12 namespace base { |
| 13 namespace win { | 13 namespace win { |
| 14 namespace i18n { | 14 namespace i18n { |
| 15 | 15 |
| 16 // Tests that at least one user preferred UI language can be obtained. | 16 // Tests that at least one user preferred UI language can be obtained. |
| 17 TEST(I18NTest, GetUserPreferredUILanguageList) { | 17 TEST(I18NTest, GetUserPreferredUILanguageList) { |
| (...skipping 15 matching lines...) Expand all Loading... |
| 33 languages.size()); | 33 languages.size()); |
| 34 for (std::vector<std::wstring>::const_iterator scan = languages.begin(), | 34 for (std::vector<std::wstring>::const_iterator scan = languages.begin(), |
| 35 end = languages.end(); scan != end; ++scan) { | 35 end = languages.end(); scan != end; ++scan) { |
| 36 EXPECT_FALSE((*scan).empty()); | 36 EXPECT_FALSE((*scan).empty()); |
| 37 } | 37 } |
| 38 } | 38 } |
| 39 | 39 |
| 40 } // namespace i18n | 40 } // namespace i18n |
| 41 } // namespace win | 41 } // namespace win |
| 42 } // namespace base | 42 } // namespace base |
| OLD | NEW |