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