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

Unified Diff: ui/compositor/layer_unittest.cc

Issue 2827243003: Use WaitForSwap in LayerWithRealCompositorTest.ReportMetrics (Closed)
Patch Set: Created 3 years, 8 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/compositor/layer_unittest.cc
diff --git a/ui/compositor/layer_unittest.cc b/ui/compositor/layer_unittest.cc
index 911788fede5f9eaf0d6d06549093f1398a4ea02d..6f178cacebb6d86b2494f44fd18e4306caeb9451 100644
--- a/ui/compositor/layer_unittest.cc
+++ b/ui/compositor/layer_unittest.cc
@@ -2230,7 +2230,7 @@ TEST_F(LayerWithRealCompositorTest, MAYBE_ReportMetrics) {
animation_sequence->SetAnimationMetricsReporter(&reporter);
animator->StartAnimation(animation_sequence);
while (!reporter.report_called())
- WaitForDraw();
+ WaitForSwap();
ResetCompositor();
// Even though most of the time 100% smooth animations are expected, on the
// test bots this cannot be guaranteed. Therefore simply check that some
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698