| OLD | NEW |
| (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 | |
| OLD | NEW |