| 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 | 120 |
| 121 private: | 121 private: |
| 122 void Cut() override {} | 122 void Cut() override {} |
| 123 void Copy() override {} | 123 void Copy() override {} |
| 124 void Paste() override {} | 124 void Paste() override {} |
| 125 void SelectAll() override {} |
| 125 }; | 126 }; |
| 126 | 127 |
| 127 class MockRenderWidgetHostImpl : public RenderWidgetHostImpl { | 128 class MockRenderWidgetHostImpl : public RenderWidgetHostImpl { |
| 128 public: | 129 public: |
| 129 MockRenderWidgetHostImpl(RenderWidgetHostDelegate* delegate, | 130 MockRenderWidgetHostImpl(RenderWidgetHostDelegate* delegate, |
| 130 RenderProcessHost* process, | 131 RenderProcessHost* process, |
| 131 int routing_id) | 132 int routing_id) |
| 132 : RenderWidgetHostImpl(delegate, process, routing_id, false) { | 133 : RenderWidgetHostImpl(delegate, process, routing_id, false) { |
| 133 } | 134 } |
| 134 | 135 |
| (...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1018 EXPECT_EQ(1U, process_host_->sink().message_count()); | 1019 EXPECT_EQ(1U, process_host_->sink().message_count()); |
| 1019 process_host_->sink().ClearMessages(); | 1020 process_host_->sink().ClearMessages(); |
| 1020 } | 1021 } |
| 1021 | 1022 |
| 1022 // Clean up. | 1023 // Clean up. |
| 1023 host->Shutdown(); | 1024 host->Shutdown(); |
| 1024 } | 1025 } |
| 1025 | 1026 |
| 1026 | 1027 |
| 1027 } // namespace content | 1028 } // namespace content |
| OLD | NEW |