Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(420)

Side by Side Diff: cc/test/layer_tree_test.h

Issue 2171143002: cc: Get rid of non-delegated rendering in most cc unit tests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@killdirecttests
Patch Set: fakeoutputsurface: no-constructor Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/test/layer_tree_host_common_test.h ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_host_common_test.h ('k') | cc/test/layer_tree_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698