Returns the current OS stack trace getter if it is not NULL; otherwise, creates an OsStackTraceGetter, makes it the current getter, and returns it.
| 6210 | // otherwise, creates an OsStackTraceGetter, makes it the current |
| 6211 | // getter, and returns it. |
| 6212 | OsStackTraceGetterInterface* UnitTestImpl::os_stack_trace_getter() { |
| 6213 | if (os_stack_trace_getter_ == nullptr) { |
| 6214 | #ifdef GTEST_OS_STACK_TRACE_GETTER_ |
| 6215 | os_stack_trace_getter_ = new GTEST_OS_STACK_TRACE_GETTER_; |
| 6216 | #else |
| 6217 | os_stack_trace_getter_ = new OsStackTraceGetter; |
| 6218 | #endif // GTEST_OS_STACK_TRACE_GETTER_ |
| 6219 | } |
| 6220 | |
| 6221 | return os_stack_trace_getter_; |
| 6222 | } |
| 6223 | |
| 6224 | // Returns the most specific TestResult currently running. |
| 6225 | TestResult* UnitTestImpl::current_test_result() { |