| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "platform/fonts/AcceptLanguagesResolver.h" | 5 #include "platform/fonts/AcceptLanguagesResolver.h" |
| 6 | 6 |
| 7 #include "platform/LayoutLocale.h" | 7 #include "platform/LayoutLocale.h" |
| 8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 const LayoutLocale* locale = | 49 const LayoutLocale* locale = |
| 50 AcceptLanguagesResolver::LocaleForHanFromAcceptLanguages( | 50 AcceptLanguagesResolver::LocaleForHanFromAcceptLanguages( |
| 51 test.accept_languages); | 51 test.accept_languages); |
| 52 | 52 |
| 53 if (test.script == USCRIPT_COMMON) { | 53 if (test.script == USCRIPT_COMMON) { |
| 54 EXPECT_EQ(nullptr, locale) << test.accept_languages; | 54 EXPECT_EQ(nullptr, locale) << test.accept_languages; |
| 55 continue; | 55 continue; |
| 56 } | 56 } |
| 57 | 57 |
| 58 ASSERT_NE(nullptr, locale) << test.accept_languages; | 58 ASSERT_NE(nullptr, locale) << test.accept_languages; |
| 59 EXPECT_EQ(test.script, locale->ScriptForHan()) << test.accept_languages; | 59 EXPECT_EQ(test.script, locale->GetScriptForHan()) << test.accept_languages; |
| 60 EXPECT_STRCASEEQ(test.locale, locale->LocaleForHanForSkFontMgr()) | 60 EXPECT_STRCASEEQ(test.locale, locale->LocaleForHanForSkFontMgr()) |
| 61 << test.accept_languages; | 61 << test.accept_languages; |
| 62 } | 62 } |
| 63 } | 63 } |
| 64 | 64 |
| 65 } // namespace blink | 65 } // namespace blink |
| OLD | NEW |