diff options
author | Abseil Team <absl-team@google.com> | 2018-10-05 16:51:39 (GMT) |
---|---|---|
committer | Gennadiy Civil <misterg@google.com> | 2018-10-05 16:54:28 (GMT) |
commit | f8a1481c0a7c5c30c6ad32bb315e472b91df314b (patch) | |
tree | 4ca87400571201696c0277b4aca8d3f7698747d2 /googletest/include/gtest/gtest.h | |
parent | c28ce4159060089cff896670188c7662caf9dd43 (diff) | |
download | googletest-f8a1481c0a7c5c30c6ad32bb315e472b91df314b.zip googletest-f8a1481c0a7c5c30c6ad32bb315e472b91df314b.tar.gz googletest-f8a1481c0a7c5c30c6ad32bb315e472b91df314b.tar.bz2 |
Make GTestColor and ColoredPrintF available as internal APIs from gtest.h. This is for use in abseil exception safety testing.
PiperOrigin-RevId: 215920581
Diffstat (limited to 'googletest/include/gtest/gtest.h')
-rw-r--r-- | googletest/include/gtest/gtest.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/googletest/include/gtest/gtest.h b/googletest/include/gtest/gtest.h index 4e87eeb..960ee43 100644 --- a/googletest/include/gtest/gtest.h +++ b/googletest/include/gtest/gtest.h @@ -1767,6 +1767,12 @@ class GTEST_API_ AssertHelper { GTEST_DISALLOW_COPY_AND_ASSIGN_(AssertHelper); }; +enum GTestColor { COLOR_DEFAULT, COLOR_RED, COLOR_GREEN, COLOR_YELLOW }; + +GTEST_API_ GTEST_ATTRIBUTE_PRINTF_(2, 3) void ColoredPrintf(GTestColor color, + const char* fmt, + ...); + } // namespace internal // The pure interface class that all value-parameterized tests inherit from. |