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

Side by Side Diff: webkit/compositor_bindings/test/web_layer_tree_view_test_common.h

Issue 12377029: Get rid of WebLayerTreeViewClient references in WebLayerTreeViewImplForTesting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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
OLDNEW
(Empty)
1 // Copyright 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef WebLayerTreeViewTestCommon_h
6 #define WebLayerTreeViewTestCommon_h
7
8 #include "cc/test/fake_output_surface.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10 #include "third_party/WebKit/Source/Platform/chromium/public/WebLayerTreeViewCli ent.h"
11
12 namespace WebKit {
13
14 class MockWebLayerTreeViewClient : public WebLayerTreeViewClient {
15 public:
16 MOCK_METHOD0(scheduleComposite, void());
17 MOCK_METHOD0(willBeginFrame, void());
18 MOCK_METHOD0(didBeginFrame, void());
19 virtual void updateAnimations(double frame_begin_time) {}
20 virtual void layout() {}
21 virtual void applyScrollAndScale(const WebSize& scroll_delta,
22 float scale_factor) {}
23
24 virtual cc::OutputSurface* createOutputSurface() {
25 return cc::createFakeOutputSurface().release();
26 }
27 virtual void didRecreateOutputSurface(bool) {}
28
29 MOCK_METHOD0(willCommit, void());
30 MOCK_METHOD0(didCommit, void());
31 virtual void didCommitAndDrawFrame() {}
32 virtual void didCompleteSwapBuffers() {}
33 };
34
35 }
36
37 #endif // WebLayerTreeViewTestCommon_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698