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 <deque> | 5 #include <deque> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/gtest_prod_util.h" | |
10 #include "base/test/test_simple_task_runner.h" | 9 #include "base/test/test_simple_task_runner.h" |
11 #include "cc/scheduler/begin_frame_source.h" | 10 #include "cc/scheduler/begin_frame_source.h" |
12 #include "cc/test/begin_frame_args_test.h" | 11 #include "cc/test/begin_frame_args_test.h" |
13 #include "cc/test/scheduler_test_common.h" | 12 #include "cc/test/scheduler_test_common.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
16 | 15 |
17 // Macros to help set up expected calls on the MockBeginFrameObserver. | 16 // Macros to help set up expected calls on the MockBeginFrameObserver. |
18 #define EXPECT_BEGIN_FRAME_DROP(obs, frame_time, deadline, interval) \ | 17 #define EXPECT_BEGIN_FRAME_DROP(obs, frame_time, deadline, interval) \ |
19 { \ | 18 { \ |
(...skipping 750 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
770 mux_->SetActiveSource(source2_); | 769 mux_->SetActiveSource(source2_); |
771 SEND_BEGIN_FRAME_DROP(*source2_, 750, 1050, 300); | 770 SEND_BEGIN_FRAME_DROP(*source2_, 750, 1050, 300); |
772 SEND_BEGIN_FRAME_USED(*source2_, 1050, 1250, 300); | 771 SEND_BEGIN_FRAME_USED(*source2_, 1050, 1250, 300); |
773 | 772 |
774 mux_->SetActiveSource(source1_); | 773 mux_->SetActiveSource(source1_); |
775 SEND_BEGIN_FRAME_DROP(*source2_, 1100, 1400, 300); | 774 SEND_BEGIN_FRAME_DROP(*source2_, 1100, 1400, 300); |
776 } | 775 } |
777 | 776 |
778 } // namespace | 777 } // namespace |
779 } // namespace cc | 778 } // namespace cc |
OLD | NEW |