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

Unified Diff: cc/scheduler/scheduler_unittest.cc

Issue 787763006: cc: Adding BeginFrameTracker object and removing Now() from LTHI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase onto dependent patches. Created 5 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
Index: cc/scheduler/scheduler_unittest.cc
diff --git a/cc/scheduler/scheduler_unittest.cc b/cc/scheduler/scheduler_unittest.cc
index c03c79b05b8f0c7ce1f4b708036dfe5371aa8ad4..1ee2fac933b6e6dbaaa3b5bd3760792942210f18 100644
--- a/cc/scheduler/scheduler_unittest.cc
+++ b/cc/scheduler/scheduler_unittest.cc
@@ -2589,16 +2589,14 @@ TEST_F(SchedulerTest, SynchronousCompositorDoubleCommitWithoutDraw) {
TEST_F(SchedulerTest, AuthoritativeVSyncInterval) {
SetUpScheduler(true);
-
- base::TimeDelta initial_interval =
- scheduler_->begin_impl_frame_args().interval;
+ base::TimeDelta initial_interval = scheduler_->Interval();
brianderson 2015/05/01 02:05:21 scheduler_->Interval() has an ambiguous name. It's
mithro-old 2015/05/01 03:27:56 Fixed.
base::TimeDelta authoritative_interval =
base::TimeDelta::FromMilliseconds(33);
scheduler_->SetNeedsCommit();
EXPECT_SCOPED(AdvanceFrame());
- EXPECT_EQ(initial_interval, scheduler_->begin_impl_frame_args().interval);
+ EXPECT_EQ(initial_interval, scheduler_->Interval());
scheduler_->NotifyBeginMainFrameStarted();
scheduler_->NotifyReadyToCommit();
@@ -2610,9 +2608,8 @@ TEST_F(SchedulerTest, AuthoritativeVSyncInterval) {
// At the next BeginFrame, authoritative interval is used instead of previous
// interval.
- EXPECT_NE(initial_interval, scheduler_->begin_impl_frame_args().interval);
- EXPECT_EQ(authoritative_interval,
- scheduler_->begin_impl_frame_args().interval);
+ EXPECT_NE(initial_interval, scheduler_->Interval());
+ EXPECT_EQ(authoritative_interval, scheduler_->Interval());
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698