OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2013 Google Inc. | 2 * Copyright 2013 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 "Test.h" | 8 #include "Test.h" |
9 #include "TestClassDef.h" | |
10 #include "SkError.h" | 9 #include "SkError.h" |
11 #include "SkPath.h" | 10 #include "SkPath.h" |
12 #include "SkRect.h" | 11 #include "SkRect.h" |
13 | 12 |
14 typedef struct { | 13 typedef struct { |
15 skiatest::Reporter *fReporter; | 14 skiatest::Reporter *fReporter; |
16 unsigned int *fIntPointer; | 15 unsigned int *fIntPointer; |
17 } ErrorContext; | 16 } ErrorContext; |
18 | 17 |
19 #define CHECK(errcode) \ | 18 #define CHECK(errcode) \ |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // should trigger the default error callback, which just prints to the scree
n. | 52 // should trigger the default error callback, which just prints to the scree
n. |
54 path.addRoundRect(r, -10, -10); | 53 path.addRoundRect(r, -10, -10); |
55 CHECK(kInvalidArgument_SkError); | 54 CHECK(kInvalidArgument_SkError); |
56 CHECK(kNoError_SkError); | 55 CHECK(kNoError_SkError); |
57 | 56 |
58 // should trigger *our* callback. | 57 // should trigger *our* callback. |
59 path.addRoundRect(r, -10, -10); | 58 path.addRoundRect(r, -10, -10); |
60 CHECK(kInvalidArgument_SkError); | 59 CHECK(kInvalidArgument_SkError); |
61 CHECK(kNoError_SkError); | 60 CHECK(kNoError_SkError); |
62 } | 61 } |
OLD | NEW |