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

Side by Side Diff: Source/platform/fonts/GlyphPageTreeNodeTest.cpp

Issue 1213003004: Fix virtual/override/final usage in Source/platform/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/platform/fonts/GlyphPageTreeNode.h ('k') | Source/platform/fonts/SegmentedFontData.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "config.h" 5 #include "config.h"
6 #include "platform/fonts/GlyphPageTreeNode.h" 6 #include "platform/fonts/GlyphPageTreeNode.h"
7 7
8 #include "platform/fonts/SegmentedFontData.h" 8 #include "platform/fonts/SegmentedFontData.h"
9 #include "platform/fonts/SimpleFontData.h" 9 #include "platform/fonts/SimpleFontData.h"
10 #include <gtest/gtest.h> 10 #include <gtest/gtest.h>
11 11
12 namespace blink { 12 namespace blink {
13 13
14 namespace { 14 namespace {
15 15
16 class TestCustomFontData : public CustomFontData { 16 class TestCustomFontData : public CustomFontData {
17 public: 17 public:
18 static PassRefPtr<TestCustomFontData> create() { return adoptRef(new TestCus tomFontData()); } 18 static PassRefPtr<TestCustomFontData> create() { return adoptRef(new TestCus tomFontData()); }
19 private: 19 private:
20 TestCustomFontData() { } 20 TestCustomFontData() { }
21 virtual bool isLoadingFallback() const override { return true; } 21 bool isLoadingFallback() const override { return true; }
22 }; 22 };
23 23
24 class TestSimpleFontData : public SimpleFontData { 24 class TestSimpleFontData : public SimpleFontData {
25 public: 25 public:
26 static PassRefPtr<TestSimpleFontData> create(UChar32 from, UChar32 to) 26 static PassRefPtr<TestSimpleFontData> create(UChar32 from, UChar32 to)
27 { 27 {
28 return adoptRef(new TestSimpleFontData(nullptr, from, to)); 28 return adoptRef(new TestSimpleFontData(nullptr, from, to));
29 } 29 }
30 30
31 static PassRefPtr<TestSimpleFontData> createUnloaded(UChar32 from, UChar32 t o) 31 static PassRefPtr<TestSimpleFontData> createUnloaded(UChar32 from, UChar32 t o)
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 EXPECT_NE(commonPage, latinPage); 244 EXPECT_NE(commonPage, latinPage);
245 EXPECT_NE(commonPage, simplifiedChinesePage); 245 EXPECT_NE(commonPage, simplifiedChinesePage);
246 EXPECT_NE(commonPage, traditionalChinesePage); 246 EXPECT_NE(commonPage, traditionalChinesePage);
247 EXPECT_NE(simplifiedChinesePage, traditionalChinesePage); 247 EXPECT_NE(simplifiedChinesePage, traditionalChinesePage);
248 EXPECT_NE(commonPage, japanesePage); 248 EXPECT_NE(commonPage, japanesePage);
249 EXPECT_NE(japanesePage, simplifiedChinesePage); 249 EXPECT_NE(japanesePage, simplifiedChinesePage);
250 EXPECT_NE(japanesePage, traditionalChinesePage); 250 EXPECT_NE(japanesePage, traditionalChinesePage);
251 } 251 }
252 252
253 } // namespace blink 253 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/fonts/GlyphPageTreeNode.h ('k') | Source/platform/fonts/SegmentedFontData.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698