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

Unified Diff: blimp/client/core/render_widget/mock_render_widget_feature.h

Issue 2382733007: Add BlimpDocument, pull out functions in BlimpCompositor. (Closed)
Patch Set: Remove Webkit DEPS modification. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: blimp/client/core/render_widget/mock_render_widget_feature.h
diff --git a/blimp/client/core/render_widget/mock_render_widget_feature.h b/blimp/client/core/render_widget/mock_render_widget_feature.h
new file mode 100644
index 0000000000000000000000000000000000000000..f5da239551250777ccfea4580d79d9d8624f0c20
--- /dev/null
+++ b/blimp/client/core/render_widget/mock_render_widget_feature.h
@@ -0,0 +1,36 @@
+// Copyright 2016 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef BLIMP_CLIENT_CORE_RENDER_WIDGET_MOCK_RENDER_WIDGET_FEATURE_H_
+#define BLIMP_CLIENT_CORE_RENDER_WIDGET_MOCK_RENDER_WIDGET_FEATURE_H_
+
+#include "blimp/client/core/render_widget/render_widget_feature.h"
+
+#include "base/macros.h"
+#include "cc/proto/compositor_message.pb.h"
+#include "testing/gmock/include/gmock/gmock.h"
+#include "third_party/WebKit/public/web/WebInputEvent.h"
+
+namespace blimp {
+namespace client {
+
+class MockRenderWidgetFeature : public RenderWidgetFeature {
+ public:
+ MockRenderWidgetFeature();
+ ~MockRenderWidgetFeature() override;
+
+ MOCK_METHOD3(SendCompositorMessage,
+ void(const int, const int, const cc::proto::CompositorMessage&));
+ MOCK_METHOD3(SendWebGestureEvent,
+ void(const int, const int, const blink::WebGestureEvent&));
+
+ // RenderWidgetFeature implementation.
+ MOCK_METHOD2(SetDelegate, void(int, RenderWidgetFeatureDelegate*));
+ MOCK_METHOD1(RemoveDelegate, void(const int));
+};
+
+} // namespace client
+} // namespace blimp
+
+#endif // BLIMP_CLIENT_CORE_RENDER_WIDGET_MOCK_RENDER_WIDGET_FEATURE_H_

Powered by Google App Engine
This is Rietveld 408576698