HomeSort by relevance Sort by last modified time
    Searched refs:reporter (Results 26 - 50 of 541) sorted by null

12 3 4 5 6 7 8 91011>>

  /external/skia/tests/
GrContextFactoryTest.cpp 13 DEF_GPUTEST(GrContextFactoryTest, reporter, factory) {
18 REPORTER_ASSERT(reporter,
23 REPORTER_ASSERT(reporter,
28 REPORTER_ASSERT(reporter,
UnitTestTest.cpp 11 DEF_TEST(UnitTest, reporter) {
Reader32Test.cpp 11 static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) {
12 REPORTER_ASSERT(reporter, reader.eof());
13 REPORTER_ASSERT(reporter, reader.size() == reader.offset());
14 REPORTER_ASSERT(reporter, (const char*)reader.peek() ==
18 static void assert_start(skiatest::Reporter* reporter, const SkReader32& reader) {
19 REPORTER_ASSERT(reporter, 0 == reader.offset());
20 REPORTER_ASSERT(reporter, reader.size() == reader.available());
21 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size()))
    [all...]
GpuRectanizerTest.cpp 21 static void test_rectanizer_basic(skiatest::Reporter* reporter, GrRectanizer* rectanizer) {
22 REPORTER_ASSERT(reporter, kWidth == rectanizer->width());
23 REPORTER_ASSERT(reporter, kHeight == rectanizer->height());
27 REPORTER_ASSERT(reporter, rectanizer->addRect(50, 50, &loc));
28 REPORTER_ASSERT(reporter, rectanizer->percentFull() > 0.0f);
30 REPORTER_ASSERT(reporter, rectanizer->percentFull() == 0.0f);
33 static void test_rectanizer_inserts(skiatest::Reporter*,
47 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects)
    [all...]
UtilsTest.cpp 28 static void test_autounref(skiatest::Reporter* reporter) {
30 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
33 REPORTER_ASSERT(reporter, &obj == tmp.get());
34 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
36 REPORTER_ASSERT(reporter, &obj == tmp.detach());
37 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
38 REPORTER_ASSERT(reporter, NULL == tmp.detach());
39 REPORTER_ASSERT(reporter, NULL == tmp.get());
42 REPORTER_ASSERT(reporter, 2 == obj.getRefCnt())
    [all...]
FrontBufferedStreamTest.cpp 14 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream,
20 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd());
21 REPORTER_ASSERT(reporter, memcmp(storage.get(), expectations, bytesRead) == 0);
24 static void test_rewind(skiatest::Reporter* reporter,
27 REPORTER_ASSERT(reporter, success == shouldSucceed);
34 static void test_hasLength(skiatest::Reporter* reporter,
38 REPORTER_ASSERT(reporter, bufferedStream.hasLength())
    [all...]
BitmapTest.cpp 12 static void test_bigwidth(skiatest::Reporter* reporter) {
17 REPORTER_ASSERT(reporter, bm.setInfo(info));
19 REPORTER_ASSERT(reporter, bm.setInfo(info));
28 REPORTER_ASSERT(reporter, !bm.setInfo(info));
34 DEF_TEST(Bitmap, reporter) {
40 REPORTER_ASSERT(reporter, setConf);
42 REPORTER_ASSERT(reporter, bm.allocPixels(NULL));
44 REPORTER_ASSERT(reporter, SkToBool(width & height) != bm.empty());
48 test_bigwidth(reporter);
    [all...]
PathOpsDPointTest.cpp 23 DEF_TEST(PathOpsDPoint, reporter) {
28 REPORTER_ASSERT(reporter, p == pt);
29 REPORTER_ASSERT(reporter, !(pt != pt));
32 REPORTER_ASSERT(reporter, p == pt);
34 REPORTER_ASSERT(reporter, p == pt);
35 REPORTER_ASSERT(reporter, p.approximatelyEqual(pt));
38 REPORTER_ASSERT(reporter, p == pt);
39 REPORTER_ASSERT(reporter, p.approximatelyEqual(sPt));
40 REPORTER_ASSERT(reporter, p.roughlyEqual(pt));
41 REPORTER_ASSERT(reporter, p.moreRoughlyEqual(pt))
    [all...]
XfermodeTest.cpp 14 static void test_asMode(skiatest::Reporter* reporter) {
19 REPORTER_ASSERT(reporter, reportedMode != mode);
22 REPORTER_ASSERT(reporter, SkXfermode::AsMode(xfer, &reportedMode));
23 REPORTER_ASSERT(reporter, reportedMode == mode);
28 REPORTER_ASSERT(reporter, xfer->asMode(&reportedMode));
29 REPORTER_ASSERT(reporter, reportedMode == mode);
32 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode);
37 static void test_IsMode(skiatest::Reporter* reporter) {
    [all...]
StringTest.cpp 35 DEF_TEST(String, reporter) {
41 REPORTER_ASSERT(reporter, a.isEmpty());
42 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
50 REPORTER_ASSERT(reporter, !a.isEmpty());
51 REPORTER_ASSERT(reporter, a.size() == 5);
52 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
53 REPORTER_ASSERT(reporter, a.equals("hello", 5));
54 REPORTER_ASSERT(reporter, a.equals("hello"));
55 REPORTER_ASSERT(reporter, !a.equals("help"));
57 REPORTER_ASSERT(reporter, a.startsWith("hell"))
    [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...]
DataRefTest.cpp 16 static void test_is_equal(skiatest::Reporter* reporter,
18 REPORTER_ASSERT(reporter, a->count() == b->count());
23 REPORTER_ASSERT(reporter, sizea == sizeb);
24 REPORTER_ASSERT(reporter, !memcmp(mema, memb, sizea));
28 static void test_datatable_is_empty(skiatest::Reporter* reporter,
30 REPORTER_ASSERT(reporter, table->isEmpty());
31 REPORTER_ASSERT(reporter, 0 == table->count());
34 static void test_emptytable(skiatest::Reporter* reporter)
    [all...]
SListTest.cpp 18 static bool verifyEmptyList(skiatest::Reporter* reporter,
23 ERRORF(reporter, "%s - List not empty", stage);
27 ERRORF(reporter, "%s - List count is not zero, %d instead", stage, list.getCount());
31 ERRORF(reporter, "%s - List has elements when empty", stage);
37 static bool verifyList(skiatest::Reporter* reporter,
43 ERRORF(reporter, "%s - List was too short, %d instead of %d", stage, list.getCount(), count);
49 ERRORF(reporter, "%s - List too short, should be %d", stage, count);
53 ERRORF(reporter, "%s - List entries at index %d of %d don't match", stage, index, count)
    [all...]
  /external/chromium_org/third_party/skia/tests/
Reader32Test.cpp 11 static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) {
12 REPORTER_ASSERT(reporter, reader.eof());
13 REPORTER_ASSERT(reporter, reader.size() == reader.offset());
14 REPORTER_ASSERT(reporter, (const char*)reader.peek() ==
18 static void assert_start(skiatest::Reporter* reporter, const SkReader32& reader) {
19 REPORTER_ASSERT(reporter, 0 == reader.offset());
20 REPORTER_ASSERT(reporter, reader.size() == reader.available());
21 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size()))
    [all...]
GpuRectanizerTest.cpp 21 static void test_rectanizer_basic(skiatest::Reporter* reporter, GrRectanizer* rectanizer) {
22 REPORTER_ASSERT(reporter, kWidth == rectanizer->width());
23 REPORTER_ASSERT(reporter, kHeight == rectanizer->height());
27 REPORTER_ASSERT(reporter, rectanizer->addRect(50, 50, &loc));
28 REPORTER_ASSERT(reporter, rectanizer->percentFull() > 0.0f);
30 REPORTER_ASSERT(reporter, rectanizer->percentFull() == 0.0f);
33 static void test_rectanizer_inserts(skiatest::Reporter*,
47 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects)
    [all...]
UtilsTest.cpp 28 static void test_autounref(skiatest::Reporter* reporter) {
30 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
33 REPORTER_ASSERT(reporter, &obj == tmp.get());
34 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
36 REPORTER_ASSERT(reporter, &obj == tmp.detach());
37 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
38 REPORTER_ASSERT(reporter, NULL == tmp.detach());
39 REPORTER_ASSERT(reporter, NULL == tmp.get());
42 REPORTER_ASSERT(reporter, 2 == obj.getRefCnt())
    [all...]
FrontBufferedStreamTest.cpp 14 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream,
20 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd());
21 REPORTER_ASSERT(reporter, memcmp(storage.get(), expectations, bytesRead) == 0);
24 static void test_rewind(skiatest::Reporter* reporter,
27 REPORTER_ASSERT(reporter, success == shouldSucceed);
34 static void test_hasLength(skiatest::Reporter* reporter,
38 REPORTER_ASSERT(reporter, bufferedStream.hasLength())
    [all...]
GrBinHashKeyTest.cpp 16 template<typename KeyType> static void TestHash(skiatest::Reporter* reporter) {
26 REPORTER_ASSERT(reporter, keyA == keyA2);
27 REPORTER_ASSERT(reporter, keyA.getHash() == keyA2.getHash());
30 REPORTER_ASSERT(reporter, keyA == keyA2);
31 REPORTER_ASSERT(reporter, keyA.getHash() == keyA2.getHash());
35 REPORTER_ASSERT(reporter, keyA.getHash() != keyB.getHash());
39 DEF_TEST(GrBinHashKey, reporter) {
44 TestHash<GrBinHashKey<kDataLenUsedForKey> >(reporter);
45 TestHash<GrMurmur3HashKey<kDataLenUsedForKey> >(reporter);
    [all...]
PathOpsDPointTest.cpp 23 DEF_TEST(PathOpsDPoint, reporter) {
28 REPORTER_ASSERT(reporter, p == pt);
29 REPORTER_ASSERT(reporter, !(pt != pt));
32 REPORTER_ASSERT(reporter, p == pt);
34 REPORTER_ASSERT(reporter, p == pt);
35 REPORTER_ASSERT(reporter, p.approximatelyEqual(pt));
38 REPORTER_ASSERT(reporter, p == pt);
39 REPORTER_ASSERT(reporter, p.approximatelyEqual(sPt));
40 REPORTER_ASSERT(reporter, p.roughlyEqual(pt));
41 REPORTER_ASSERT(reporter, p.moreRoughlyEqual(pt))
    [all...]
XfermodeTest.cpp 14 static void test_asMode(skiatest::Reporter* reporter) {
19 REPORTER_ASSERT(reporter, reportedMode != mode);
22 REPORTER_ASSERT(reporter, SkXfermode::AsMode(xfer, &reportedMode));
23 REPORTER_ASSERT(reporter, reportedMode == mode);
28 REPORTER_ASSERT(reporter, xfer->asMode(&reportedMode));
29 REPORTER_ASSERT(reporter, reportedMode == mode);
32 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode);
37 static void test_IsMode(skiatest::Reporter* reporter) {
    [all...]
StringTest.cpp 35 DEF_TEST(String, reporter) {
41 REPORTER_ASSERT(reporter, a.isEmpty());
42 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
50 REPORTER_ASSERT(reporter, !a.isEmpty());
51 REPORTER_ASSERT(reporter, a.size() == 5);
52 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
53 REPORTER_ASSERT(reporter, a.equals("hello", 5));
54 REPORTER_ASSERT(reporter, a.equals("hello"));
55 REPORTER_ASSERT(reporter, !a.equals("help"));
57 REPORTER_ASSERT(reporter, a.startsWith("hell"))
    [all...]
GrOrderedSetTest.cpp 17 DEF_TEST(GrOrderedSet, 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...]
DataRefTest.cpp 16 static void test_is_equal(skiatest::Reporter* reporter,
18 REPORTER_ASSERT(reporter, a->count() == b->count());
23 REPORTER_ASSERT(reporter, sizea == sizeb);
24 REPORTER_ASSERT(reporter, !memcmp(mema, memb, sizea));
28 static void test_datatable_is_empty(skiatest::Reporter* reporter,
30 REPORTER_ASSERT(reporter, table->isEmpty());
31 REPORTER_ASSERT(reporter, 0 == table->count());
34 static void test_emptytable(skiatest::Reporter* reporter)
    [all...]
SListTest.cpp 18 static bool verifyEmptyList(skiatest::Reporter* reporter,
23 ERRORF(reporter, "%s - List not empty", stage);
27 ERRORF(reporter, "%s - List count is not zero, %d instead", stage, list.getCount());
31 ERRORF(reporter, "%s - List has elements when empty", stage);
37 static bool verifyList(skiatest::Reporter* reporter,
43 ERRORF(reporter, "%s - List was too short, %d instead of %d", stage, list.getCount(), count);
49 ERRORF(reporter, "%s - List too short, should be %d", stage, count);
53 ERRORF(reporter, "%s - List entries at index %d of %d don't match", stage, index, count)
    [all...]
SmallAllocatorTest.cpp 30 template<uint32_t kMaxObjects, size_t kBytes> void test_allocator(skiatest::Reporter* reporter) {
35 REPORTER_ASSERT(reporter, c != NULL);
36 REPORTER_ASSERT(reporter, CountingClass::GetCount() == static_cast<int>(i+1));
39 REPORTER_ASSERT(reporter, CountingClass::GetCount() == 0);
44 DEF_TEST(SmallAllocator_destructor, reporter) {
48 test_allocator<5, 20>(reporter);
49 test_allocator<10, 40>(reporter);
50 test_allocator<20, 80>(reporter);
55 test_allocator<50, 20>(reporter);
    [all...]

Completed in 338 milliseconds

12 3 4 5 6 7 8 91011>>