Lines Matching refs:tests

87     TestInfo const** const tests =  in GetSortedTests()  local
91 tests[i] = test_case->GetTestInfo(i); in GetSortedTests()
93 std::sort(tests, tests + test_case->total_test_count(), in GetSortedTests()
95 return tests; in GetSortedTests()
157 const TestInfo** tests = UnitTestHelper::GetSortedTests(test_case); in TEST() local
159 EXPECT_STREQ("DISABLED_Dummy1", tests[0]->name()); in TEST()
160 EXPECT_STREQ("ApiTest", tests[0]->test_case_name()); in TEST()
161 EXPECT_STREQ("", tests[0]->comment()); in TEST()
162 EXPECT_STREQ("", tests[0]->test_case_comment()); in TEST()
163 EXPECT_FALSE(tests[0]->should_run()); in TEST()
165 EXPECT_STREQ("TestCaseDisabledAccessorsWork", tests[1]->name()); in TEST()
166 EXPECT_STREQ("ApiTest", tests[1]->test_case_name()); in TEST()
167 EXPECT_STREQ("", tests[1]->comment()); in TEST()
168 EXPECT_STREQ("", tests[1]->test_case_comment()); in TEST()
169 EXPECT_TRUE(tests[1]->should_run()); in TEST()
171 EXPECT_STREQ("TestCaseImmutableAccessorsWork", tests[2]->name()); in TEST()
172 EXPECT_STREQ("ApiTest", tests[2]->test_case_name()); in TEST()
173 EXPECT_STREQ("", tests[2]->comment()); in TEST()
174 EXPECT_STREQ("", tests[2]->test_case_comment()); in TEST()
175 EXPECT_TRUE(tests[2]->should_run()); in TEST()
177 EXPECT_STREQ("UnitTestImmutableAccessorsWork", tests[3]->name()); in TEST()
178 EXPECT_STREQ("ApiTest", tests[3]->test_case_name()); in TEST()
179 EXPECT_STREQ("", tests[3]->comment()); in TEST()
180 EXPECT_STREQ("", tests[3]->test_case_comment()); in TEST()
181 EXPECT_TRUE(tests[3]->should_run()); in TEST()
183 delete[] tests; in TEST()
184 tests = NULL; in TEST()
197 tests = UnitTestHelper::GetSortedTests(test_case); in TEST()
199 EXPECT_STREQ("Dummy", tests[0]->name()); in TEST()
200 EXPECT_STREQ("TestCaseWithCommentTest/0", tests[0]->test_case_name()); in TEST()
201 EXPECT_STREQ("", tests[0]->comment()); in TEST()
203 tests[0]->test_case_comment()); in TEST()
204 EXPECT_TRUE(tests[0]->should_run()); in TEST()
206 delete[] tests; in TEST()
281 const TestInfo** tests = UnitTestHelper::GetSortedTests(test_case); in TearDown() local
282 EXPECT_STREQ("DISABLED_Dummy1", tests[0]->name()); in TearDown()
283 EXPECT_STREQ("ApiTest", tests[0]->test_case_name()); in TearDown()
284 EXPECT_FALSE(tests[0]->should_run()); in TearDown()
286 EXPECT_STREQ("TestCaseDisabledAccessorsWork", tests[1]->name()); in TearDown()
287 EXPECT_STREQ("ApiTest", tests[1]->test_case_name()); in TearDown()
288 EXPECT_STREQ("", tests[1]->comment()); in TearDown()
289 EXPECT_STREQ("", tests[1]->test_case_comment()); in TearDown()
290 EXPECT_TRUE(tests[1]->should_run()); in TearDown()
291 EXPECT_TRUE(tests[1]->result()->Passed()); in TearDown()
292 EXPECT_EQ(0, tests[1]->result()->test_property_count()); in TearDown()
294 EXPECT_STREQ("TestCaseImmutableAccessorsWork", tests[2]->name()); in TearDown()
295 EXPECT_STREQ("ApiTest", tests[2]->test_case_name()); in TearDown()
296 EXPECT_STREQ("", tests[2]->comment()); in TearDown()
297 EXPECT_STREQ("", tests[2]->test_case_comment()); in TearDown()
298 EXPECT_TRUE(tests[2]->should_run()); in TearDown()
299 EXPECT_TRUE(tests[2]->result()->Passed()); in TearDown()
300 EXPECT_EQ(0, tests[2]->result()->test_property_count()); in TearDown()
302 EXPECT_STREQ("UnitTestImmutableAccessorsWork", tests[3]->name()); in TearDown()
303 EXPECT_STREQ("ApiTest", tests[3]->test_case_name()); in TearDown()
304 EXPECT_STREQ("", tests[3]->comment()); in TearDown()
305 EXPECT_STREQ("", tests[3]->test_case_comment()); in TearDown()
306 EXPECT_TRUE(tests[3]->should_run()); in TearDown()
307 EXPECT_TRUE(tests[3]->result()->Passed()); in TearDown()
308 EXPECT_EQ(1, tests[3]->result()->test_property_count()); in TearDown()
309 const TestProperty& property = tests[3]->result()->GetTestProperty(0); in TearDown()
313 delete[] tests; in TearDown()
317 tests = UnitTestHelper::GetSortedTests(test_case); in TearDown()
319 EXPECT_STREQ("Dummy", tests[0]->name()); in TearDown()
320 EXPECT_STREQ("TestCaseWithCommentTest/0", tests[0]->test_case_name()); in TearDown()
321 EXPECT_STREQ("", tests[0]->comment()); in TearDown()
323 tests[0]->test_case_comment()); in TearDown()
324 EXPECT_TRUE(tests[0]->should_run()); in TearDown()
325 EXPECT_TRUE(tests[0]->result()->Passed()); in TearDown()
326 EXPECT_EQ(0, tests[0]->result()->test_property_count()); in TearDown()
328 delete[] tests; in TearDown()