Initializes event listeners for streaming test results in string form. Must not be called before InitGoogleTest.
| 6514 | // Initializes event listeners for streaming test results in string form. |
| 6515 | // Must not be called before InitGoogleTest. |
| 6516 | void UnitTestImpl::ConfigureStreamingOutput() { |
| 6517 | const std::string& target = GTEST_FLAG(stream_result_to); |
| 6518 | if (!target.empty()) { |
| 6519 | const size_t pos = target.find(':'); |
| 6520 | if (pos != std::string::npos) { |
| 6521 | listeners()->Append(new StreamingListener(target.substr(0, pos), |
| 6522 | target.substr(pos+1))); |
| 6523 | } else { |
| 6524 | GTEST_LOG_(WARNING) << "unrecognized streaming target \"" << target |
| 6525 | << "\" ignored."; |
| 6526 | } |
| 6527 | } |
| 6528 | } |
| 6529 | #endif // GTEST_CAN_STREAM_RESULTS_ |
| 6530 | |
| 6531 | // Performs initialization dependent upon flag values obtained in |