Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2)

Unified Diff: tools/OverwriteLine.h

Issue 109513002: make tests output spin on the same line by default (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: more refactoring Created 6 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/skia_test.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/OverwriteLine.h
diff --git a/tools/OverwriteLine.h b/tools/OverwriteLine.h
new file mode 100644
index 0000000000000000000000000000000000000000..b76c223ba634031eb7978f3a54892964fa6189c1
--- /dev/null
+++ b/tools/OverwriteLine.h
@@ -0,0 +1,13 @@
+#ifndef OverwriteLine_DEFINED
+#define OverwriteLine_DEFINED
+
+// Print this string to reset and clear your current terminal line.
+static const char* kSkOverwriteLine =
+#ifdef SK_BUILD_FOR_WIN32
+"\r \r"
+#else
+"\r\033[K"
+#endif
+;
+
+#endif//OverwriteLine_DEFINED
« no previous file with comments | « tests/skia_test.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698