Returns the current OS stack trace getter if it is not NULL; otherwise, creates an OsStackTraceGetter, makes it the current getter, and returns it.
| 7059 | // otherwise, creates an OsStackTraceGetter, makes it the current |
| 7060 | // getter, and returns it. |
| 7061 | OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() { |
| 7062 | if (os_stack_trace_getter_ == nullptr) { |
| 7063 | #ifdef GTEST_OS_STACK_TRACE_GETTER_ |
| 7064 | os_stack_trace_getter_ = new GTEST_OS_STACK_TRACE_GETTER_; |
| 7065 | #else |
| 7066 | os_stack_trace_getter_ = new OsStackTraceGetter; |
| 7067 | #endif // GTEST_OS_STACK_TRACE_GETTER_ |
| 7068 | } |
| 7069 | |
| 7070 | return os_stack_trace_getter_; |
| 7071 | } |
| 7072 | |
| 7073 | // Returns the most specific TestResult currently running. |
| 7074 | TestResult* UnitTestImpl::current_test_result() { |