Returns the current OS stack trace getter if it is not NULL; otherwise, creates an OsStackTraceGetter, makes it the current getter, and returns it.
| 6457 | // otherwise, creates an OsStackTraceGetter, makes it the current |
| 6458 | // getter, and returns it. |
| 6459 | OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() { |
| 6460 | if (os_stack_trace_getter_ == NULL) { |
| 6461 | os_stack_trace_getter_ = new OsStackTraceGetter; |
| 6462 | } |
| 6463 | |
| 6464 | return os_stack_trace_getter_; |
| 6465 | } |
| 6466 | |
| 6467 | // Returns the TestResult for the test that's currently running, or |
| 6468 | // the TestResult for the ad hoc test if no test is running. |