HomeSort by relevance Sort by last modified time
    Searched full:reporter (Results 101 - 125 of 699) sorted by null

1 2 3 45 6 7 8 91011>>

  /external/skia/tests/
PathTest.cpp 90 static void test_path_to_region(skiatest::Reporter* reporter) {
116 static void test_path_close_issue1474(skiatest::Reporter* reporter) {
129 REPORTER_ASSERT(reporter, 50 == last.fX);
130 REPORTER_ASSERT(reporter, 50 == last.fY);
140 REPORTER_ASSERT(reporter, 75 == last.fX);
141 REPORTER_ASSERT(reporter, 75 == last.fY);
151 REPORTER_ASSERT(reporter, 85 == last.fX);
152 REPORTER_ASSERT(reporter, 85 == last.fY)
    [all...]
ClipCacheTest.cpp 44 static void test_clip_bounds(skiatest::Reporter* reporter, GrContext* context) {
84 REPORTER_ASSERT(reporter, screen == devStackBounds);
85 REPORTER_ASSERT(reporter, isIntersectionOfRects);
97 REPORTER_ASSERT(reporter, intScreen == devGrClipDataBound);
98 REPORTER_ASSERT(reporter, isIntersectionOfRects);
103 static void check_state(skiatest::Reporter* reporter,
108 REPORTER_ASSERT(reporter, clip.getTopmostGenID() == cache.getLastClipGenID());
110 REPORTER_ASSERT(reporter, mask == cache.getLastMask())
    [all...]
LayerDrawLooperTest.cpp 44 static void test_frontToBack(skiatest::Reporter* reporter) {
66 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
67 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrc_Mode));
69 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX());
70 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY());
74 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
75 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode));
77 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX());
78 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY())
    [all...]
PathMeasureTest.cpp 76 DEF_TEST(PathMeasure, reporter) {
93 REPORTER_ASSERT(reporter, length == SK_Scalar1*5);
110 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 4);
113 REPORTER_ASSERT(reporter, length == SK_Scalar1);
116 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent));
117 REPORTER_ASSERT(reporter,
121 REPORTER_ASSERT(reporter, position.fY == 0);
122 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1);
123 REPORTER_ASSERT(reporter, tangent.fY == 0);
140 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 6)
    [all...]
