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

Unified Diff: cc/test/begin_frame_args_test.h

Issue 2686193002: [cc] facilitate use of BeginFrameAcks in tests. (Closed)
Patch Set: sync Created 3 years, 10 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 | « cc/output/begin_frame_args.cc ('k') | cc/test/begin_frame_args_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/begin_frame_args_test.h
diff --git a/cc/test/begin_frame_args_test.h b/cc/test/begin_frame_args_test.h
index 57cee81fd0bcb535f868ca95477b6c18ac6373e3..5d5998264243b5f4f7797f256dfd16ca030db6b8 100644
--- a/cc/test/begin_frame_args_test.h
+++ b/cc/test/begin_frame_args_test.h
@@ -62,6 +62,13 @@ bool operator==(const BeginFrameArgs& lhs, const BeginFrameArgs& rhs);
::std::ostream& operator<<(::std::ostream& os, const BeginFrameArgs& args);
void PrintTo(const BeginFrameArgs& args, ::std::ostream* os);
+// Allow "EXPECT_EQ(ack1, ack2);"
+bool operator==(const BeginFrameAck& lhs, const BeginFrameAck& rhs);
+
+// Allow gtest to pretty print BeginFrameAcks.
+::std::ostream& operator<<(::std::ostream& os, const BeginFrameAck& ack);
+void PrintTo(const BeginFrameAck& ack, ::std::ostream* os);
+
} // namespace cc
#endif // CC_TEST_BEGIN_FRAME_ARGS_TEST_H_
« no previous file with comments | « cc/output/begin_frame_args.cc ('k') | cc/test/begin_frame_args_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698