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.h" | 5 #include "cc/scheduler/scheduler.h" |
6 | 6 |
| 7 #include <vector> |
| 8 |
7 #include "base/logging.h" | 9 #include "base/logging.h" |
8 #include "cc/test/scheduler_test_common.h" | 10 #include "cc/test/scheduler_test_common.h" |
9 #include "testing/gmock/include/gmock/gmock.h" | 11 #include "testing/gmock/include/gmock/gmock.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
11 | 13 |
12 namespace cc { | 14 namespace cc { |
13 namespace { | 15 namespace { |
14 | 16 |
15 class FakeSchedulerClient : public SchedulerClient { | 17 class FakeSchedulerClient : public SchedulerClient { |
16 public: | 18 public: |
(...skipping 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
540 scheduler->DidLoseOutputSurface(); | 542 scheduler->DidLoseOutputSurface(); |
541 // Verifying that it's 1 so that we know that it's reset on recreate. | 543 // Verifying that it's 1 so that we know that it's reset on recreate. |
542 EXPECT_EQ(1, controller_ptr->NumFramesPending()); | 544 EXPECT_EQ(1, controller_ptr->NumFramesPending()); |
543 | 545 |
544 scheduler->DidRecreateOutputSurface(); | 546 scheduler->DidRecreateOutputSurface(); |
545 EXPECT_EQ(0, controller_ptr->NumFramesPending()); | 547 EXPECT_EQ(0, controller_ptr->NumFramesPending()); |
546 } | 548 } |
547 | 549 |
548 } // namespace | 550 } // namespace |
549 } // namespace cc | 551 } // namespace cc |
OLD | NEW |