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

Unified Diff: cc/test/begin_frame_source_test.cc

Issue 2880023002: cc::SurfaceDependencyTracker should not crash when a Display goes away (Closed)
Patch Set: Fix LayerTreeHostImpl unit tests Created 3 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 | « cc/surfaces/surface_synchronization_unittest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/begin_frame_source_test.cc
diff --git a/cc/test/begin_frame_source_test.cc b/cc/test/begin_frame_source_test.cc
index 304f77aa8aa81e6410e116431f2da0c0e19f1694..411250864ca96212beea22d00de8ad41af2225b1 100644
--- a/cc/test/begin_frame_source_test.cc
+++ b/cc/test/begin_frame_source_test.cc
@@ -20,9 +20,8 @@ void MockBeginFrameObserver::AsValueInto(
MockBeginFrameObserver::MockBeginFrameObserver()
: last_begin_frame_args(kDefaultBeginFrameArgs) {
- EXPECT_CALL(*this, LastUsedBeginFrameArgs())
- .Times(::testing::AnyNumber())
- .WillRepeatedly(::testing::ReturnPointee(&last_begin_frame_args));
+ ON_CALL(*this, LastUsedBeginFrameArgs())
+ .WillByDefault(::testing::ReturnPointee(&last_begin_frame_args));
}
MockBeginFrameObserver::~MockBeginFrameObserver() {}
« no previous file with comments | « cc/surfaces/surface_synchronization_unittest.cc ('k') | cc/trees/layer_tree_host_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698