| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #include "SkPaint.h" | 8 #include "SkPaint.h" |
| 9 #include "SkPoint.h" | 9 #include "SkPoint.h" |
| 10 #include "SkTextBlob.h" | 10 #include "SkTextBlobPriv.h" |
| 11 | 11 |
| 12 #include "Test.h" | 12 #include "Test.h" |
| 13 | 13 |
| 14 class TextBlobTester { | 14 class TextBlobTester { |
| 15 public: | 15 public: |
| 16 // This unit test feeds an SkTextBlobBuilder various runs then checks to see
if | 16 // This unit test feeds an SkTextBlobBuilder various runs then checks to see
if |
| 17 // the result contains the provided data and merges runs when appropriate. | 17 // the result contains the provided data and merges runs when appropriate. |
| 18 static void TestBuilder(skiatest::Reporter* reporter) { | 18 static void TestBuilder(skiatest::Reporter* reporter) { |
| 19 SkTextBlobBuilder builder; | 19 SkTextBlobBuilder builder; |
| 20 | 20 |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 254 default: | 254 default: |
| 255 SkFAIL("unhandled positioning value"); | 255 SkFAIL("unhandled positioning value"); |
| 256 } | 256 } |
| 257 } | 257 } |
| 258 }; | 258 }; |
| 259 | 259 |
| 260 DEF_TEST(TextBlob_builder, reporter) { | 260 DEF_TEST(TextBlob_builder, reporter) { |
| 261 TextBlobTester::TestBuilder(reporter); | 261 TextBlobTester::TestBuilder(reporter); |
| 262 TextBlobTester::TestBounds(reporter); | 262 TextBlobTester::TestBounds(reporter); |
| 263 } | 263 } |
| OLD | NEW |