| 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 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 #define REMOTE_TEST_F(TEST_FIXTURE_NAME) \ | 222 #define REMOTE_TEST_F(TEST_FIXTURE_NAME) \ |
| 223 TEST_F(TEST_FIXTURE_NAME, RunRemote_DelegatingRenderer) { \ | 223 TEST_F(TEST_FIXTURE_NAME, RunRemote_DelegatingRenderer) { \ |
| 224 RunTest(CompositorMode::REMOTE); \ | 224 RunTest(CompositorMode::REMOTE); \ |
| 225 } \ | 225 } \ |
| 226 class RemoteDelegatingImplNeedsSemicolon##TEST_FIXTURE_NAME {} | 226 class RemoteDelegatingImplNeedsSemicolon##TEST_FIXTURE_NAME {} |
| 227 | 227 |
| 228 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ | 228 #define SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ |
| 229 SINGLE_THREAD_TEST_F(TEST_FIXTURE_NAME); \ | 229 SINGLE_THREAD_TEST_F(TEST_FIXTURE_NAME); \ |
| 230 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 230 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
| 231 | 231 |
| 232 #define REMOTE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) \ |
| 233 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME); \ |
| 234 REMOTE_TEST_F(TEST_FIXTURE_NAME) |
| 235 |
| 232 #define SINGLE_MULTI_AND_REMOTE_TEST_F(TEST_FIXTURE_NAME) \ | 236 #define SINGLE_MULTI_AND_REMOTE_TEST_F(TEST_FIXTURE_NAME) \ |
| 233 SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME); \ | 237 SINGLE_AND_MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME); \ |
| 234 REMOTE_TEST_F(TEST_FIXTURE_NAME) | 238 REMOTE_TEST_F(TEST_FIXTURE_NAME) |
| 235 | 239 |
| 236 // Some tests want to control when notify ready for activation occurs, | 240 // Some tests want to control when notify ready for activation occurs, |
| 237 // but this is not supported in the single-threaded case. | 241 // but this is not supported in the single-threaded case. |
| 238 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ | 242 #define MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ |
| 239 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) | 243 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) |
| 240 | 244 |
| 241 #endif // CC_TEST_LAYER_TREE_TEST_H_ | 245 #endif // CC_TEST_LAYER_TREE_TEST_H_ |
| OLD | NEW |