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

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

Issue 818033004: Standardize usage of virtual/override/final specifiers in cc/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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_pixel_test.h ('k') | cc/test/ordered_simple_task_runner_unittest.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // tree host is initialized. 125 // tree host is initialized.
126 // 126 //
127 // Key stages of the drawing loop, e.g. drawing or commiting, redirect to 127 // Key stages of the drawing loop, e.g. drawing or commiting, redirect to
128 // LayerTreeTest methods of similar names. To track the commit process, override 128 // LayerTreeTest methods of similar names. To track the commit process, override
129 // these functions. 129 // these functions.
130 // 130 //
131 // The test continues until someone calls EndTest. EndTest can be called on any 131 // The test continues until someone calls EndTest. EndTest can be called on any
132 // thread, but be aware that ending the test is an asynchronous process. 132 // thread, but be aware that ending the test is an asynchronous process.
133 class LayerTreeTest : public testing::Test, public TestHooks { 133 class LayerTreeTest : public testing::Test, public TestHooks {
134 public: 134 public:
135 virtual ~LayerTreeTest(); 135 ~LayerTreeTest() override;
136 136
137 virtual void EndTest(); 137 virtual void EndTest();
138 void EndTestAfterDelayMs(int delay_milliseconds); 138 void EndTestAfterDelayMs(int delay_milliseconds);
139 139
140 void PostAddAnimationToMainThread(Layer* layer_to_receive_animation); 140 void PostAddAnimationToMainThread(Layer* layer_to_receive_animation);
141 void PostAddInstantAnimationToMainThread(Layer* layer_to_receive_animation); 141 void PostAddInstantAnimationToMainThread(Layer* layer_to_receive_animation);
142 void PostAddLongAnimationToMainThread(Layer* layer_to_receive_animation); 142 void PostAddLongAnimationToMainThread(Layer* layer_to_receive_animation);
143 void PostSetNeedsCommitToMainThread(); 143 void PostSetNeedsCommitToMainThread();
144 void PostSetNeedsUpdateLayersToMainThread(); 144 void PostSetNeedsUpdateLayersToMainThread();
145 void PostSetNeedsRedrawToMainThread(); 145 void PostSetNeedsRedrawToMainThread();
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \ 368 SINGLE_AND_MULTI_THREAD_DIRECT_RENDERER_TEST_F(TEST_FIXTURE_NAME); \
369 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME) 369 SINGLE_AND_MULTI_THREAD_DELEGATING_RENDERER_TEST_F(TEST_FIXTURE_NAME)
370 370
371 // Some tests want to control when notify ready for activation occurs, 371 // Some tests want to control when notify ready for activation occurs,
372 // but this is not supported in the single-threaded case. 372 // but this is not supported in the single-threaded case.
373 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \ 373 #define SINGLE_AND_MULTI_THREAD_BLOCKNOTIFY_TEST_F(TEST_FIXTURE_NAME) \
374 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \ 374 SINGLE_THREAD_NOIMPL_TEST_F(TEST_FIXTURE_NAME); \
375 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME) 375 MULTI_THREAD_TEST_F(TEST_FIXTURE_NAME)
376 376
377 #endif // CC_TEST_LAYER_TREE_TEST_H_ 377 #endif // CC_TEST_LAYER_TREE_TEST_H_
OLDNEW
« no previous file with comments | « cc/test/layer_tree_pixel_test.h ('k') | cc/test/ordered_simple_task_runner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698