Returns the output format, or "" for normal printed output.
| 1686 | |
| 1687 | // Returns the output format, or "" for normal printed output. |
| 1688 | String UnitTestOptions::GetOutputFormat() { |
| 1689 | const char* const gtest_output_flag = GTEST_FLAG(output).c_str(); |
| 1690 | if (gtest_output_flag == NULL) return String(""); |
| 1691 | |
| 1692 | const char* const colon = strchr(gtest_output_flag, ':'); |
| 1693 | return (colon == NULL) ? |
| 1694 | String(gtest_output_flag) : |
| 1695 | String(gtest_output_flag, colon - gtest_output_flag); |
| 1696 | } |
| 1697 | |
| 1698 | // Returns the name of the requested output file, or the default if none |
| 1699 | // was explicitly specified. |