| 271 | } |
| 272 | |
| 273 | void setup() |
| 274 | { |
| 275 | flags_->resetValuesOfGTestFlags(); |
| 276 | |
| 277 | #ifdef GTEST_VERSION_GTEST_1_5 |
| 278 | test_ = testinfo_->impl()->factory_->CreateTest(); |
| 279 | #else |
| 280 | test_ = testinfo_->factory_->CreateTest(); |
| 281 | #endif |
| 282 | |
| 283 | ::testing::UnitTest::GetInstance()->impl()->set_current_test_info(testinfo_); |
| 284 | try { |
| 285 | test_->SetUp(); |
| 286 | } |
| 287 | catch (CppUTestFailedException& ex) |
| 288 | { |
| 289 | } |
| 290 | } |
| 291 | |
| 292 | void teardown() |
| 293 | { |
nothing calls this directly
no test coverage detected