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

Unified Diff: cc/test/begin_frame_source_test.h

Issue 2691453002: [cc] Track observer status in ExternalBeginFrameSource. (Closed)
Patch Set: Fix comments. 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/surfaces/direct_compositor_frame_sink.cc ('k') | components/exo/compositor_frame_sink_holder.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/begin_frame_source_test.h
diff --git a/cc/test/begin_frame_source_test.h b/cc/test/begin_frame_source_test.h
index 8be41aee5ded68d5d415bf5a451db3434f6f9974..04ba58acbc960a8725b6baeffeba2be0be29c594 100644
--- a/cc/test/begin_frame_source_test.h
+++ b/cc/test/begin_frame_source_test.h
@@ -37,6 +37,14 @@
.InSequence((obs).sequence) \
.WillOnce(::testing::SaveArg<0>(&((obs).last_begin_frame_args)))
+#define EXPECT_BEGIN_FRAME_ARGS_DROP(obs, args) \
+ EXPECT_CALL((obs), OnBeginFrame(args)).Times(1).InSequence((obs).sequence)
+
+#define EXPECT_BEGIN_FRAME_ARGS_USED(obs, args) \
+ EXPECT_CALL((obs), OnBeginFrame(args)) \
+ .InSequence((obs).sequence) \
+ .WillOnce(::testing::SaveArg<0>(&((obs).last_begin_frame_args)))
+
#define EXPECT_BEGIN_FRAME_SOURCE_PAUSED(obs, paused) \
EXPECT_CALL((obs), OnBeginFrameSourcePausedChanged(paused)) \
.Times(1) \
« no previous file with comments | « cc/surfaces/direct_compositor_frame_sink.cc ('k') | components/exo/compositor_frame_sink_holder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698