HomeSort by relevance Sort by last modified time
    Searched full:reporter (Results 1 - 25 of 385) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /external/skia/tests/
TSetTest.cpp 13 static void TestTSet_basic(skiatest::Reporter* reporter) {
15 REPORTER_ASSERT(reporter, set0.isEmpty());
16 REPORTER_ASSERT(reporter, !set0.contains(-1));
17 REPORTER_ASSERT(reporter, !set0.contains(0));
18 REPORTER_ASSERT(reporter, !set0.contains(1));
19 REPORTER_ASSERT(reporter, set0.count() == 0);
21 REPORTER_ASSERT(reporter, set0.add(0));
22 REPORTER_ASSERT(reporter, !set0.isEmpty());
23 REPORTER_ASSERT(reporter, !set0.contains(-1))
    [all...]
BitSetTest.cpp 11 static void TestBitSet(skiatest::Reporter* reporter) {
13 REPORTER_ASSERT(reporter, set0.isBitSet(0) == false);
14 REPORTER_ASSERT(reporter, set0.isBitSet(32767) == false);
15 REPORTER_ASSERT(reporter, set0.isBitSet(65535) == false);
18 REPORTER_ASSERT(reporter, set0 == set1);
21 REPORTER_ASSERT(reporter, set0.isBitSet(22) == true);
23 REPORTER_ASSERT(reporter, set0.isBitSet(24) == true);
25 REPORTER_ASSERT(reporter, set0.isBitSet(35) == true);
27 REPORTER_ASSERT(reporter, set0.isBitSet(22) == false)
    [all...]
TestSize.cpp 11 static void TestISize(skiatest::Reporter* reporter) {
15 REPORTER_ASSERT(reporter, a.isEmpty());
17 REPORTER_ASSERT(reporter, a.isEmpty());
19 REPORTER_ASSERT(reporter, a.isEmpty());
21 REPORTER_ASSERT(reporter, a == b);
24 REPORTER_ASSERT(reporter, !a.isEmpty());
26 REPORTER_ASSERT(reporter, !b.isEmpty());
27 REPORTER_ASSERT(reporter, a == b);
28 REPORTER_ASSERT(reporter, !(a != b))
    [all...]
RefDictTest.cpp 20 static void TestRefDict(skiatest::Reporter* reporter) {
24 REPORTER_ASSERT(reporter, NULL == dict.find(NULL));
25 REPORTER_ASSERT(reporter, NULL == dict.find("foo"));
26 REPORTER_ASSERT(reporter, NULL == dict.find("bar"));
29 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
30 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
33 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
34 REPORTER_ASSERT(reporter, 2 == data0.getRefCnt());
37 REPORTER_ASSERT(reporter, &data1 == dict.find("foo"))
    [all...]
MetaDataTest.cpp 11 static void test_ptrs(skiatest::Reporter* reporter) {
13 REPORTER_ASSERT(reporter, 1 == ref.getRefCnt());
20 REPORTER_ASSERT(reporter, md0.findRefCnt(name));
21 REPORTER_ASSERT(reporter, md0.hasRefCnt(name, &ref));
22 REPORTER_ASSERT(reporter, 2 == ref.getRefCnt());
25 REPORTER_ASSERT(reporter, md1.findRefCnt(name));
26 REPORTER_ASSERT(reporter, md1.hasRefCnt(name, &ref));
27 REPORTER_ASSERT(reporter, 3 == ref.getRefCnt());
29 REPORTER_ASSERT(reporter, md0.removeRefCnt(name))
    [all...]
Reader32Test.cpp 14 static void assert_eof(skiatest::Reporter* reporter, const SkReader32& reader) {
15 REPORTER_ASSERT(reporter, reader.eof());
16 REPORTER_ASSERT(reporter, reader.size() == reader.offset());
17 REPORTER_ASSERT(reporter, (const char*)reader.peek() ==
21 static void assert_start(skiatest::Reporter* reporter, const SkReader32& reader) {
22 REPORTER_ASSERT(reporter, 0 == reader.offset());
23 REPORTER_ASSERT(reporter, reader.size() == reader.available());
24 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size()))
    [all...]
XfermodeTest.cpp 18 static void test_asMode(skiatest::Reporter* reporter) {
23 REPORTER_ASSERT(reporter, reportedMode != mode);
26 REPORTER_ASSERT(reporter, SkXfermode::IsMode(xfer, &reportedMode));
27 REPORTER_ASSERT(reporter, reportedMode == mode);
32 REPORTER_ASSERT(reporter, xfer->asMode(&reportedMode));
33 REPORTER_ASSERT(reporter, reportedMode == mode);
36 REPORTER_ASSERT(reporter, SkXfermode::kSrcOver_Mode == mode);
42 REPORTER_ASSERT(reporter, !bogusXfer->asMode(&reportedMode));
43 REPORTER_ASSERT(reporter, reportedMode == ILLEGAL_MODE)
    [all...]
UtilsTest.cpp 30 static void test_autounref(skiatest::Reporter* reporter) {
32 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
35 REPORTER_ASSERT(reporter, &obj == tmp.get());
36 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
38 REPORTER_ASSERT(reporter, &obj == tmp.detach());
39 REPORTER_ASSERT(reporter, 1 == obj.getRefCnt());
40 REPORTER_ASSERT(reporter, NULL == tmp.detach());
41 REPORTER_ASSERT(reporter, NULL == tmp.get());
44 REPORTER_ASSERT(reporter, 2 == obj.getRefCnt())
    [all...]
DataRefTest.cpp 17 static void test_is_equal(skiatest::Reporter* reporter,
19 REPORTER_ASSERT(reporter, a->count() == b->count());
24 REPORTER_ASSERT(reporter, sizea == sizeb);
25 REPORTER_ASSERT(reporter, !memcmp(mema, memb, sizea));
29 static void test_datatable_flatten(skiatest::Reporter* reporter,
41 test_is_equal(reporter, table, newTable);
44 static void test_datatable_is_empty(skiatest::Reporter* reporter,
    [all...]
FrontBufferedStreamTest.cpp 13 static void test_read(skiatest::Reporter* reporter, SkStream* bufferedStream,
19 REPORTER_ASSERT(reporter, bytesRead == bytesToRead || bufferedStream->isAtEnd());
20 REPORTER_ASSERT(reporter, memcmp(storage.get(), expectations, bytesRead) == 0);
23 static void test_rewind(skiatest::Reporter* reporter,
26 REPORTER_ASSERT(reporter, success == shouldSucceed);
36 static void test_incremental_buffering(skiatest::Reporter* reporter, size_t bufferSize) {
42 test_read(reporter, bufferedStream, gAbcs, bufferSize >> 1)
    [all...]
PathOpsDPointTest.cpp 23 static void PathOpsDPointTest(skiatest::Reporter* 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))
    [all...]
PictureUtilsTest.cpp 11 static void test_filepath_creation(skiatest::Reporter* reporter) {
16 REPORTER_ASSERT(reporter, result.equals("test/path/test"));
19 static void test_get_basename(skiatest::Reporter* reporter) {
23 REPORTER_ASSERT(reporter, result.equals("basename"));
28 REPORTER_ASSERT(reporter, result.equals("dir"));
33 REPORTER_ASSERT(reporter, result.equals("path"));
39 REPORTER_ASSERT(reporter, result.equals("winbasename"));
44 REPORTER_ASSERT(reporter, result.equals("windir"))
    [all...]
StringTest.cpp 37 static void TestString(skiatest::Reporter* reporter) {
43 REPORTER_ASSERT(reporter, a.isEmpty());
44 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
52 REPORTER_ASSERT(reporter, !a.isEmpty());
53 REPORTER_ASSERT(reporter, a.size() == 5);
54 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
55 REPORTER_ASSERT(reporter, a.equals("hello", 5));
56 REPORTER_ASSERT(reporter, a.equals("hello"));
57 REPORTER_ASSERT(reporter, !a.equals("help"))
    [all...]
Writer32Test.cpp 16 static void check_contents(skiatest::Reporter* reporter, const SkWriter32& writer,
19 REPORTER_ASSERT(reporter, writer.bytesWritten() == size);
21 REPORTER_ASSERT(reporter, !memcmp(storage.get(), expected, size));
24 static void test_string_null(skiatest::Reporter* reporter) {
35 check_contents(reporter, writer, null, sizeof(null));
37 REPORTER_ASSERT(reporter, NULL == str);
38 REPORTER_ASSERT(reporter, 0 == len);
46 check_contents(reporter, writer, empty, sizeof(empty))
    [all...]
DequeTest.cpp 11 static void assert_count(skiatest::Reporter* reporter, const SkDeque& deq, int count) {
13 REPORTER_ASSERT(reporter, deq.empty());
14 REPORTER_ASSERT(reporter, 0 == deq.count());
15 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize());
16 REPORTER_ASSERT(reporter, NULL == deq.front());
17 REPORTER_ASSERT(reporter, NULL == deq.back());
19 REPORTER_ASSERT(reporter, !deq.empty());
20 REPORTER_ASSERT(reporter, count == deq.count());
21 REPORTER_ASSERT(reporter, sizeof(int) == deq.elemSize())
    [all...]
PathOpsSimplifyTest.cpp 11 static void testLine1(skiatest::Reporter* reporter) {
17 testSimplify(reporter, path);
20 static void testLine1x(skiatest::Reporter* reporter) {
27 testSimplify(reporter, path);
58 static void testLine2(skiatest::Reporter* reporter) {
63 testSimplify(reporter, path);
66 static void testLine2x(skiatest::Reporter* reporter)
    [all...]
ShaderOpacityTest.cpp 13 static void test_bitmap(skiatest::Reporter* reporter) {
20 REPORTER_ASSERT(reporter, shader);
21 REPORTER_ASSERT(reporter, !shader->isOpaque());
30 REPORTER_ASSERT(reporter, shader);
31 REPORTER_ASSERT(reporter, !shader->isOpaque());
38 REPORTER_ASSERT(reporter, shader);
39 REPORTER_ASSERT(reporter, shader->isOpaque());
46 REPORTER_ASSERT(reporter, shader);
47 REPORTER_ASSERT(reporter, !shader->isOpaque())
    [all...]
GradientTest.cpp 24 void gradCheck(skiatest::Reporter* reporter, SkShader* shader,
33 REPORTER_ASSERT(reporter, shader->asAGradient(info) == gt);
35 REPORTER_ASSERT(reporter, info->fColorCount == fColorCount);
36 REPORTER_ASSERT(reporter,
38 REPORTER_ASSERT(reporter,
40 REPORTER_ASSERT(reporter, fTileMode == info->fTileMode);
45 static void none_gradproc(skiatest::Reporter* reporter, const GradRec&) {
47 REPORTER_ASSERT(reporter, SkShader::kNone_GradientType == s->asAGradient(NULL))
    [all...]
MatrixTest.cpp 36 static bool are_equal(skiatest::Reporter* reporter,
53 REPORTER_ASSERT(reporter, aVal == bVal && aValI == aValI);
56 REPORTER_ASSERT(reporter, foundZeroSignDiff);
67 REPORTER_ASSERT(reporter, aVal == bVal && aValI == bValI);
70 REPORTER_ASSERT(reporter, foundNaN);
73 REPORTER_ASSERT(reporter, false);
85 static void test_matrix_recttorect(skiatest::Reporter* reporter) {
92 REPORTER_ASSERT(reporter, SkMatrix::kIdentity_Mask == matrix.getType())
    [all...]
GrSurfaceTest.cpp 21 static void GrSurfaceIsSameTest(skiatest::Reporter* reporter, GrContextFactory* factory) {
35 REPORTER_ASSERT(reporter, texRT1->isSameAs(texRT1));
36 REPORTER_ASSERT(reporter, texRT1->isSameAs(texRT1->asRenderTarget()));
37 REPORTER_ASSERT(reporter, texRT1->asRenderTarget()->isSameAs(texRT1));
38 REPORTER_ASSERT(reporter, !texRT2->isSameAs(texRT1));
39 REPORTER_ASSERT(reporter, !texRT2->asRenderTarget()->isSameAs(texRT1));
40 REPORTER_ASSERT(reporter, !texRT2->isSameAs(texRT1->asRenderTarget()));
41 REPORTER_ASSERT(reporter, !texRT2->isSameAs(tex1));
42 REPORTER_ASSERT(reporter, !texRT2->asRenderTarget()->isSameAs(tex1))
    [all...]
Matrix44Test.cpp 31 template <typename T> void assert16(skiatest::Reporter* reporter, const T data[],
36 REPORTER_ASSERT(reporter, data[0] == m0);
37 REPORTER_ASSERT(reporter, data[1] == m1);
38 REPORTER_ASSERT(reporter, data[2] == m2);
39 REPORTER_ASSERT(reporter, data[3] == m3);
41 REPORTER_ASSERT(reporter, data[4] == m4);
42 REPORTER_ASSERT(reporter, data[5] == m5);
43 REPORTER_ASSERT(reporter, data[6] == m6);
44 REPORTER_ASSERT(reporter, data[7] == m7)
    [all...]
MemsetTest.cpp 12 static void test_chunkalloc(skiatest::Reporter* reporter) {
16 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity());
17 REPORTER_ASSERT(reporter, 0 == alloc.totalUsed());
18 REPORTER_ASSERT(reporter, 0 == alloc.blockCount());
19 REPORTER_ASSERT(reporter, !alloc.contains(NULL));
20 REPORTER_ASSERT(reporter, !alloc.contains(reporter));
23 REPORTER_ASSERT(reporter, 0 == alloc.totalCapacity());
24 REPORTER_ASSERT(reporter, 0 == alloc.totalUsed())
    [all...]
FlateTest.cpp 33 static void TestFlate(skiatest::Reporter* reporter, SkMemoryStream* testStream,
47 REPORTER_ASSERT(reporter, status);
53 REPORTER_ASSERT(reporter, testData.getLength() == inputSize);
54 REPORTER_ASSERT(reporter, memcmp(testData.getMemoryBase(),
60 REPORTER_ASSERT(reporter, compressed.getOffset() < 1024);
62 REPORTER_ASSERT(reporter, compressed.getOffset() > 1024);
69 REPORTER_ASSERT(reporter, status);
75 REPORTER_ASSERT(reporter, data1->size() == inputSize);
76 REPORTER_ASSERT(reporter, memcmp(testStream->getMemoryBase()
    [all...]
  /libcore/luni/src/main/java/libcore/io/
DropBox.java 24 private static volatile Reporter REPORTER = new DefaultReporter();
27 * Used to replace default Reporter for logging events. Must be non-null.
29 public static void setReporter(Reporter reporter) {
30 if (reporter == null) {
31 throw new NullPointerException("reporter == null");
33 REPORTER = reporter;
37 * Returns non-null Reporter
    [all...]
EventLogger.java 24 private static volatile Reporter REPORTER = new DefaultReporter();
27 * Used to replace default Reporter for logging events. Must be non-null.
29 public static void setReporter(Reporter reporter) {
30 if (reporter == null) {
31 throw new NullPointerException("reporter == null");
33 REPORTER = reporter;
37 * Returns non-null Reporter
    [all...]

Completed in 1160 milliseconds

1 2 3 4 5 6 7 8 91011>>