OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "cc/scheduler/scheduler_state_machine.h" | 5 #include "cc/scheduler/scheduler_state_machine.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
8 #include "cc/scheduler/scheduler.h" | 10 #include "cc/scheduler/scheduler.h" |
9 #include "cc/test/begin_frame_args_test.h" | 11 #include "cc/test/begin_frame_args_test.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
11 | 13 |
12 // Macro to compare two enum values and get nice output. | 14 // Macro to compare two enum values and get nice output. |
13 // Without: | 15 // Without: |
14 // Value of: actual() Actual: 7 | 16 // Value of: actual() Actual: 7 |
15 // Expected: expected() Which is: 0 | 17 // Expected: expected() Which is: 0 |
16 // With: | 18 // With: |
(...skipping 2005 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2022 EXPECT_FALSE(state.ProactiveBeginFrameWanted()); | 2024 EXPECT_FALSE(state.ProactiveBeginFrameWanted()); |
2023 bool commit_has_no_updates = true; | 2025 bool commit_has_no_updates = true; |
2024 state.WillCommit(commit_has_no_updates); | 2026 state.WillCommit(commit_has_no_updates); |
2025 EXPECT_TRUE(state.ProactiveBeginFrameWanted()); | 2027 EXPECT_TRUE(state.ProactiveBeginFrameWanted()); |
2026 state.OnBeginImplFrame(); | 2028 state.OnBeginImplFrame(); |
2027 EXPECT_FALSE(state.ProactiveBeginFrameWanted()); | 2029 EXPECT_FALSE(state.ProactiveBeginFrameWanted()); |
2028 } | 2030 } |
2029 | 2031 |
2030 } // namespace | 2032 } // namespace |
2031 } // namespace cc | 2033 } // namespace cc |
OLD | NEW |