Home | History | Annotate | Download | only in tests

Lines Matching refs:Reporter

59 static void test_random_byte(skiatest::Reporter* reporter, int shift) {
68 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000));
71 static void test_random_float(skiatest::Reporter* reporter) {
78 REPORTER_ASSERT(reporter, 0.0f <= f && f < 1.0f);
81 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000));
86 REPORTER_ASSERT(reporter, 0.0f <= f && f < 1.0f);
89 REPORTER_ASSERT(reporter, anderson_darling_test(p));
102 static double test_single_gorilla(skiatest::Reporter* reporter, int shift) {
148 REPORTER_ASSERT(reporter, 0.01 < p && p < 0.99);
152 static void test_gorilla(skiatest::Reporter* reporter) {
156 p[bit_position] = test_single_gorilla(reporter, bit_position);
159 REPORTER_ASSERT(reporter, anderson_darling_test(p));
162 static void test_range(skiatest::Reporter* reporter) {
173 REPORTER_ASSERT(reporter, 17 <= u && u <= 17+255);
177 REPORTER_ASSERT(reporter, chi_square_test(bins, 10000));
180 DEF_TEST(Random, reporter) {
182 test_random_byte(reporter, 0);
183 test_random_byte(reporter, 8);
184 test_random_byte(reporter, 16);
185 test_random_byte(reporter, 24);
187 test_random_float(reporter);
189 test_gorilla(reporter);
191 test_range(reporter);