OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "content/browser/renderer_host/render_widget_host_view_mac.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_mac.h" |
6 | 6 |
7 #include <Cocoa/Cocoa.h> | 7 #include <Cocoa/Cocoa.h> |
8 | 8 |
9 #include "base/mac/mac_util.h" | 9 #include "base/mac/mac_util.h" |
10 #include "base/mac/scoped_nsautorelease_pool.h" | 10 #include "base/mac/scoped_nsautorelease_pool.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 andReturnValue:OCMOCK_VALUE(modifierFlags)] modifierFlags]; | 110 andReturnValue:OCMOCK_VALUE(modifierFlags)] modifierFlags]; |
111 [(NSEvent*)[[event stub] | 111 [(NSEvent*)[[event stub] |
112 andReturnValue:OCMOCK_VALUE(magnification)] magnification]; | 112 andReturnValue:OCMOCK_VALUE(magnification)] magnification]; |
113 return event; | 113 return event; |
114 } | 114 } |
115 | 115 |
116 class MockRenderWidgetHostDelegate : public RenderWidgetHostDelegate { | 116 class MockRenderWidgetHostDelegate : public RenderWidgetHostDelegate { |
117 public: | 117 public: |
118 MockRenderWidgetHostDelegate() {} | 118 MockRenderWidgetHostDelegate() {} |
119 ~MockRenderWidgetHostDelegate() override {} | 119 ~MockRenderWidgetHostDelegate() override {} |
| 120 |
| 121 private: |
| 122 void Cut() override {} |
| 123 void Copy() override {} |
| 124 void Paste() override {} |
120 }; | 125 }; |
121 | 126 |
122 class MockRenderWidgetHostImpl : public RenderWidgetHostImpl { | 127 class MockRenderWidgetHostImpl : public RenderWidgetHostImpl { |
123 public: | 128 public: |
124 MockRenderWidgetHostImpl(RenderWidgetHostDelegate* delegate, | 129 MockRenderWidgetHostImpl(RenderWidgetHostDelegate* delegate, |
125 RenderProcessHost* process, | 130 RenderProcessHost* process, |
126 int routing_id) | 131 int routing_id) |
127 : RenderWidgetHostImpl(delegate, process, routing_id, false) { | 132 : RenderWidgetHostImpl(delegate, process, routing_id, false) { |
128 } | 133 } |
129 | 134 |
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 EXPECT_EQ(1U, process_host_->sink().message_count()); | 1018 EXPECT_EQ(1U, process_host_->sink().message_count()); |
1014 process_host_->sink().ClearMessages(); | 1019 process_host_->sink().ClearMessages(); |
1015 } | 1020 } |
1016 | 1021 |
1017 // Clean up. | 1022 // Clean up. |
1018 host->Shutdown(); | 1023 host->Shutdown(); |
1019 } | 1024 } |
1020 | 1025 |
1021 | 1026 |
1022 } // namespace content | 1027 } // namespace content |
OLD | NEW |