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

Unified Diff: ui/views/animation/ink_drop_state.h

Issue 1949143003: Added pretty printers for some Ink Drop enums. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed primitive pass by refs. Created 4 years, 7 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 | « ui/views/animation/ink_drop_hover.cc ('k') | ui/views/animation/test/ink_drop_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/animation/ink_drop_state.h
diff --git a/ui/views/animation/ink_drop_state.h b/ui/views/animation/ink_drop_state.h
index 2456455c5da0b62d60e62bbd8f73d07b4b947d3a..91214d39d9aedd2ee34c989106967f911a380c04 100644
--- a/ui/views/animation/ink_drop_state.h
+++ b/ui/views/animation/ink_drop_state.h
@@ -5,6 +5,7 @@
#ifndef UI_VIEWS_ANIMATION_INK_DROP_STATE_H_
#define UI_VIEWS_ANIMATION_INK_DROP_STATE_H_
+#include <iosfwd>
#include <string>
#include "ui/views/views_export.h"
@@ -36,7 +37,12 @@ enum class InkDropState {
};
// Returns a human readable string for |state|. Useful for logging.
-std::string ToString(InkDropState state);
+VIEWS_EXPORT std::string ToString(InkDropState state);
+
+// This is declared here for use in gtest-based unit tests but is defined in
+// the views_test_support target. Depend on that to use this in your unit test.
+// This should not be used in production code - call ToString() instead.
+void PrintTo(InkDropState ink_drop_state, ::std::ostream* os);
} // namespace views
« no previous file with comments | « ui/views/animation/ink_drop_hover.cc ('k') | ui/views/animation/test/ink_drop_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698