"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "googletest/test/googletest-filter-unittest_.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-filter-unittest_.cc  (googletest-release-1.11.0):googletest-filter-unittest_.cc  (googletest-release-1.12.0)
skipping to change at line 45 skipping to change at line 45
// //
// The program will be invoked from a Python unit test. Don't run it // The program will be invoked from a Python unit test. Don't run it
// directly. // directly.
#include "gtest/gtest.h" #include "gtest/gtest.h"
namespace { namespace {
// Test case FooTest. // Test case FooTest.
class FooTest : public testing::Test { class FooTest : public testing::Test {};
};
TEST_F(FooTest, Abc) { TEST_F(FooTest, Abc) {}
}
TEST_F(FooTest, Xyz) { TEST_F(FooTest, Xyz) { FAIL() << "Expected failure."; }
FAIL() << "Expected failure.";
}
// Test case BarTest. // Test case BarTest.
TEST(BarTest, TestOne) { TEST(BarTest, TestOne) {}
}
TEST(BarTest, TestTwo) { TEST(BarTest, TestTwo) {}
}
TEST(BarTest, TestThree) { TEST(BarTest, TestThree) {}
}
TEST(BarTest, DISABLED_TestFour) { TEST(BarTest, DISABLED_TestFour) { FAIL() << "Expected failure."; }
FAIL() << "Expected failure.";
} TEST(BarTest, DISABLED_TestFive) { FAIL() << "Expected failure."; }
TEST(BarTest, DISABLED_TestFive) {
FAIL() << "Expected failure.";
}
// Test case BazTest. // Test case BazTest.
TEST(BazTest, TestOne) { TEST(BazTest, TestOne) { FAIL() << "Expected failure."; }
FAIL() << "Expected failure.";
} TEST(BazTest, TestA) {}
TEST(BazTest, TestA) { TEST(BazTest, TestB) {}
}
TEST(BazTest, DISABLED_TestC) { FAIL() << "Expected failure."; }
TEST(BazTest, TestB) {
}
TEST(BazTest, DISABLED_TestC) {
FAIL() << "Expected failure.";
}
// Test case HasDeathTest // Test case HasDeathTest
TEST(HasDeathTest, Test1) { TEST(HasDeathTest, Test1) { EXPECT_DEATH_IF_SUPPORTED(exit(1), ".*"); }
EXPECT_DEATH_IF_SUPPORTED(exit(1), ".*");
}
// We need at least two death tests to make sure that the all death tests // We need at least two death tests to make sure that the all death tests
// aren't on the first shard. // aren't on the first shard.
TEST(HasDeathTest, Test2) { TEST(HasDeathTest, Test2) { EXPECT_DEATH_IF_SUPPORTED(exit(1), ".*"); }
EXPECT_DEATH_IF_SUPPORTED(exit(1), ".*");
}
// Test case FoobarTest // Test case FoobarTest
TEST(DISABLED_FoobarTest, Test1) { TEST(DISABLED_FoobarTest, Test1) { FAIL() << "Expected failure."; }
FAIL() << "Expected failure.";
} TEST(DISABLED_FoobarTest, DISABLED_Test2) { FAIL() << "Expected failure."; }
TEST(DISABLED_FoobarTest, DISABLED_Test2) {
FAIL() << "Expected failure.";
}
// Test case FoobarbazTest // Test case FoobarbazTest
TEST(DISABLED_FoobarbazTest, TestA) { TEST(DISABLED_FoobarbazTest, TestA) { FAIL() << "Expected failure."; }
FAIL() << "Expected failure.";
}
class ParamTest : public testing::TestWithParam<int> { class ParamTest : public testing::TestWithParam<int> {};
};
TEST_P(ParamTest, TestX) { TEST_P(ParamTest, TestX) {}
}
TEST_P(ParamTest, TestY) { TEST_P(ParamTest, TestY) {}
}
INSTANTIATE_TEST_SUITE_P(SeqP, ParamTest, testing::Values(1, 2)); INSTANTIATE_TEST_SUITE_P(SeqP, ParamTest, testing::Values(1, 2));
INSTANTIATE_TEST_SUITE_P(SeqQ, ParamTest, testing::Values(5, 6)); INSTANTIATE_TEST_SUITE_P(SeqQ, ParamTest, testing::Values(5, 6));
} // namespace } // namespace
int main(int argc, char **argv) { int main(int argc, char **argv) {
::testing::InitGoogleTest(&argc, argv); ::testing::InitGoogleTest(&argc, argv);
return RUN_ALL_TESTS(); return RUN_ALL_TESTS();
 End of changes. 15 change blocks. 
55 lines changed or deleted 25 lines changed or added

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