RoundRectTest.cpp 15 static void test_inset(skiatest::Reporter* reporter) {
21 REPORTER_ASSERT(reporter, rr2.isRect());
24 REPORTER_ASSERT(reporter, rr2.isRect());
27 REPORTER_ASSERT(reporter, rr2.isEmpty());
31 REPORTER_ASSERT(reporter, rr2.isSimple());
33 REPORTER_ASSERT(reporter, rr2.isRect());
37 static void test_round_rect_basic(skiatest::Reporter* reporter) {
44 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type())
    [all...]
ParsePathTest.cpp 11 static void test_to_from(skiatest::Reporter* reporter, const SkPath& path) {
17 REPORTER_ASSERT(reporter, success);
20 REPORTER_ASSERT(reporter, str == str2);
23 REPORTER_ASSERT(reporter, path == path2);
41 DEF_TEST(ParsePath, reporter) {
45 REPORTER_ASSERT(reporter, success);
48 REPORTER_ASSERT(reporter, expectedBounds == pathBounds);
50 test_to_from(reporter, path);
57 test_to_from(reporter, p)
    [all...]
ColorTest.cpp 19 static inline void test_premul(skiatest::Reporter* reporter) {
30 REPORTER_ASSERT(reporter, p0 == p1);
34 REPORTER_ASSERT(reporter, ax <= a);
46 static void test_interp(skiatest::Reporter* reporter) {
57 REPORTER_ASSERT(reporter, SkFourByteInterp(src, dst, a0) == dst);
58 REPORTER_ASSERT(reporter, SkFourByteInterp(src, dst, a255) == src);
63 static inline void test_fast_interp(skiatest::Reporter* reporter) {
    [all...]
MipMapTest.cpp 22 DEF_TEST(MipMap, reporter) {
30 REPORTER_ASSERT(reporter, !mm->extractLevel(SK_Scalar1, NULL));
31 REPORTER_ASSERT(reporter, !mm->extractLevel(SK_Scalar1 * 2, NULL));
42 REPORTER_ASSERT(reporter, level.fPixels);
43 REPORTER_ASSERT(reporter, level.fWidth > 0);
44 REPORTER_ASSERT(reporter, level.fHeight > 0);
45 REPORTER_ASSERT(reporter, level.fRowBytes >= level.fWidth * 4);
48 REPORTER_ASSERT(reporter, level.fWidth <= prevLevel.fWidth);
49 REPORTER_ASSERT(reporter, level.fHeight <= prevLevel.fHeight);
MallocPixelRefTest.cpp 23 DEF_TEST(MallocPixelRef, reporter) {
24 REPORTER_ASSERT(reporter, true);
30 REPORTER_ASSERT(reporter, NULL == pr.get());
41 REPORTER_ASSERT(reporter, NULL == pr.get());
52 REPORTER_ASSERT(reporter, NULL == pr.get());
60 REPORTER_ASSERT(reporter, pr.get() != NULL);
61 REPORTER_ASSERT(reporter, memory.get() == pr->pixels());
66 REPORTER_ASSERT(reporter, pr.get() != NULL);
67 REPORTER_ASSERT(reporter, NULL != pr->pixels());
74 REPORTER_ASSERT(reporter, pr.get() != NULL)
    [all...]
Test.h 23 class Reporter : public SkRefCnt {
25 SK_DECLARE_INST_COUNT(Reporter)
26 Reporter();
55 Reporter* getReporter() const { return fReporter; }
56 void setReporter(Reporter*);
70 virtual void onRun(Reporter*) = 0;
73 Reporter* fReporter;
100 DEF_TEST(TestName, reporter) {
102 REPORTER_ASSERT(reporter, x == 15);
104 REPORTER_ASSERT_MESSAGE(reporter, x == 15, "x should be 15")
    [all...]
Matrix44Test.cpp 30 template <typename T> void assert16(skiatest::Reporter* reporter, const T data[],
35 REPORTER_ASSERT(reporter, data[0] == m0);
36 REPORTER_ASSERT(reporter, data[1] == m1);
37 REPORTER_ASSERT(reporter, data[2] == m2);
38 REPORTER_ASSERT(reporter, data[3] == m3);
40 REPORTER_ASSERT(reporter, data[4] == m4);
41 REPORTER_ASSERT(reporter, data[5] == m5);
42 REPORTER_ASSERT(reporter, data[6] == m6);
43 REPORTER_ASSERT(reporter, data[7] == m7)
    [all...]
GrOrderedSetTest.cpp 17 DEF_TEST(GrOrderedSetTest, reporter) {
20 REPORTER_ASSERT(reporter, set.empty());
29 REPORTER_ASSERT(reporter, *xi == x);
30 REPORTER_ASSERT(reporter, !set.empty());
41 REPORTER_ASSERT(reporter, *set.begin() == 0);
42 REPORTER_ASSERT(reporter, *set.last() == 999);
43 REPORTER_ASSERT(reporter, --(++set.begin()) == set.begin());
44 REPORTER_ASSERT(reporter, --set.end() == set.last());
45 REPORTER_ASSERT(reporter, set.count() == totalCount);
54 REPORTER_ASSERT(reporter, b == set.end() || *a <= *b)
    [all...]
  /external/chromium_org/third_party/skia/tests/
ClipCacheTest.cpp 44 static void test_clip_bounds(skiatest::Reporter* reporter, GrContext* context) {
84 REPORTER_ASSERT(reporter, screen == devStackBounds);
85 REPORTER_ASSERT(reporter, isIntersectionOfRects);
97 REPORTER_ASSERT(reporter, intScreen == devGrClipDataBound);
98 REPORTER_ASSERT(reporter, isIntersectionOfRects);
103 static void check_state(skiatest::Reporter* reporter,
108 REPORTER_ASSERT(reporter, clip.getTopmostGenID() == cache.getLastClipGenID());
110 REPORTER_ASSERT(reporter, mask == cache.getLastMask())
    [all...]
LayerDrawLooperTest.cpp 44 static void test_frontToBack(skiatest::Reporter* reporter) {
66 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
67 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrc_Mode));
69 REPORTER_ASSERT(reporter, 10.0f == device.fLastMatrix.getTranslateX());
70 REPORTER_ASSERT(reporter, 20.0f == device.fLastMatrix.getTranslateY());
74 REPORTER_ASSERT(reporter, context->next(&canvas, &paint));
75 REPORTER_ASSERT(reporter, SkXfermode::IsMode(paint.getXfermode(), SkXfermode::kSrcOver_Mode));
77 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateX());
78 REPORTER_ASSERT(reporter, 0.0f == device.fLastMatrix.getTranslateY())
    [all...]
PathMeasureTest.cpp 76 DEF_TEST(PathMeasure, reporter) {
93 REPORTER_ASSERT(reporter, length == SK_Scalar1*5);
110 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 4);
113 REPORTER_ASSERT(reporter, length == SK_Scalar1);
116 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent));
117 REPORTER_ASSERT(reporter,
121 REPORTER_ASSERT(reporter, position.fY == 0);
122 REPORTER_ASSERT(reporter, tangent.fX == -SK_Scalar1);
123 REPORTER_ASSERT(reporter, tangent.fY == 0);
140 REPORTER_ASSERT(reporter, length == SK_Scalar1 * 6)
    [all...]
RoundRectTest.cpp 15 static void test_inset(skiatest::Reporter* reporter) {
21 REPORTER_ASSERT(reporter, rr2.isRect());
24 REPORTER_ASSERT(reporter, rr2.isRect());
27 REPORTER_ASSERT(reporter, rr2.isEmpty());
31 REPORTER_ASSERT(reporter, rr2.isSimple());
33 REPORTER_ASSERT(reporter, rr2.isRect());
37 static void test_round_rect_basic(skiatest::Reporter* reporter) {
44 REPORTER_ASSERT(reporter, SkRRect::kEmpty_Type == empty.type())
    [all...]
ParsePathTest.cpp 11 static void test_to_from(skiatest::Reporter* reporter, const SkPath& path) {
17 REPORTER_ASSERT(reporter, success);
20 REPORTER_ASSERT(reporter, str == str2);
23 REPORTER_ASSERT(reporter, path == path2);
41 DEF_TEST(ParsePath, reporter) {
45 REPORTER_ASSERT(reporter, success);
48 REPORTER_ASSERT(reporter, expectedBounds == pathBounds);
50 test_to_from(reporter, path);
57 test_to_from(reporter, p)
    [all...]
ColorTest.cpp 19 static inline void test_premul(skiatest::Reporter* reporter) {
30 REPORTER_ASSERT(reporter, p0 == p1);
34 REPORTER_ASSERT(reporter, ax <= a);
46 static void test_interp(skiatest::Reporter* reporter) {
57 REPORTER_ASSERT(reporter, SkFourByteInterp(src, dst, a0) == dst);
58 REPORTER_ASSERT(reporter, SkFourByteInterp(src, dst, a255) == src);
63 static inline void test_fast_interp(skiatest::Reporter* reporter) {
    [all...]
MipMapTest.cpp 22 DEF_TEST(MipMap, reporter) {
30 REPORTER_ASSERT(reporter, !mm->extractLevel(SK_Scalar1, NULL));
31 REPORTER_ASSERT(reporter, !mm->extractLevel(SK_Scalar1 * 2, NULL));
42 REPORTER_ASSERT(reporter, level.fPixels);
43 REPORTER_ASSERT(reporter, level.fWidth > 0);
44 REPORTER_ASSERT(reporter, level.fHeight > 0);
45 REPORTER_ASSERT(reporter, level.fRowBytes >= level.fWidth * 4);
48 REPORTER_ASSERT(reporter, level.fWidth <= prevLevel.fWidth);
49 REPORTER_ASSERT(reporter, level.fHeight <= prevLevel.fHeight);
MallocPixelRefTest.cpp 23 DEF_TEST(MallocPixelRef, reporter) {
24 REPORTER_ASSERT(reporter, true);
30 REPORTER_ASSERT(reporter, NULL == pr.get());
41 REPORTER_ASSERT(reporter, NULL == pr.get());
52 REPORTER_ASSERT(reporter, NULL == pr.get());
60 REPORTER_ASSERT(reporter, pr.get() != NULL);
61 REPORTER_ASSERT(reporter, memory.get() == pr->pixels());
66 REPORTER_ASSERT(reporter, pr.get() != NULL);
67 REPORTER_ASSERT(reporter, NULL != pr->pixels());
74 REPORTER_ASSERT(reporter, pr.get() != NULL)
    [all...]
Test.h 23 class Reporter : public SkRefCnt {
25 SK_DECLARE_INST_COUNT(Reporter)
26 Reporter();
55 Reporter* getReporter() const { return fReporter; }
56 void setReporter(Reporter*);
70 virtual void onRun(Reporter*) = 0;
73 Reporter* fReporter;
100 DEF_TEST(TestName, reporter) {
102 REPORTER_ASSERT(reporter, x == 15);
104 REPORTER_ASSERT_MESSAGE(reporter, x == 15, "x should be 15")
    [all...]
Matrix44Test.cpp 30 template <typename T> void assert16(skiatest::Reporter* reporter, const T data[],
35 REPORTER_ASSERT(reporter, data[0] == m0);
36 REPORTER_ASSERT(reporter, data[1] == m1);
37 REPORTER_ASSERT(reporter, data[2] == m2);
38 REPORTER_ASSERT(reporter, data[3] == m3);
40 REPORTER_ASSERT(reporter, data[4] == m4);
41 REPORTER_ASSERT(reporter, data[5] == m5);
42 REPORTER_ASSERT(reporter, data[6] == m6);
43 REPORTER_ASSERT(reporter, data[7] == m7)
    [all...]
GrOrderedSetTest.cpp 17 DEF_TEST(GrOrderedSetTest, reporter) {
20 REPORTER_ASSERT(reporter, set.empty());
29 REPORTER_ASSERT(reporter, *xi == x);
30 REPORTER_ASSERT(reporter, !set.empty());
41 REPORTER_ASSERT(reporter, *set.begin() == 0);
42 REPORTER_ASSERT(reporter, *set.last() == 999);
43 REPORTER_ASSERT(reporter, --(++set.begin()) == set.begin());
44 REPORTER_ASSERT(reporter, --set.end() == set.last());
45 REPORTER_ASSERT(reporter, set.count() == totalCount);
54 REPORTER_ASSERT(reporter, b == set.end() || *a <= *b)
    [all...]
  /external/mockito/src/org/mockito/internal/stubbing/answers/
AnswersValidator.java 7 import org.mockito.exceptions.Reporter;
13 private Reporter reporter = new Reporter(); field in class:AnswersValidator
44 new Reporter().wrongTypeOfArgumentToReturn(invocation, methodInfo.printMethodReturnType(),
53 reporter.cannotCallRealMethodOnInterface();
59 reporter.onlyVoidMethodsCanBeSetToDoNothing();
65 reporter.cannotStubVoidMethodWithAReturnValue(methodInfo.getMethodName());
69 reporter.wrongTypeOfReturnValue(methodInfo.printMethodReturnType(), "null", methodInfo.getMethodName());
73 reporter.wrongTypeOfReturnValue(methodInfo.printMethodReturnType(), answer.printReturnType(), methodInfo.ge (…)
    [all...]
  /external/mockito/src/org/mockito/internal/verification/checkers/
NonGreedyNumberOfInvocationsInOrderChecker.java 8 import org.mockito.exceptions.Reporter;
22 private final Reporter reporter; field in class:NonGreedyNumberOfInvocationsInOrderChecker
26 this(new InvocationsFinder(), new Reporter(), new InvocationMarker());
29 NonGreedyNumberOfInvocationsInOrderChecker(InvocationsFinder finder, Reporter reporter, InvocationMarker marker ) {
31 this.reporter = reporter;
41 reporter.tooLittleActualInvocationsInOrder(new Discrepancy(wantedCount, actualCount), wanted, lastLocation );

Completed in 689 milliseconds

1 2 3 45 6 7 8 91011>>