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/include/gtest/gtest.h" |
8 | 8 |
| 9 #include <stddef.h> |
| 10 |
9 #include "base/win/i18n.h" | 11 #include "base/win/i18n.h" |
10 #include "base/win/windows_version.h" | 12 #include "base/win/windows_version.h" |
11 | 13 |
12 namespace base { | 14 namespace base { |
13 namespace win { | 15 namespace win { |
14 namespace i18n { | 16 namespace i18n { |
15 | 17 |
16 // Tests that at least one user preferred UI language can be obtained. | 18 // Tests that at least one user preferred UI language can be obtained. |
17 TEST(I18NTest, GetUserPreferredUILanguageList) { | 19 TEST(I18NTest, GetUserPreferredUILanguageList) { |
18 std::vector<std::wstring> languages; | 20 std::vector<std::wstring> languages; |
(...skipping 14 matching lines...) Expand all Loading... |
33 languages.size()); | 35 languages.size()); |
34 for (std::vector<std::wstring>::const_iterator scan = languages.begin(), | 36 for (std::vector<std::wstring>::const_iterator scan = languages.begin(), |
35 end = languages.end(); scan != end; ++scan) { | 37 end = languages.end(); scan != end; ++scan) { |
36 EXPECT_FALSE((*scan).empty()); | 38 EXPECT_FALSE((*scan).empty()); |
37 } | 39 } |
38 } | 40 } |
39 | 41 |
40 } // namespace i18n | 42 } // namespace i18n |
41 } // namespace win | 43 } // namespace win |
42 } // namespace base | 44 } // namespace base |
OLD | NEW |