OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/vsync_time_source.h" | 5 #include "cc/scheduler/vsync_time_source.h" |
6 | 6 |
7 #include "cc/test/scheduler_test_common.h" | 7 #include "cc/test/scheduler_test_common.h" |
8 #include "testing/gtest/include/gtest/gtest.h" | 8 #include "testing/gtest/include/gtest/gtest.h" |
9 | 9 |
10 namespace cc { | 10 namespace cc { |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 timer_->SetActive(true); | 115 timer_->SetActive(true); |
116 provider_.Trigger(frame_time); | 116 provider_.Trigger(frame_time); |
117 ASSERT_EQ(timer_->NextTickTime(), frame_time); | 117 ASSERT_EQ(timer_->NextTickTime(), frame_time); |
118 | 118 |
119 timer_->SetTimebaseAndInterval(frame_time, interval); | 119 timer_->SetTimebaseAndInterval(frame_time, interval); |
120 ASSERT_EQ(timer_->NextTickTime(), frame_time + interval); | 120 ASSERT_EQ(timer_->NextTickTime(), frame_time + interval); |
121 } | 121 } |
122 | 122 |
123 } // namespace | 123 } // namespace |
124 } // namespace cc | 124 } // namespace cc |
OLD | NEW |