Initializes event listeners for streaming test results in String form. Must not be called before InitGoogleTest.
| 5315 | // Initializes event listeners for streaming test results in String form. |
| 5316 | // Must not be called before InitGoogleTest. |
| 5317 | void UnitTestImpl::ConfigureStreamingOutput() { |
| 5318 | const string& target = GTEST_FLAG(stream_result_to); |
| 5319 | if (!target.empty()) { |
| 5320 | const size_t pos = target.find(':'); |
| 5321 | if (pos != string::npos) { |
| 5322 | listeners()->Append(new StreamingListener(target.substr(0, pos), |
| 5323 | target.substr(pos+1))); |
| 5324 | } else { |
| 5325 | printf("WARNING: unrecognized streaming target \"%s\" ignored.\n", |
| 5326 | target.c_str()); |
| 5327 | fflush(stdout); |
| 5328 | } |
| 5329 | } |
| 5330 | } |
| 5331 | #endif // GTEST_CAN_STREAM_RESULTS_ |
| 5332 | |
| 5333 | // Performs initialization dependent upon flag values obtained in |