Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(213)

Side by Side Diff: third_party/WebKit/Source/platform/fonts/AcceptLanguagesResolverTest.cpp

Issue 2815523002: Rename Script() returning UScriptCode to GetScript() (Closed)
Patch Set: Rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/platform/LayoutLocaleTest.cpp ('k') | third_party/WebKit/Source/platform/fonts/FontDescription.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698