Lines Matching refs:FooTest
766 class FooTest : public testing::Test { ... };
768 using FooDeathTest = FooTest;
770 TEST_F(FooTest, DoesThis) {
974 15: TEST(FooTest, Bar) {
1037 TEST(FooTest, Bar) {
1122 TEST(FooTest, Bar) {
1193 1. In your test fixture class (say `FooTest` ), declare as `static` some member
1203 *first test* in the `FooTest` test suite (i.e. before creating the first
1204 `FooTest` object), and calls `TearDownTestSuite()` after running the *last test*
1205 in it (i.e. after deleting the last `FooTest` object). In between, the tests can
1216 class FooTest : public testing::Test {
1243 T* FooTest::shared_resource_ = nullptr;
1245 TEST_F(FooTest, Test1) {
1249 TEST_F(FooTest, Test2) {
1348 class FooTest :
1370 TEST_P(FooTest, DoesBlah) {
1377 TEST_P(FooTest, HasBlahBlah) {
1400 The following statement will instantiate tests from the `FooTest` test suite
1405 FooTest,
1422 * `MeenyMinyMoe/FooTest.DoesBlah/0` for `"meeny"`
1423 * `MeenyMinyMoe/FooTest.DoesBlah/1` for `"miny"`
1424 * `MeenyMinyMoe/FooTest.DoesBlah/2` for `"moe"`
1425 * `MeenyMinyMoe/FooTest.HasBlahBlah/0` for `"meeny"`
1426 * `MeenyMinyMoe/FooTest.HasBlahBlah/1` for `"miny"`
1427 * `MeenyMinyMoe/FooTest.HasBlahBlah/2` for `"moe"`
1431 The following statement will instantiate all tests from `FooTest` again, each
1436 INSTANTIATE_TEST_SUITE_P(Pets, FooTest, testing::ValuesIn(pets));
1441 * `Pets/FooTest.DoesBlah/0` for `"cat"`
1442 * `Pets/FooTest.DoesBlah/1` for `"dog"`
1443 * `Pets/FooTest.HasBlahBlah/0` for `"cat"`
1444 * `Pets/FooTest.HasBlahBlah/1` for `"dog"`
1458 GTEST_ALLOW_UNINSTANTIATED_PARAMETERIZED_TEST(FooTest);
1468 In the above, we define and instantiate `FooTest` in the *same* source file.
1479 1. Put the definition of the parameterized test fixture class (e.g. `FooTest`)
1567 class FooTest : public testing::Test {
1581 TYPED_TEST_SUITE(FooTest, MyTypes);
1592 TYPED_TEST(FooTest, DoesBlah) {
1595 // us to visit the members of FooTest via 'this'.
1610 TYPED_TEST(FooTest, HasPropertyA) { ... }
1635 class FooTest : public testing::Test {
1643 TYPED_TEST_SUITE_P(FooTest);
1650 TYPED_TEST_P(FooTest, DoesBlah) {
1656 TYPED_TEST_P(FooTest, HasPropertyA) { ... }
1665 REGISTER_TYPED_TEST_SUITE_P(FooTest,
1675 INSTANTIATE_TYPED_TEST_SUITE_P(My, FooTest, MyTypes);
1687 INSTANTIATE_TYPED_TEST_SUITE_P(My, FooTest, int);
1757 FRIEND_TEST(FooTest, BarReturnsZeroOnNull);
1764 TEST(FooTest, BarReturnsZeroOnNull) {
1780 friend class FooTest;
1781 FRIEND_TEST(FooTest, Bar);
1782 FRIEND_TEST(FooTest, Baz);
1794 class FooTest : public testing::Test {
1799 TEST_F(FooTest, Bar) { ... }
1800 TEST_F(FooTest, Baz) { ... }
2145 * `./foo_test --gtest_filter=FooTest.*` Runs everything in test suite
2146 `FooTest` .
2150 * `./foo_test --gtest_filter=FooTest.*-FooTest.Bar` Runs everything in test
2151 suite `FooTest` except `FooTest.Bar`.
2152 * `./foo_test --gtest_filter=FooTest.*:BarTest.*-FooTest.Bar:BarTest.Foo` Runs
2153 everything in test suite `FooTest` except `FooTest.Bar` and everything in
2181 TEST(FooTest, DISABLED_DoesAbc) { ... }
2265 <font color="green">[----------]</font> 1 test from FooTest
2266 <font color="green">[ RUN ]</font> FooTest.DoesAbc
2267 <font color="green">[ OK ]</font> FooTest.DoesAbc