| 171 | }; |
| 172 | |
| 173 | class GTestConvertor |
| 174 | { |
| 175 | public: |
| 176 | GTestConvertor(bool shouldSimulateFailureAtCreationToAllocateThreadLocalData = true); |
| 177 | virtual ~GTestConvertor(); |
| 178 | |
| 179 | virtual void addAllGTestToTestRegistry(); |
| 180 | protected: |
| 181 | virtual void simulateGTestFailureToPreAllocateAllTheThreadLocalData(); |
| 182 | |
| 183 | virtual void addNewTestCaseForTestInfo(::testing::TestInfo* testinfo); |
| 184 | virtual void addAllTestsFromTestCaseToTestRegistry(::testing::TestCase* testcase); |
| 185 | |
| 186 | virtual void createDummyInSequenceToAndFailureReporterAvoidMemoryLeakInGMock(); |
| 187 | private: |
| 188 | GTestResultReporter* reporter_; |
| 189 | GTestShell* first_; |
| 190 | GTestFlagsThatAllocateMemory flags_; |
| 191 | }; |
| 192 | |
| 193 | class GTestDummyResultReporter : public ::testing::ScopedFakeTestPartResultReporter |
| 194 | { |
nothing calls this directly
no outgoing calls
no test coverage detected