HomeSort by relevance Sort by last modified time
    Searched refs:REPORTER_ASSERT (Results 1 - 25 of 210) sorted by null

1 2 3 4 5 6 7 8 9

  /external/skia/tests/
TestTest.cpp 18 REPORTER_ASSERT(reporter, reporter);
24 REPORTER_ASSERT(reporter, reporter);
25 REPORTER_ASSERT(reporter, factory);
33 REPORTER_ASSERT(reporter, reporter);
34 REPORTER_ASSERT(reporter, context);
42 REPORTER_ASSERT(reporter, reporter);
43 REPORTER_ASSERT(reporter, context);
52 REPORTER_ASSERT(reporter, reporter);
53 REPORTER_ASSERT(reporter, context);
61 REPORTER_ASSERT(reporter, reporter)
    [all...]
RuntimeConfigTest.cpp 16 REPORTER_ASSERT(reporter, 1 == c_RTConfTestVariable);
20 REPORTER_ASSERT(reporter, 2 == c_RTConfTestVariable);
23 REPORTER_ASSERT(reporter, 1 == c_RTConfTestVariable);
BitSetTest.cpp 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);
28 REPORTER_ASSERT(reporter, set0.isBitSet(24) == true);
29 REPORTER_ASSERT(reporter, set0.isBitSet(35) == true)
    [all...]
StringTest.cpp 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"));
58 REPORTER_ASSERT(reporter, a.startsWith('h'))
    [all...]
RefDictTest.cpp 22 REPORTER_ASSERT(reporter, nullptr == dict.find(nullptr));
23 REPORTER_ASSERT(reporter, nullptr == dict.find("foo"));
24 REPORTER_ASSERT(reporter, nullptr == dict.find("bar"));
27 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
28 REPORTER_ASSERT(reporter, !data0.unique());
31 REPORTER_ASSERT(reporter, &data0 == dict.find("foo"));
32 REPORTER_ASSERT(reporter, !data0.unique());
35 REPORTER_ASSERT(reporter, &data1 == dict.find("foo"));
36 REPORTER_ASSERT(reporter, data0.unique());
37 REPORTER_ASSERT(reporter, !data1.unique())
    [all...]
DiscardableMemoryPoolTest.cpp 15 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed());
18 REPORTER_ASSERT(reporter, dm1->data() != nullptr);
19 REPORTER_ASSERT(reporter, 100 == pool->getRAMUsed());
21 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed());
22 REPORTER_ASSERT(reporter, !dm1->lock());
26 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed());
29 REPORTER_ASSERT(reporter, 200 == pool->getRAMUsed());
30 REPORTER_ASSERT(reporter, dm2->lock());
33 REPORTER_ASSERT(reporter, !dm2->lock());
34 REPORTER_ASSERT(reporter, 0 == pool->getRAMUsed())
    [all...]
MetaDataTest.cpp 14 REPORTER_ASSERT(reporter, ref.unique());
21 REPORTER_ASSERT(reporter, md0.findRefCnt(name));
22 REPORTER_ASSERT(reporter, md0.hasRefCnt(name, &ref));
23 REPORTER_ASSERT(reporter, !ref.unique());
26 REPORTER_ASSERT(reporter, md1.findRefCnt(name));
27 REPORTER_ASSERT(reporter, md1.hasRefCnt(name, &ref));
28 REPORTER_ASSERT(reporter, !ref.unique());
30 REPORTER_ASSERT(reporter, md0.removeRefCnt(name));
31 REPORTER_ASSERT(reporter, !md0.findRefCnt(name));
32 REPORTER_ASSERT(reporter, !md0.hasRefCnt(name, &ref))
    [all...]
SizeTest.cpp 16 REPORTER_ASSERT(reporter, a.isEmpty());
18 REPORTER_ASSERT(reporter, a.isEmpty());
20 REPORTER_ASSERT(reporter, a.isEmpty());
22 REPORTER_ASSERT(reporter, a == b);
25 REPORTER_ASSERT(reporter, !a.isEmpty());
27 REPORTER_ASSERT(reporter, !b.isEmpty());
28 REPORTER_ASSERT(reporter, a == b);
29 REPORTER_ASSERT(reporter, !(a != b));
30 REPORTER_ASSERT(reporter,
42 REPORTER_ASSERT(reporter, a.isEmpty())
    [all...]
Time.cpp 33 REPORTER_ASSERT(r, dateTime.fMonth >= 1);
34 REPORTER_ASSERT(r, dateTime.fMonth <= 12);
36 REPORTER_ASSERT(r, dateTime.fDay >= 1);
37 REPORTER_ASSERT(r, dateTime.fDay <= 31);
39 REPORTER_ASSERT(r, dateTime.fHour <= 23);
41 REPORTER_ASSERT(r, dateTime.fMinute <= 59);
43 REPORTER_ASSERT(r, dateTime.fSecond <= 60); // leap seconds are 23:59:60
47 REPORTER_ASSERT(r, SkTAbs(SkToInt(dateTime.fTimeZoneMinutes)) <= 14 * 60);
51 REPORTER_ASSERT(r, timeStamp.size() > 0);
HashTest.cpp 24 REPORTER_ASSERT(r, map.count() == 1);
26 REPORTER_ASSERT(r, map.approxBytesUsed() > 0);
29 REPORTER_ASSERT(r, found);
30 REPORTER_ASSERT(r, *found == 4.0);
33 REPORTER_ASSERT(r, count(map) == 1);
36 REPORTER_ASSERT(r, found);
37 REPORTER_ASSERT(r, *found == -3.0);
39 REPORTER_ASSERT(r, !map.find(2));
48 REPORTER_ASSERT(r, found);
49 REPORTER_ASSERT(r, *found == i*2.0)
    [all...]
TestConfigParsing.cpp 36 REPORTER_ASSERT(reporter, configs.count() == 1);
37 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("gpu"));
38 REPORTER_ASSERT(reporter, configs[0]->getViaParts().count() == 0);
40 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu());
41 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getContextType()
43 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseNVPR() == false);
44 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getUseDIText() == false);
45 REPORTER_ASSERT(reporter, configs[0]->asConfigGpu()->getSamples() == 0);
54 REPORTER_ASSERT(reporter, configs.count() == 1);
55 REPORTER_ASSERT(reporter, configs[0]->getTag().equals("gpu"))
    [all...]
