| 364 | } |
| 365 | |
| 366 | inline void GTestConvertor::addAllGTestToTestRegistry() |
| 367 | { |
| 368 | createDummyInSequenceToAndFailureReporterAvoidMemoryLeakInGMock(); |
| 369 | flags_.storeValuesOfGTestFLags(); |
| 370 | |
| 371 | int argc = 2; |
| 372 | const char * argv[] = {"NameOfTheProgram", "--gmock_catch_leaked_mocks=0"}; |
| 373 | ::testing::InitGoogleMock(&argc, (char**) argv); |
| 374 | |
| 375 | ::testing::UnitTest* unitTests = ::testing::UnitTest::GetInstance(); |
| 376 | |
| 377 | int currentUnitTestCount = 0; |
| 378 | ::testing::TestCase* currentTestCase = (::testing::TestCase*) unitTests->GetTestCase(currentUnitTestCount); |
| 379 | while (currentTestCase) { |
| 380 | addAllTestsFromTestCaseToTestRegistry(currentTestCase); |
| 381 | currentUnitTestCount++; |
| 382 | currentTestCase = (::testing::TestCase*) unitTests->GetTestCase(currentUnitTestCount); |
| 383 | } |
| 384 | } |
| 385 | |
| 386 | |
| 387 | #endif |
no test coverage detected