"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "googletest/test/googletest-shuffle-test_.cc" between
googletest-release-1.11.0.tar.gz and googletest-release-1.12.0.tar.gz

About: GoogleTest is Google's (unit) testing and mocking framework for C++ tests.

googletest-shuffle-test_.cc  (googletest-release-1.11.0):googletest-shuffle-test_.cc  (googletest-release-1.12.0)
skipping to change at line 90 skipping to change at line 90
printf("----\n"); printf("----\n");
} }
void OnTestStart(const TestInfo& test_info) override { void OnTestStart(const TestInfo& test_info) override {
printf("%s.%s\n", test_info.test_suite_name(), test_info.name()); printf("%s.%s\n", test_info.test_suite_name(), test_info.name());
} }
}; };
} // namespace } // namespace
int main(int argc, char **argv) { int main(int argc, char** argv) {
InitGoogleTest(&argc, argv); InitGoogleTest(&argc, argv);
// Replaces the default printer with TestNamePrinter, which prints // Replaces the default printer with TestNamePrinter, which prints
// the test name only. // the test name only.
TestEventListeners& listeners = UnitTest::GetInstance()->listeners(); TestEventListeners& listeners = UnitTest::GetInstance()->listeners();
delete listeners.Release(listeners.default_result_printer()); delete listeners.Release(listeners.default_result_printer());
listeners.Append(new TestNamePrinter); listeners.Append(new TestNamePrinter);
return RUN_ALL_TESTS(); return RUN_ALL_TESTS();
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)