| 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 "base/mac/mac_util.h" | 7 #include "base/mac/mac_util.h" |
| 8 #include "base/mac/scoped_nsautorelease_pool.h" | 8 #include "base/mac/scoped_nsautorelease_pool.h" |
| 9 #include "base/mac/sdk_forward_declarations.h" | 9 #include "base/mac/sdk_forward_declarations.h" |
| 10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 | 84 |
| 85 @end | 85 @end |
| 86 | 86 |
| 87 namespace content { | 87 namespace content { |
| 88 | 88 |
| 89 namespace { | 89 namespace { |
| 90 | 90 |
| 91 class MockRenderWidgetHostDelegate : public RenderWidgetHostDelegate { | 91 class MockRenderWidgetHostDelegate : public RenderWidgetHostDelegate { |
| 92 public: | 92 public: |
| 93 MockRenderWidgetHostDelegate() {} | 93 MockRenderWidgetHostDelegate() {} |
| 94 virtual ~MockRenderWidgetHostDelegate() {} | 94 ~MockRenderWidgetHostDelegate() override {} |
| 95 }; | 95 }; |
| 96 | 96 |
| 97 class MockRenderWidgetHostImpl : public RenderWidgetHostImpl { | 97 class MockRenderWidgetHostImpl : public RenderWidgetHostImpl { |
| 98 public: | 98 public: |
| 99 MockRenderWidgetHostImpl(RenderWidgetHostDelegate* delegate, | 99 MockRenderWidgetHostImpl(RenderWidgetHostDelegate* delegate, |
| 100 RenderProcessHost* process, | 100 RenderProcessHost* process, |
| 101 int routing_id) | 101 int routing_id) |
| 102 : RenderWidgetHostImpl(delegate, process, routing_id, false) { | 102 : RenderWidgetHostImpl(delegate, process, routing_id, false) { |
| 103 } | 103 } |
| 104 | 104 |
| (...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 823 // Let |guest_rwhv_weak| have a chance to delete itself. | 823 // Let |guest_rwhv_weak| have a chance to delete itself. |
| 824 base::RunLoop run_loop; | 824 base::RunLoop run_loop; |
| 825 content::BrowserThread::PostTask( | 825 content::BrowserThread::PostTask( |
| 826 content::BrowserThread::UI, FROM_HERE, run_loop.QuitClosure()); | 826 content::BrowserThread::UI, FROM_HERE, run_loop.QuitClosure()); |
| 827 run_loop.Run(); | 827 run_loop.Run(); |
| 828 | 828 |
| 829 ASSERT_FALSE(guest_rwhv_weak.get()); | 829 ASSERT_FALSE(guest_rwhv_weak.get()); |
| 830 } | 830 } |
| 831 | 831 |
| 832 } // namespace content | 832 } // namespace content |
| OLD | NEW |