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_H_ | 5 #ifndef CC_TEST_LAYER_TREE_TEST_H_ |
6 #define CC_TEST_LAYER_TREE_TEST_H_ | 6 #define CC_TEST_LAYER_TREE_TEST_H_ |
7 | 7 |
8 #include "base/memory/ref_counted.h" | 8 #include "base/memory/ref_counted.h" |
9 #include "base/threading/thread.h" | 9 #include "base/threading/thread.h" |
10 #include "cc/animation/animation_delegate.h" | 10 #include "cc/animation/animation_delegate.h" |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 RunTest(CompositorMode::THREADED, false); \ | 223 RunTest(CompositorMode::THREADED, false); \ |
224 } \ | 224 } \ |
225 class MultiThreadDirectImplNeedsSemicolon##TEST_FIXTURE_NAME {} | 225 class MultiThreadDirectImplNeedsSemicolon##TEST_FIXTURE_NAME {} |
226 | 226 |
227 #define MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ | 227 #define MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ |
228 TEST_F(TEST_FIXTURE_NAME, RunMultiThread_DelegatingRenderer) { \ | 228 TEST_F(TEST_FIXTURE_NAME, RunMultiThread_DelegatingRenderer) { \ |
229 RunTest(CompositorMode::THREADED, true); \ | 229 RunTest(CompositorMode::THREADED, true); \ |
230 } \ | 230 } \ |
231 class MultiThreadDelegatingImplNeedsSemicolon##TEST_FIXTURE_NAME {} | 231 class MultiThreadDelegatingImplNeedsSemicolon##TEST_FIXTURE_NAME {} |
232 | 232 |
233 // The Remote mode tests don't need to run for delegated renderer. | |
234 #define REMOTE_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME) \ | |
235 TEST_F(TEST_FIXTURE_NAME, RunRemote_DirectRenderer) { \ | |
236 RunTest(CompositorMode::REMOTE, false); \ | |
237 } \ | |
238 class RemoteDirectImplNeedsSemicolon##TEST_FIXTURE_NAME {} | |
239 | |
240 #define SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME) \ | 233 #define SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME) \ |
241 SINGLE_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ | 234 SINGLE_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ |
242 MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME) | 235 MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME) |
243 | 236 |
244 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ | 237 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ |
245 SINGLE_THREAD_TEST_F(TEST_FIXTURE_NAME); \ | 238 SINGLE_THREAD_TEST_F(TEST_FIXTURE_NAME); \ |
246 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 239 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
247 | 240 |
248 // Some tests want to control when notify ready for activation occurs, | 241 // Some tests want to control when notify ready for activation occurs, |
249 // but this is not supported in the single-threaded case. | 242 // but this is not supported in the single-threaded case. |
250 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ | 243 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ |
251 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 244 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
252 | 245 |
253 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 246 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
OLD | NEW |