"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "googletest/test/googletest-env-var-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-env-var-test_.cc  (googletest-release-1.11.0):googletest-env-var-test_.cc  (googletest-release-1.12.0)
skipping to change at line 45 skipping to change at line 45
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "src/gtest-internal-inl.h" #include "src/gtest-internal-inl.h"
using ::std::cout; using ::std::cout;
namespace testing { namespace testing {
// The purpose of this is to make the test more realistic by ensuring // The purpose of this is to make the test more realistic by ensuring
// that the UnitTest singleton is created before main() is entered. // that the UnitTest singleton is created before main() is entered.
// We don't actual run the TEST itself. // We don't actual run the TEST itself.
TEST(GTestEnvVarTest, Dummy) { TEST(GTestEnvVarTest, Dummy) {}
}
void PrintFlag(const char* flag) { void PrintFlag(const char* flag) {
if (strcmp(flag, "break_on_failure") == 0) { if (strcmp(flag, "break_on_failure") == 0) {
cout << GTEST_FLAG(break_on_failure); cout << GTEST_FLAG_GET(break_on_failure);
return; return;
} }
if (strcmp(flag, "catch_exceptions") == 0) { if (strcmp(flag, "catch_exceptions") == 0) {
cout << GTEST_FLAG(catch_exceptions); cout << GTEST_FLAG_GET(catch_exceptions);
return; return;
} }
if (strcmp(flag, "color") == 0) { if (strcmp(flag, "color") == 0) {
cout << GTEST_FLAG(color); cout << GTEST_FLAG_GET(color);
return; return;
} }
if (strcmp(flag, "death_test_style") == 0) { if (strcmp(flag, "death_test_style") == 0) {
cout << GTEST_FLAG(death_test_style); cout << GTEST_FLAG_GET(death_test_style);
return; return;
} }
if (strcmp(flag, "death_test_use_fork") == 0) { if (strcmp(flag, "death_test_use_fork") == 0) {
cout << GTEST_FLAG(death_test_use_fork); cout << GTEST_FLAG_GET(death_test_use_fork);
return; return;
} }
if (strcmp(flag, "fail_fast") == 0) { if (strcmp(flag, "fail_fast") == 0) {
cout << GTEST_FLAG(fail_fast); cout << GTEST_FLAG_GET(fail_fast);
return; return;
} }
if (strcmp(flag, "filter") == 0) { if (strcmp(flag, "filter") == 0) {
cout << GTEST_FLAG(filter); cout << GTEST_FLAG_GET(filter);
return; return;
} }
if (strcmp(flag, "output") == 0) { if (strcmp(flag, "output") == 0) {
cout << GTEST_FLAG(output); cout << GTEST_FLAG_GET(output);
return; return;
} }
if (strcmp(flag, "brief") == 0) { if (strcmp(flag, "brief") == 0) {
cout << GTEST_FLAG(brief); cout << GTEST_FLAG_GET(brief);
return; return;
} }
if (strcmp(flag, "print_time") == 0) { if (strcmp(flag, "print_time") == 0) {
cout << GTEST_FLAG(print_time); cout << GTEST_FLAG_GET(print_time);
return; return;
} }
if (strcmp(flag, "repeat") == 0) { if (strcmp(flag, "repeat") == 0) {
cout << GTEST_FLAG(repeat); cout << GTEST_FLAG_GET(repeat);
return; return;
} }
if (strcmp(flag, "stack_trace_depth") == 0) { if (strcmp(flag, "stack_trace_depth") == 0) {
cout << GTEST_FLAG(stack_trace_depth); cout << GTEST_FLAG_GET(stack_trace_depth);
return; return;
} }
if (strcmp(flag, "throw_on_failure") == 0) { if (strcmp(flag, "throw_on_failure") == 0) {
cout << GTEST_FLAG(throw_on_failure); cout << GTEST_FLAG_GET(throw_on_failure);
return; return;
} }
cout << "Invalid flag name " << flag cout << "Invalid flag name " << flag
<< ". Valid names are break_on_failure, color, filter, etc.\n"; << ". Valid names are break_on_failure, color, filter, etc.\n";
exit(1); exit(1);
} }
} // namespace testing } // namespace testing
 End of changes. 14 change blocks. 
15 lines changed or deleted 14 lines changed or added

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