diff options
Diffstat (limited to 'base/string_util_unittest.cc')
-rw-r--r-- | base/string_util_unittest.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/base/string_util_unittest.cc b/base/string_util_unittest.cc index ce8d13f..d449dee 100644 --- a/base/string_util_unittest.cc +++ b/base/string_util_unittest.cc @@ -1020,7 +1020,7 @@ TEST(StringUtilTest, LcpyTest) { } TEST(StringUtilTest, WprintfFormatPortabilityTest) { - struct TestData { + static const struct { const wchar_t* input; bool portable; } cases[] = { @@ -1046,9 +1046,8 @@ TEST(StringUtilTest, WprintfFormatPortabilityTest) { { L"% 10s", false }, { L"% 10ls", true } }; - for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) { + for (size_t i = 0; i < ARRAYSIZE_UNSAFE(cases); ++i) EXPECT_EQ(cases[i].portable, base::IsWprintfFormatPortable(cases[i].input)); - } } TEST(StringUtilTest, RemoveChars) { |