| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |