aboutsummaryrefslogtreecommitdiffstats
path: root/googletest/src
diff options
context:
space:
mode:
authorAbseil Team <absl-team@google.com>2020-03-17 16:58:55 -0400
committervslashg <gfalcon@google.com>2020-03-17 17:20:47 -0400
commit482ac6ee63429af2aa9c44f4e6427873fb68fb1f (patch)
tree00e13ffb5285d8b46dd5e5e301f86e2299a4bc8b /googletest/src
parentc43f7100f084db17197c34c2d776ad2973dbf539 (diff)
downloadgoogletest-482ac6ee63429af2aa9c44f4e6427873fb68fb1f.tar.gz
googletest-482ac6ee63429af2aa9c44f4e6427873fb68fb1f.tar.bz2
googletest-482ac6ee63429af2aa9c44f4e6427873fb68fb1f.zip
Googletest export
Move internal function out of header because Hyrum's law always wins. PiperOrigin-RevId: 301446904
Diffstat (limited to 'googletest/src')
-rw-r--r--googletest/src/gtest.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/googletest/src/gtest.cc b/googletest/src/gtest.cc
index 6911ad69..2eb2ecb8 100644
--- a/googletest/src/gtest.cc
+++ b/googletest/src/gtest.cc
@@ -3056,6 +3056,9 @@ static const char * TestPartResultTypeToString(TestPartResult::Type type) {
}
namespace internal {
+namespace {
+enum class GTestColor { kDefault, kRed, kGreen, kYellow };
+} // namespace
// Prints a TestPartResult to an std::string.
static std::string PrintTestPartResultToString(
@@ -3194,6 +3197,7 @@ bool ShouldUseColor(bool stdout_is_tty) {
// cannot simply emit special characters and have the terminal change colors.
// This routine must actually emit the characters rather than return a string
// that would be colored when printed, as can be done on Linux.
+
void ColoredPrintf(GTestColor color, const char* fmt, ...) {
va_list args;
va_start(args, fmt);