diff options
Diffstat (limited to 'cc/trees/layer_tree_host_unittest_delegated.cc')
-rw-r--r-- | cc/trees/layer_tree_host_unittest_delegated.cc | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/cc/trees/layer_tree_host_unittest_delegated.cc b/cc/trees/layer_tree_host_unittest_delegated.cc index 37c928b..a181b09 100644 --- a/cc/trees/layer_tree_host_unittest_delegated.cc +++ b/cc/trees/layer_tree_host_unittest_delegated.cc @@ -1760,16 +1760,25 @@ class DelegatedFrameIsActivatedDuringCommit virtual void CommitCompleteOnThread(LayerTreeHostImpl* host_impl) OVERRIDE { switch (host_impl->active_tree()->source_frame_number()) { - case 2: { + case 0: { + // The activate for the 1st frame should have happened before now. + EXPECT_EQ(1, activate_count_); + break; + } + case 1: { // The activate for the 2nd frame should have happened before now. EXPECT_EQ(2, activate_count_); break; } - case 3: { + case 2: { // The activate to remove the layer should have happened before now. EXPECT_EQ(3, activate_count_); break; } + case 3: { + NOTREACHED(); + break; + } } } |