| Index: cc/scheduler/scheduler_unittest.cc
|
| diff --git a/cc/scheduler/scheduler_unittest.cc b/cc/scheduler/scheduler_unittest.cc
|
| index 10e12cac8fcfe768b26d4d7bfed180c3f0264a96..154a2aa32a7923b23abe6949ce724b48e548620d 100644
|
| --- a/cc/scheduler/scheduler_unittest.cc
|
| +++ b/cc/scheduler/scheduler_unittest.cc
|
| @@ -1250,10 +1250,11 @@ TEST(SchedulerTest, BeginRetroFrame_SwapThrottled) {
|
| client.Reset();
|
|
|
| // While swap throttled, BeginRetroFrames should trigger BeginImplFrames
|
| - // but not a BeginMainFrame or draw.
|
| + // and BeginMainFrames, but not draw.
|
| scheduler->SetNeedsCommit();
|
| client.task_runner().RunPendingTasks(); // Run posted BeginRetroFrame.
|
| - EXPECT_ACTION("WillBeginImplFrame", client, 0, 1);
|
| + EXPECT_ACTION("WillBeginImplFrame", client, 0, 2);
|
| + EXPECT_ACTION("ScheduledActionSendBeginMainFrame", client, 1, 2);
|
| EXPECT_TRUE(scheduler->BeginImplFrameDeadlinePending());
|
| EXPECT_TRUE(client.needs_begin_frame());
|
| client.Reset();
|
| @@ -1268,7 +1269,7 @@ TEST(SchedulerTest, BeginRetroFrame_SwapThrottled) {
|
|
|
| // Take us out of a swap throttled state.
|
| scheduler->DidSwapBuffersComplete();
|
| - EXPECT_ACTION("ScheduledActionSendBeginMainFrame", client, 0, 1);
|
| + EXPECT_EQ(0, client.num_actions_());
|
| EXPECT_TRUE(scheduler->BeginImplFrameDeadlinePending());
|
| EXPECT_TRUE(client.needs_begin_frame());
|
| client.Reset();
|
| @@ -1422,18 +1423,19 @@ void BeginFramesNotFromClient_SwapThrottled(bool begin_frame_scheduling_enabled,
|
| EXPECT_FALSE(client.needs_begin_frame());
|
| client.Reset();
|
|
|
| - // While swap throttled, BeginFrames should trigger BeginImplFrames,
|
| - // but not a BeginMainFrame or draw.
|
| + // While swap throttled, BeginFrames should trigger BeginImplFrame and
|
| + // BeginMainFrame, but not draw.
|
| scheduler->SetNeedsCommit();
|
| client.task_runner().RunPendingTasks(); // Run posted BeginFrame.
|
| - EXPECT_ACTION("WillBeginImplFrame", client, 0, 1);
|
| + EXPECT_ACTION("WillBeginImplFrame", client, 0, 2);
|
| + EXPECT_ACTION("ScheduledActionSendBeginMainFrame", client, 1, 2);
|
| EXPECT_TRUE(scheduler->BeginImplFrameDeadlinePending());
|
| EXPECT_FALSE(client.needs_begin_frame());
|
| client.Reset();
|
|
|
| // Take us out of a swap throttled state.
|
| scheduler->DidSwapBuffersComplete();
|
| - EXPECT_ACTION("ScheduledActionSendBeginMainFrame", client, 0, 1);
|
| + EXPECT_EQ(0, client.num_actions_());
|
| EXPECT_TRUE(scheduler->BeginImplFrameDeadlinePending());
|
| EXPECT_FALSE(client.needs_begin_frame());
|
| client.Reset();
|
|
|