Lines Matching defs:reporter
17 DEF_TEST(String, reporter) {
23 REPORTER_ASSERT(reporter, a.isEmpty());
24 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
32 REPORTER_ASSERT(reporter, !a.isEmpty());
33 REPORTER_ASSERT(reporter, a.size() == 5);
34 REPORTER_ASSERT(reporter, a == b && a == c && a == d);
35 REPORTER_ASSERT(reporter, a.equals("hello", 5));
36 REPORTER_ASSERT(reporter, a.equals("hello"));
37 REPORTER_ASSERT(reporter, !a.equals("help"));
39 REPORTER_ASSERT(reporter, a.startsWith("hell"));
40 REPORTER_ASSERT(reporter, a.startsWith('h'));
41 REPORTER_ASSERT(reporter, !a.startsWith( "ell"));
42 REPORTER_ASSERT(reporter, !a.startsWith( 'e'));
43 REPORTER_ASSERT(reporter, a.startsWith(""));
44 REPORTER_ASSERT(reporter, a.endsWith("llo"));
45 REPORTER_ASSERT(reporter, a.endsWith('o'));
46 REPORTER_ASSERT(reporter, !a.endsWith("ll" ));
47 REPORTER_ASSERT(reporter, !a.endsWith('l'));
48 REPORTER_ASSERT(reporter, a.endsWith(""));
49 REPORTER_ASSERT(reporter, a.contains("he"));
50 REPORTER_ASSERT(reporter, a.contains("ll"));
51 REPORTER_ASSERT(reporter, a.contains("lo"));
52 REPORTER_ASSERT(reporter, a.contains("hello"));
53 REPORTER_ASSERT(reporter, !a.contains("hellohello"));
54 REPORTER_ASSERT(reporter, a.contains(""));
55 REPORTER_ASSERT(reporter, a.contains('e'));
56 REPORTER_ASSERT(reporter, !a.contains('z'));
62 REPORTER_ASSERT(reporter, a == e && a == f && a == g);
66 REPORTER_ASSERT(reporter, a != b && a != c && b == c);
73 REPORTER_ASSERT(reporter, a.equals("hello world") && a == e && a == f);
77 REPORTER_ASSERT(reporter, a.isEmpty() && b.isEmpty() && a == b);
86 REPORTER_ASSERT(reporter, a.equals("2147483647"));
89 REPORTER_ASSERT(reporter, a.equals("-2147483647"));
92 REPORTER_ASSERT(reporter, a.equals("-2147483648"));
96 REPORTER_ASSERT(reporter, a.equals("2147483647"));
99 REPORTER_ASSERT(reporter, a.equals("2147483649"));
102 REPORTER_ASSERT(reporter, a.equals("4294967295"));
106 REPORTER_ASSERT(reporter, a.equals("9223372036854775807"));
109 REPORTER_ASSERT(reporter, a.equals("-9223372036854775807"));
112 REPORTER_ASSERT(reporter, a.equals("-9223372036854775808"));
115 REPORTER_ASSERT(reporter, a.equals("000000016777216"));
118 REPORTER_ASSERT(reporter, a.equals("-000000016777216"));
122 REPORTER_ASSERT(reporter, a.equals("9223372036854775807"));
125 REPORTER_ASSERT(reporter, a.equals("9223372036854775809"));
128 REPORTER_ASSERT(reporter, a.equals("18446744073709551615"));
131 REPORTER_ASSERT(reporter, a.equals("000000016777216"));
134 REPORTER_ASSERT(reporter, a.equals("0"));
136 REPORTER_ASSERT(reporter, a.equals("3.14"));
138 REPORTER_ASSERT(reporter, a.equals("hello skia"));
163 REPORTER_ASSERT(reporter, a.size() <= kSkStrAppendScalar_MaxSize);
165 ERRORF(reporter, "received <%s> expected <%s>\n", a.c_str(), gRec[i].fString);
169 REPORTER_ASSERT(reporter, SkStringPrintf("%i", 0).equals("0"));
172 static void assert_2000_spaces(skiatest::Reporter* reporter, const SkString& str) {
173 REPORTER_ASSERT(reporter, str.size() == 2000);
175 REPORTER_ASSERT(reporter, str[i] == ' ');
179 DEF_TEST(String_overflow, reporter) {
182 assert_2000_spaces(reporter, a);
186 assert_2000_spaces(reporter, a);
190 REPORTER_ASSERT(reporter, a[0] == 'X');
192 assert_2000_spaces(reporter, a);
196 REPORTER_ASSERT(reporter, a[1999] == 'X');
198 assert_2000_spaces(reporter, a);