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 #ifndef CC_TEST_LAYER_TREE_TEST_COMMON_H_ | 5 #ifndef CC_TEST_LAYER_TREE_TEST_COMMON_H_ |
6 #define CC_TEST_LAYER_TREE_TEST_COMMON_H_ | 6 #define CC_TEST_LAYER_TREE_TEST_COMMON_H_ |
7 | 7 |
8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
11 #include "cc/layer_tree_host.h" | 11 #include "cc/layer_tree_host.h" |
12 #include "cc/layer_tree_host_impl.h" | 12 #include "cc/layer_tree_host_impl.h" |
13 #include "cc/scoped_thread_proxy.h" | 13 #include "cc/scoped_thread_proxy.h" |
14 #include "cc/test/compositor_fake_web_graphics_context_3d.h" | 14 #include "cc/test/compositor_fake_web_graphics_context_3d.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
16 #include <public/WebAnimationDelegate.h> | 16 #include "third_party/WebKit/Source/Platform/chromium/public/WebAnimationDelegat
e.h" |
17 | 17 |
18 namespace cc { | 18 namespace cc { |
19 class LayerImpl; | 19 class LayerImpl; |
20 class LayerTreeHost; | 20 class LayerTreeHost; |
21 class LayerTreeHostClient; | 21 class LayerTreeHostClient; |
22 class LayerTreeHostImpl; | 22 class LayerTreeHostImpl; |
23 class Thread; | 23 class Thread; |
24 | 24 |
25 | 25 |
26 // Used by test stubs to notify the test when something interesting happens. | 26 // Used by test stubs to notify the test when something interesting happens. |
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 TEST_F(TEST_FIXTURE_NAME, runSingleThread) \ | 196 TEST_F(TEST_FIXTURE_NAME, runSingleThread) \ |
197 { \ | 197 { \ |
198 runTest(false); \ | 198 runTest(false); \ |
199 } \ | 199 } \ |
200 TEST_F(TEST_FIXTURE_NAME, runMultiThread) \ | 200 TEST_F(TEST_FIXTURE_NAME, runMultiThread) \ |
201 { \ | 201 { \ |
202 runTest(true); \ | 202 runTest(true); \ |
203 } | 203 } |
204 | 204 |
205 #endif // CC_TEST_LAYER_TREE_TEST_COMMON_H_ | 205 #endif // CC_TEST_LAYER_TREE_TEST_COMMON_H_ |
OLD | NEW |