summaryrefslogtreecommitdiff
path: root/dviware/dvisvgm/tests/testutil.hpp
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /dviware/dvisvgm/tests/testutil.hpp
Initial commit
Diffstat (limited to 'dviware/dvisvgm/tests/testutil.hpp')
-rw-r--r--dviware/dvisvgm/tests/testutil.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/dviware/dvisvgm/tests/testutil.hpp b/dviware/dvisvgm/tests/testutil.hpp
new file mode 100644
index 0000000000..405b7d8239
--- /dev/null
+++ b/dviware/dvisvgm/tests/testutil.hpp
@@ -0,0 +1,20 @@
+#pragma once
+
+namespace testing {
+ namespace internal {
+ enum GTestColor {
+ COLOR_DEFAULT,
+ COLOR_RED,
+ COLOR_GREEN,
+ COLOR_YELLOW
+ };
+
+ void ColoredPrintf(GTestColor color, const char* fmt, ...);
+ }
+}
+
+#define WARNING(...) \
+ ColoredPrintf(testing::internal::COLOR_YELLOW, "[ WARNING ] "), \
+ ColoredPrintf(testing::internal::COLOR_YELLOW, __VA_ARGS__), \
+ printf("\n")
+