• Home
  • Raw
  • Download

Lines Matching refs:reporter

12 static void test_automalloc_realloc(skiatest::Reporter* reporter) {  in test_automalloc_realloc()  argument
17 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc()
23 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc()
27 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc()
31 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc()
43 REPORTER_ASSERT(reporter, array[i] == 10 - i); in test_automalloc_realloc()
47 REPORTER_ASSERT(reporter, array[i] == 10 - i); in test_automalloc_realloc()
51 REPORTER_ASSERT(reporter, array[0] = 10); in test_automalloc_realloc()
59 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc()
65 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc()
67 REPORTER_ASSERT(reporter, array[0] == 1); in test_automalloc_realloc()
70 DEF_TEST(Templates, reporter) { in DEF_TEST() argument
71 test_automalloc_realloc(reporter); in DEF_TEST()
78 static void test_container_apis(skiatest::Reporter* reporter) { in test_container_apis() argument
79 REPORTER_ASSERT(reporter, !TContainer((TCount)0).get()); in test_container_apis()
80 REPORTER_ASSERT(reporter, TContainer((TCount)1).get()); in test_container_apis()
81 REPORTER_ASSERT(reporter, TContainer((TCount)kStackPreallocCount).get()); in test_container_apis()
82 REPORTER_ASSERT(reporter, TContainer((TCount)kStackPreallocCount + 1).get()); in test_container_apis()
88 REPORTER_ASSERT(reporter, container.get()); in test_container_apis()
91 REPORTER_ASSERT(reporter, container.get()); in test_container_apis()
94 REPORTER_ASSERT(reporter, container.get()); in test_container_apis()
97 REPORTER_ASSERT(reporter, !container.get()); in test_container_apis()
100 DEF_TEST(TemplateContainerAPIs, reporter) { in DEF_TEST() argument
101 test_container_apis<SkAutoTArray<int>, int>(reporter); in DEF_TEST()
102 test_container_apis<SkAutoSTArray<kStackPreallocCount, int>, int>(reporter); in DEF_TEST()
103 test_container_apis<SkAutoTMalloc<int>, size_t>(reporter); in DEF_TEST()
104 test_container_apis<SkAutoSTMalloc<kStackPreallocCount, int>, size_t>(reporter); in DEF_TEST()
108 template<typename TAutoMalloc> static void test_realloc_to_zero(skiatest::Reporter* reporter) { in test_realloc_to_zero() argument
110 REPORTER_ASSERT(reporter, autoMalloc.get()); in test_realloc_to_zero()
113 REPORTER_ASSERT(reporter, !autoMalloc.get()); in test_realloc_to_zero()
116 REPORTER_ASSERT(reporter, autoMalloc.get()); in test_realloc_to_zero()
119 REPORTER_ASSERT(reporter, !autoMalloc.get()); in test_realloc_to_zero()
122 REPORTER_ASSERT(reporter, autoMalloc.get()); in test_realloc_to_zero()
125 DEF_TEST(AutoReallocToZero, reporter) { in DEF_TEST() argument
126 test_realloc_to_zero<SkAutoTMalloc<int> >(reporter); in DEF_TEST()
127 test_realloc_to_zero<SkAutoSTMalloc<kStackPreallocCount, int> >(reporter); in DEF_TEST()