"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "googletest/test/gtest-typed-test_test.h" 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.

gtest-typed-test_test.h  (googletest-release-1.11.0):gtest-typed-test_test.h  (googletest-release-1.12.0)
skipping to change at line 43 skipping to change at line 43
#include "gtest/gtest.h" #include "gtest/gtest.h"
using testing::Test; using testing::Test;
// For testing that the same type-parameterized test case can be // For testing that the same type-parameterized test case can be
// instantiated in different translation units linked together. // instantiated in different translation units linked together.
// ContainerTest will be instantiated in both gtest-typed-test_test.cc // ContainerTest will be instantiated in both gtest-typed-test_test.cc
// and gtest-typed-test2_test.cc. // and gtest-typed-test2_test.cc.
template <typename T> template <typename T>
class ContainerTest : public Test { class ContainerTest : public Test {};
};
TYPED_TEST_SUITE_P(ContainerTest); TYPED_TEST_SUITE_P(ContainerTest);
TYPED_TEST_P(ContainerTest, CanBeDefaultConstructed) { TYPED_TEST_P(ContainerTest, CanBeDefaultConstructed) { TypeParam container; }
TypeParam container;
}
TYPED_TEST_P(ContainerTest, InitialSizeIsZero) { TYPED_TEST_P(ContainerTest, InitialSizeIsZero) {
TypeParam container; TypeParam container;
EXPECT_EQ(0U, container.size()); EXPECT_EQ(0U, container.size());
} }
REGISTER_TYPED_TEST_SUITE_P(ContainerTest, REGISTER_TYPED_TEST_SUITE_P(ContainerTest, CanBeDefaultConstructed,
CanBeDefaultConstructed, InitialSizeIsZero); InitialSizeIsZero);
#endif // GOOGLETEST_TEST_GTEST_TYPED_TEST_TEST_H_ #endif // GOOGLETEST_TEST_GTEST_TYPED_TEST_TEST_H_
 End of changes. 3 change blocks. 
7 lines changed or deleted 4 lines changed or added

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