Searched defs:reporter (Results 1 - 25 of 278) sorted by relevance

1234567891011>>

/external/chromium_org/third_party/skia/tests/
H A DTArrayTest.cpp14 static void TestTSet_basic(skiatest::Reporter* reporter) { argument
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,
[all...]
H A DBitmapHasherTest.cpp19 SkColor color, skiatest::Reporter* reporter) {
24 DEF_TEST(BitmapHasher, reporter) {
29 CreateTestBitmap(&bitmap, 333, 555, SK_ColorBLUE, reporter);
30 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
31 REPORTER_ASSERT(reporter, digest == 0xfb2903562766ef87ULL);
33 CreateTestBitmap(&bitmap, 555, 333, SK_ColorBLUE, reporter);
34 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
35 REPORTER_ASSERT(reporter, digest == 0xfe04023fb97d0f61ULL);
37 CreateTestBitmap(&bitmap, 555, 333, SK_ColorGREEN, reporter);
38 REPORTER_ASSERT(reporter, SkBitmapHashe
18 CreateTestBitmap(SkBitmap* bitmap, int width, int height, SkColor color, skiatest::Reporter* reporter) argument
[all...]
H A DGrBinHashKeyTest.cpp16 template<typename KeyType> static void TestHash(skiatest::Reporter* reporter) { argument
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);
H A DImageIsOpaqueTest.cpp17 static void check_isopaque(skiatest::Reporter* reporter, SkSurface* surface, bool expectedOpaque) { argument
19 REPORTER_ASSERT(reporter, image->isOpaque() == expectedOpaque);
22 DEF_TEST(ImageIsOpaqueTest, reporter) {
25 check_isopaque(reporter, surfaceTransparent, false);
29 check_isopaque(reporter, surfaceOpaque, true);
34 DEF_GPUTEST(ImageIsOpaqueTest_GPU, reporter, factory) {
50 check_isopaque(reporter, surfaceTransparent, false);
56 check_isopaque(reporter, surfaceOpaque, true);
H A DXfermodeTest.cpp14 static void test_asMode(skiatest::Reporter* reporter) { argument
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) { argument
38 REPORTER_ASSERT(reporter, SkXfermode::IsMode(NULL,
45 REPORTER_ASSERT(reporter, SkXfermod
[all...]
H A DBitmapTest.cpp12 static void test_allocpixels(skiatest::Reporter* reporter) { argument
20 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
22 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
25 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
28 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
30 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
33 REPORTER_ASSERT(reporter, explicitRowBytes == bm.rowBytes());
37 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
40 REPORTER_ASSERT(reporter, info.minRowBytes() == bm.rowBytes());
44 REPORTER_ASSERT(reporter, !succes
48 test_bigwidth(skiatest::Reporter* reporter) argument
[all...]
H A DDocumentTest.cpp8 static void test_empty(skiatest::Reporter* reporter) { argument
15 REPORTER_ASSERT(reporter, stream.bytesWritten() == 0);
18 static void test_abort(skiatest::Reporter* reporter) { argument
28 REPORTER_ASSERT(reporter, stream.bytesWritten() == 0);
31 static void test_abortWithFile(skiatest::Reporter* reporter) { argument
56 REPORTER_ASSERT(reporter, fread(buffer, 1, 1, file) == 0);
60 static void test_file(skiatest::Reporter* reporter) { argument
79 REPORTER_ASSERT(reporter, file != NULL);
81 REPORTER_ASSERT(reporter, fread(header, 4, 1, file) != 0);
82 REPORTER_ASSERT(reporter, strncm
86 test_close(skiatest::Reporter* reporter) argument
[all...]
H A DFlatDataTest.cpp37 * @param reporter Object to report failures.
42 static void testCreate(skiatest::Reporter* reporter, const T& obj) { argument
47 REPORTER_ASSERT(reporter, *data1 == *data2);
50 DEF_TEST(FlatData, reporter) {
61 testCreate<SkFlattenableTraits>(reporter, *shader);
65 testCreate<SkFlattenableTraits>(reporter, *cf);
69 testCreate<SkFlattenableTraits>(reporter, *xfer);
H A DFontConfigParser.cpp23 skiatest::Reporter* reporter) {
24 REPORTER_ASSERT(reporter, fontFamilies[0]->fNames.count() == 5);
25 REPORTER_ASSERT(reporter, !strcmp(fontFamilies[0]->fNames[0].c_str(), "sans-serif"));
26 REPORTER_ASSERT(reporter,
29 REPORTER_ASSERT(reporter, !fontFamilies[0]->fIsFallbackFont);
60 DEF_TEST(FontConfigParserAndroid, reporter) {
70 REPORTER_ASSERT(reporter, preV17FontFamilies.count() == 14);
71 REPORTER_ASSERT(reporter, CountFallbacks(preV17FontFamilies) == 10);
74 ValidateLoadedFonts(preV17FontFamilies, reporter);
86 REPORTER_ASSERT(reporter, v17FontFamilie
22 ValidateLoadedFonts(SkTDArray<FontFamily*> fontFamilies, skiatest::Reporter* reporter) argument
[all...]
H A DFontMgrTest.cpp15 static void test_font(skiatest::Reporter* reporter) { argument
19 REPORTER_ASSERT(reporter, font->getTypeface());
20 REPORTER_ASSERT(reporter, 24 == font->getSize());
21 REPORTER_ASSERT(reporter, 1 == font->getScaleX());
22 REPORTER_ASSERT(reporter, 0 == font->getSkewX());
23 REPORTER_ASSERT(reporter, SkFont::kA8_MaskType == font->getMaskType());
30 REPORTER_ASSERT(reporter, 5 == count);
32 REPORTER_ASSERT(reporter, 0 != glyphs[i]);
34 REPORTER_ASSERT(reporter, glyphs[0] != glyphs[1]); // 'h' != 'e'
35 REPORTER_ASSERT(reporter, glyph
56 test_alias_names(skiatest::Reporter* reporter) argument
81 test_fontiter(skiatest::Reporter* reporter, bool verbose) argument
[all...]
H A DGeometryTest.cpp15 static void testChopCubic(skiatest::Reporter* reporter) { argument
32 REPORTER_ASSERT(reporter, count);
36 DEF_TEST(Geometry, reporter) {
44 REPORTER_ASSERT(reporter, count == 1 || count == 2);
57 REPORTER_ASSERT(reporter, nearly_equal(cubic[i], dst[i]));
60 testChopCubic(reporter);
H A DGpuRectanizerTest.cpp21 static void test_rectanizer_basic(skiatest::Reporter* reporter, GrRectanizer* rectanizer) { argument
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);
47 static void test_skyline(skiatest::Reporter* reporter, const SkTDArray<SkISize>& rects) { argument
50 test_rectanizer_basic(reporter, &skylineRectanizer);
51 test_rectanizer_inserts(reporter, &skylineRectanizer, rects);
54 static void test_pow2(skiatest::Reporter* reporter, cons argument
[all...]
H A DMD5Test.cpp20 static void md5_test(const char* string, const SkMD5::Digest& expectedDigest, skiatest::Reporter* reporter) { argument
30 REPORTER_ASSERT(reporter, digests_equal(expectedDigest, digest));
44 REPORTER_ASSERT(reporter, digests_equal(expectedDigest, digest));
62 DEF_TEST(MD5, reporter) {
64 md5_test(md5_tests[i].message, md5_tests[i].digest, reporter);
H A DOSPathTest.cpp16 * @param reporter Reporter for test conditions.
22 static void test_dir_with_file(skiatest::Reporter* reporter, SkString dir, argument
38 REPORTER_ASSERT(reporter, fullName.size() == expectedSize);
44 REPORTER_ASSERT(reporter, basename.equals(filename));
55 REPORTER_ASSERT(reporter, dirname.equals(strippedDir));
58 REPORTER_ASSERT(reporter, !basename.contains(SkPATH_SEPARATOR));
62 REPORTER_ASSERT(reporter, basename.equals(filename));
65 DEF_TEST(OSPath, reporter) {
68 test_dir_with_file(reporter, dir, filename);
72 test_dir_with_file(reporter, di
[all...]
H A DObjectPoolTest.cpp21 static bool verifyPool(skiatest::Reporter* reporter, argument
26 ERRORF(reporter, "%s - Pool available is %d not %d",
31 ERRORF(reporter, "%s - Pool blocks is %d not %d",
39 static void testObjectPool(skiatest::Reporter* reporter) { argument
42 verifyPool(reporter, pool, "empty", 0, 0);
47 if (!verifyPool(reporter, pool, "acquire", available, blocks)) {
56 if (!verifyPool(reporter, pool, "release", available, blocks)) {
62 REPORTER_ASSERT(reporter, used.isEmpty());
63 verifyPool(reporter, pool, "releaseAll", available, blocks);
66 DEF_TEST(ObjectPool, reporter) {
[all...]
/external/skia/tests/
H A DTArrayTest.cpp14 static void TestTSet_basic(skiatest::Reporter* reporter) { argument
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,
[all...]
H A DBitmapTest.cpp12 static void test_bigwidth(skiatest::Reporter* reporter) { argument
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);
H A DBitmapHasherTest.cpp19 SkColor color, skiatest::Reporter* reporter) {
21 REPORTER_ASSERT(reporter, bitmap->allocPixels(info));
25 DEF_TEST(BitmapHasher, reporter) {
30 CreateTestBitmap(&bitmap, 333, 555, SK_ColorBLUE, reporter);
31 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
32 REPORTER_ASSERT(reporter, digest == 0xfb2903562766ef87ULL);
34 CreateTestBitmap(&bitmap, 555, 333, SK_ColorBLUE, reporter);
35 REPORTER_ASSERT(reporter, SkBitmapHasher::ComputeDigest(bitmap, &digest));
36 REPORTER_ASSERT(reporter, digest == 0xfe04023fb97d0f61ULL);
38 CreateTestBitmap(&bitmap, 555, 333, SK_ColorGREEN, reporter);
18 CreateTestBitmap(SkBitmap* bitmap, int width, int height, SkColor color, skiatest::Reporter* reporter) argument
[all...]
H A DTestSize.cpp11 static void TestISize(skiatest::Reporter* reporter) { argument
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));
29 REPORTER_ASSERT(reporter,
[all...]
H A DXfermodeTest.cpp14 static void test_asMode(skiatest::Reporter* reporter) { argument
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) { argument
38 REPORTER_ASSERT(reporter, SkXfermode::IsMode(NULL,
45 REPORTER_ASSERT(reporter, SkXfermod
[all...]
/external/jdiff/src/jdiff/
H A DOptions.java132 * @param reporter a DocErrorReporter for generating error messages
137 DocErrorReporter reporter) {
138 final DocErrorReporter errOut = reporter;
136 validOptions(String[][] options, DocErrorReporter reporter) argument
/external/mockito/src/org/mockito/internal/verification/
H A DOnly.java21 private final Reporter reporter = new Reporter(); field in class:Only
30 reporter.noMoreInteractionsWanted(unverified, (List) invocations);
32 reporter.wantedButNotInvoked(wantedMatcher);
/external/chromium_org/third_party/skia/dm/
H A DDMCpuGMTask.cpp11 Reporter* reporter,
15 : CpuTask(reporter, taskRunner)
10 CpuGMTask(const char* config, Reporter* reporter, TaskRunner* taskRunner, skiagm::GMRegistry::Factory gmFactory, SkColorType colorType) argument
H A DDMGpuGMTask.cpp11 Reporter* reporter,
17 : GpuTask(reporter, taskRunner)
10 GpuGMTask(const char* config, Reporter* reporter, TaskRunner* taskRunner, skiagm::GMRegistry::Factory gmFactory, GrContextFactory::GLContextType contextType, GrGLStandard gpuAPI, int sampleCount) argument
H A DDMTestTask.cpp19 CpuTestTask::CpuTestTask(Reporter* reporter, argument
22 : CpuTask(reporter, taskRunner)
26 GpuTestTask::GpuTestTask(Reporter* reporter, argument
29 : GpuTask(reporter, taskRunner)

Completed in 322 milliseconds

1234567891011>>