UtilsTest.cpp 30 REPORTER_ASSERT(reporter, obj.unique());
33 REPORTER_ASSERT(reporter, &obj == tmp.get());
34 REPORTER_ASSERT(reporter, obj.unique());
36 REPORTER_ASSERT(reporter, &obj == tmp.detach());
37 REPORTER_ASSERT(reporter, obj.unique());
38 REPORTER_ASSERT(reporter, nullptr == tmp.detach());
39 REPORTER_ASSERT(reporter, nullptr == tmp.get());
42 REPORTER_ASSERT(reporter, !obj.unique());
46 REPORTER_ASSERT(reporter, obj.unique());
52 REPORTER_ASSERT(reporter, obj0.unique())
    [all...]
PathOpsDPointTest.cpp 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));
42 REPORTER_ASSERT(reporter, p.fX == 0 && p.fY == 0);
43 REPORTER_ASSERT(reporter, p.approximatelyZero())
    [all...]
Reader32Test.cpp 12 REPORTER_ASSERT(reporter, reader.eof());
13 REPORTER_ASSERT(reporter, reader.size() == reader.offset());
14 REPORTER_ASSERT(reporter, (const char*)reader.peek() ==
19 REPORTER_ASSERT(reporter, 0 == reader.offset());
20 REPORTER_ASSERT(reporter, reader.size() == reader.available());
21 REPORTER_ASSERT(reporter, reader.isAvailable(reader.size()));
22 REPORTER_ASSERT(reporter, !reader.isAvailable(reader.size() + 1));
23 REPORTER_ASSERT(reporter, reader.peek() == reader.base());
27 REPORTER_ASSERT(reporter, 0 == reader.size());
28 REPORTER_ASSERT(reporter, 0 == reader.offset())
    [all...]
MessageBusTest.cpp 30 REPORTER_ASSERT(r, 2 == messages.count());
31 REPORTER_ASSERT(r, 5 == messages[0].x);
32 REPORTER_ASSERT(r, 6 == messages[1].x);
38 REPORTER_ASSERT(r, 1 == messages.count());
39 REPORTER_ASSERT(r, 1 == messages[0].x);
43 REPORTER_ASSERT(r, 0 == messages.count());
47 REPORTER_ASSERT(r, 3 == messages.count());
48 REPORTER_ASSERT(r, 5 == messages[0].x);
49 REPORTER_ASSERT(r, 6 == messages[1].x);
50 REPORTER_ASSERT(r, 1 == messages[2].x)
    [all...]
PathMeasureTest.cpp 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);
141 REPORTER_ASSERT(reporter, meas.getPosTan(SK_ScalarHalf, &position, &tangent))
    [all...]
TemplatesTest.cpp 17 REPORTER_ASSERT(reporter, array[0] == 1);
23 REPORTER_ASSERT(reporter, array[0] == 1);
27 REPORTER_ASSERT(reporter, array[0] == 1);
31 REPORTER_ASSERT(reporter, array[0] == 1);
43 REPORTER_ASSERT(reporter, array[i] == 10 - i);
47 REPORTER_ASSERT(reporter, array[i] == 10 - i);
51 REPORTER_ASSERT(reporter, array[0] = 10);
59 REPORTER_ASSERT(reporter, array[0] == 1);
65 REPORTER_ASSERT(reporter, array[0] == 1);
67 REPORTER_ASSERT(reporter, array[0] == 1)
    [all...]
