Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 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 BLIMP_CLIENT_TEST_RENDER_WIDGET_MOCK_RENDER_WIDGET_FEATURE_H_ | |
| 6 #define BLIMP_CLIENT_TEST_RENDER_WIDGET_MOCK_RENDER_WIDGET_FEATURE_H_ | |
| 7 | |
| 8 #include "blimp/client/core/render_widget/render_widget_feature.h" | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "cc/proto/compositor_message.pb.h" | |
| 12 #include "testing/gmock/include/gmock/gmock.h" | |
| 13 #include "third_party/WebKit/public/platform/WebInputEvent.h" | |
| 14 | |
| 15 namespace blimp { | |
| 16 namespace client { | |
| 17 | |
| 18 class MockRenderWidgetFeature : public RenderWidgetFeature { | |
|
David Trainor- moved to gerrit
2016/10/04 22:29:02
Should this live near RenderWidgetFeature?
xingliu
2016/10/05 00:40:08
Makes sense, seems only two core unit tests depend
| |
| 19 public: | |
| 20 MockRenderWidgetFeature(); | |
| 21 ~MockRenderWidgetFeature() override; | |
| 22 | |
| 23 MOCK_METHOD3(SendCompositorMessage, | |
| 24 void(const int, const int, const cc::proto::CompositorMessage&)); | |
| 25 MOCK_METHOD3(SendWebGestureEvent, | |
| 26 void(const int, const int, const blink::WebGestureEvent&)); | |
| 27 | |
| 28 // RenderWidgetFeature implementation. | |
| 29 MOCK_METHOD2(SetDelegate, void(int, RenderWidgetFeatureDelegate*)); | |
| 30 MOCK_METHOD1(RemoveDelegate, void(const int)); | |
| 31 }; | |
| 32 | |
| 33 } // namespace client | |
| 34 } // namespace blimp | |
| 35 | |
| 36 #endif // BLIMP_CLIENT_TEST_RENDER_WIDGET_MOCK_RENDER_WIDGET_FEATURE_H_ | |
| OLD | NEW |