OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/trees/threaded_channel.h" | 5 #include "cc/trees/threaded_channel.h" |
6 | 6 |
| 7 #include "base/macros.h" |
7 #include "cc/test/layer_tree_test.h" | 8 #include "cc/test/layer_tree_test.h" |
8 #include "cc/trees/single_thread_proxy.h" | 9 #include "cc/trees/single_thread_proxy.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
10 | 11 |
11 namespace cc { | 12 namespace cc { |
12 | 13 |
13 // The ThreadedChannel tests are run only for threaded and direct mode. | 14 // The ThreadedChannel tests are run only for threaded and direct mode. |
14 class ThreadedChannelTest : public LayerTreeTest { | 15 class ThreadedChannelTest : public LayerTreeTest { |
15 protected: | 16 protected: |
16 ThreadedChannelTest() : calls_received_(0) {} | 17 ThreadedChannelTest() : calls_received_(0) {} |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
301 calls_received_++; | 302 calls_received_++; |
302 EndTest(); | 303 EndTest(); |
303 } | 304 } |
304 | 305 |
305 void AfterTest() override { EXPECT_EQ(1, calls_received_); } | 306 void AfterTest() override { EXPECT_EQ(1, calls_received_); } |
306 }; | 307 }; |
307 | 308 |
308 MULTI_THREAD_DIRECT_RENDERER_TEST_F(ThreadedChannelTestPageScaleAnimation); | 309 MULTI_THREAD_DIRECT_RENDERER_TEST_F(ThreadedChannelTestPageScaleAnimation); |
309 | 310 |
310 } // namespace cc | 311 } // namespace cc |
OLD | NEW |