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

Side by Side Diff: cc/threaded_unittest.h

Issue 11150025: Patch from https://codereview.chromium.org/11111005/ without actual file deletes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « cc/texture_update_controller.cc ('k') | cc/throttled_texture_uploader.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 CCThreadedTest_h 5 #ifndef CCThreadedTest_h
6 #define CCThreadedTest_h 6 #define CCThreadedTest_h
7 7
8 #include "CCLayerTreeHost.h" 8 #include "CCLayerTreeHost.h"
9 #include "CCLayerTreeHostImpl.h" 9 #include "CCLayerTreeHostImpl.h"
10 #include "CCScopedThreadProxy.h" 10 #include "CCScopedThreadProxy.h"
11 #include "CompositorFakeWebGraphicsContext3D.h" 11 #include "CompositorFakeWebGraphicsContext3D.h"
12 #include "base/hash_tables.h" 12 #include "base/hash_tables.h"
13 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
14 #include <public/WebAnimationDelegate.h> 14 #include <public/WebAnimationDelegate.h>
15 #include <public/WebThread.h> 15 #include <public/WebThread.h>
16 16
17 namespace cc { 17 namespace cc {
18 class CCLayerImpl; 18 class CCLayerImpl;
19 class CCLayerTreeHost; 19 class CCLayerTreeHost;
20 class CCLayerTreeHostClient; 20 class CCLayerTreeHostClient;
21 class CCLayerTreeHostImpl; 21 class CCLayerTreeHostImpl;
22 class GraphicsContext3D;
23 } 22 }
24 23
25 namespace WebKitTests { 24 namespace WebKitTests {
26 25
27 // 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.
28 class TestHooks : public WebKit::WebAnimationDelegate { 27 class TestHooks : public WebKit::WebAnimationDelegate {
29 public: 28 public:
30 virtual void beginCommitOnCCThread(cc::CCLayerTreeHostImpl*) { } 29 virtual void beginCommitOnCCThread(cc::CCLayerTreeHostImpl*) { }
31 virtual void commitCompleteOnCCThread(cc::CCLayerTreeHostImpl*) { } 30 virtual void commitCompleteOnCCThread(cc::CCLayerTreeHostImpl*) { }
32 virtual bool prepareToDrawOnCCThread(cc::CCLayerTreeHostImpl*); 31 virtual bool prepareToDrawOnCCThread(cc::CCLayerTreeHostImpl*);
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 TEST_F(TEST_FIXTURE_NAME, runSingleThread) \ 198 TEST_F(TEST_FIXTURE_NAME, runSingleThread) \
200 { \ 199 { \
201 runTest(false); \ 200 runTest(false); \
202 } \ 201 } \
203 TEST_F(TEST_FIXTURE_NAME, runMultiThread) \ 202 TEST_F(TEST_FIXTURE_NAME, runMultiThread) \
204 { \ 203 { \
205 runTest(true); \ 204 runTest(true); \
206 } 205 }
207 206
208 #endif // CCThreadedTest_h 207 #endif // CCThreadedTest_h
OLDNEW
« no previous file with comments | « cc/texture_update_controller.cc ('k') | cc/throttled_texture_uploader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698