Home | History | Annotate | Download | only in samples

Lines Matching refs:TEST

31 // This sample shows how to use Google Test listener API to implement
33 // to enumerate test cases and tests and to inspect their results.
41 using ::testing::Test;
54 // Called before any test activity starts.
57 // Called after all test activities have ended.
59 fprintf(stdout, "TEST %s\n", unit_test.Passed() ? "PASSED" : "FAILED");
63 // Called before a test starts.
66 "*** Test %s.%s starting.\n",
83 // Called after a test ends.
86 "*** Test %s.%s ending.\n",
93 TEST(CustomOutputTest, PrintsMessage) {
94 printf("Printing something from the test body...\n");
97 TEST(CustomOutputTest, Succeeds) {
101 TEST(CustomOutputTest, Fails) {
103 << "This test fails in order to demonstrate alternative failure messages";
126 // not receive events from Google Test and won't print any output. Since
132 // events from Google Test and print the alternative output. We don't
133 // have to worry about deleting it since Google Test assumes ownership
139 // This is an example of using the UnitTest reflection API to inspect test
155 // Test that were meant to fail should not affect the test program outcome.