TArrayTest.cpp 18 REPORTER_ASSERT(reporter, a.empty());
19 REPORTER_ASSERT(reporter, a.count() == 0);
23 REPORTER_ASSERT(reporter, !a.empty());
24 REPORTER_ASSERT(reporter, a.count() == 1);
28 REPORTER_ASSERT(reporter, a.empty());
29 REPORTER_ASSERT(reporter, a.count() == 0);
33 REPORTER_ASSERT(reporter, a.push_back() = 1);
35 REPORTER_ASSERT(reporter, !a.empty());
36 REPORTER_ASSERT(reporter, a.count() == 1);
37 REPORTER_ASSERT(reporter, a[0] == 1)
    [all...]
TypefaceTest.cpp 16 REPORTER_ASSERT(reporter, SkTypeface::Equal(t1.get(), t2.get()));
17 REPORTER_ASSERT(reporter, SkTypeface::Equal(0, t1.get()));
18 REPORTER_ASSERT(reporter, SkTypeface::Equal(0, t2.get()));
19 REPORTER_ASSERT(reporter, SkTypeface::Equal(t1.get(), 0));
20 REPORTER_ASSERT(reporter, SkTypeface::Equal(t2.get(), 0));
24 REPORTER_ASSERT(reporter, nullptr == t3.get());
MatrixTest.cpp 45 REPORTER_ASSERT(reporter, aVal == bVal && aValI == aValI);
48 REPORTER_ASSERT(reporter, foundZeroSignDiff);
59 REPORTER_ASSERT(reporter, aVal == bVal && aValI == bValI);
62 REPORTER_ASSERT(reporter, foundNaN);
80 REPORTER_ASSERT(reporter, buffer[0] == a);
81 REPORTER_ASSERT(reporter, buffer[1] == b);
82 REPORTER_ASSERT(reporter, buffer[2] == c);
83 REPORTER_ASSERT(reporter, buffer[3] == d);
84 REPORTER_ASSERT(reporter, buffer[4] == e);
85 REPORTER_ASSERT(reporter, buffer[5] == f)
    [all...]
GpuLayerCacheTest.cpp 62 REPORTER_ASSERT(reporter, layer);
65 REPORTER_ASSERT(reporter, temp == layer);
67 REPORTER_ASSERT(reporter, TestingAccess::NumLayers(cache) == idOffset + i + 1);
69 REPORTER_ASSERT(reporter, picture.uniqueID() == layer->pictureID());
70 REPORTER_ASSERT(reporter, layer->start() == idOffset + i + 1);
71 REPORTER_ASSERT(reporter, layer->stop() == idOffset + i + 2);
72 REPORTER_ASSERT(reporter, nullptr == layer->texture());
73 REPORTER_ASSERT(reporter, nullptr == layer->paint());
74 REPORTER_ASSERT(reporter, !layer->isAtlased());
93 REPORTER_ASSERT(reporter, needsRerendering)
    [all...]
DiscardableMemoryTest.cpp 16 REPORTER_ASSERT(reporter, dm.get() != nullptr);
21 REPORTER_ASSERT(reporter, ptr != nullptr);
25 REPORTER_ASSERT(reporter, success);
30 REPORTER_ASSERT(reporter, 0 == memcmp(ptr, testString, len));
InterpolatorTest.cpp 28 REPORTER_ASSERT(reporter, result == SkInterpolator::kFreezeStart_Result);
29 REPORTER_ASSERT(reporter, memcmp(v, v1, sizeof(v)) == 0);
32 REPORTER_ASSERT(reporter, result == SkInterpolator::kFreezeStart_Result);
33 REPORTER_ASSERT(reporter, memcmp(v, v1, sizeof(v)) == 0);
36 REPORTER_ASSERT(reporter, result == SkInterpolator::kNormal_Result);
37 REPORTER_ASSERT(reporter, memcmp(v, v1, sizeof(v)) == 0);
40 REPORTER_ASSERT(reporter, result == SkInterpolator::kNormal_Result);
41 REPORTER_ASSERT(reporter, memcmp(v, v2, sizeof(v)) == 0);
44 REPORTER_ASSERT(reporter, result == SkInterpolator::kFreezeEnd_Result);
45 REPORTER_ASSERT(reporter, memcmp(v, v2, sizeof(v)) == 0)
    [all...]
XfermodeTest.cpp 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);
38 REPORTER_ASSERT(reporter, SkXfermode::IsMode(nullptr,
45 REPORTER_ASSERT(reporter, SkXfermode::IsMode(xfer, mode));
49 REPORTER_ASSERT(reporter, !SkXfermode::IsMode(nullptr, mode));
ResourceCacheTest.cpp 77 REPORTER_ASSERT(reporter, curCacheSize <= maxCacheSize);
104 REPORTER_ASSERT(reporter,
115 REPORTER_ASSERT(reporter,
132 REPORTER_ASSERT(reporter,
152 REPORTER_ASSERT(reporter,
162 REPORTER_ASSERT(reporter,
180 REPORTER_ASSERT(reporter,
219 REPORTER_ASSERT(reporter, SkToBool(borrowed) && SkToBool(adopted));
232 REPORTER_ASSERT(reporter, borrowedIsAlive);
233 REPORTER_ASSERT(reporter, !adoptedIsAlive)
    [all...]

Completed in 547 milliseconds

1 2 3 4 5 6 7 8 9