This source file includes following definitions.
- TEST
- TEST
#include "testing/gtest/include/gtest/gtest.h"
#include "base/win/i18n.h"
#include "base/win/windows_version.h"
namespace base {
namespace win {
namespace i18n {
TEST(I18NTest, GetUserPreferredUILanguageList) {
std::vector<std::wstring> languages;
EXPECT_TRUE(GetUserPreferredUILanguageList(&languages));
EXPECT_NE(static_cast<std::vector<std::wstring>::size_type>(0),
languages.size());
for (std::vector<std::wstring>::const_iterator scan = languages.begin(),
end = languages.end(); scan != end; ++scan) {
EXPECT_FALSE((*scan).empty());
}
}
TEST(I18NTest, GetThreadPreferredUILanguageList) {
std::vector<std::wstring> languages;
EXPECT_TRUE(GetThreadPreferredUILanguageList(&languages));
EXPECT_NE(static_cast<std::vector<std::wstring>::size_type>(0),
languages.size());
for (std::vector<std::wstring>::const_iterator scan = languages.begin(),
end = languages.end(); scan != end; ++scan) {
EXPECT_FALSE((*scan).empty());
}
}
}
}
}