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_aura.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #include "content/browser/renderer_host/render_widget_host_delegate.h" | 9 #include "content/browser/renderer_host/render_widget_host_delegate.h" |
10 #include "content/browser/renderer_host/render_widget_host_impl.h" | 10 #include "content/browser/renderer_host/render_widget_host_impl.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
103 delete parent_host_; | 103 delete parent_host_; |
104 | 104 |
105 browser_context_.reset(); | 105 browser_context_.reset(); |
106 aura_test_helper_->TearDown(); | 106 aura_test_helper_->TearDown(); |
107 | 107 |
108 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release()); | 108 message_loop_.DeleteSoon(FROM_HERE, browser_context_.release()); |
109 message_loop_.RunUntilIdle(); | 109 message_loop_.RunUntilIdle(); |
110 } | 110 } |
111 | 111 |
112 protected: | 112 protected: |
113 MessageLoopForUI message_loop_; | 113 base::MessageLoopForUI message_loop_; |
114 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; | 114 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; |
115 scoped_ptr<BrowserContext> browser_context_; | 115 scoped_ptr<BrowserContext> browser_context_; |
116 MockRenderWidgetHostDelegate delegate_; | 116 MockRenderWidgetHostDelegate delegate_; |
117 | 117 |
118 // Tests should set these to NULL if they've already triggered their | 118 // Tests should set these to NULL if they've already triggered their |
119 // destruction. | 119 // destruction. |
120 RenderWidgetHostImpl* parent_host_; | 120 RenderWidgetHostImpl* parent_host_; |
121 RenderWidgetHostViewAura* parent_view_; | 121 RenderWidgetHostViewAura* parent_view_; |
122 | 122 |
123 // Tests should set these to NULL if they've already triggered their | 123 // Tests should set these to NULL if they've already triggered their |
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
379 const IPC::Message* msg = sink_->GetMessageAt(2); | 379 const IPC::Message* msg = sink_->GetMessageAt(2); |
380 EXPECT_EQ(ViewMsg_Resize::ID, msg->type()); | 380 EXPECT_EQ(ViewMsg_Resize::ID, msg->type()); |
381 ViewMsg_Resize::Param params; | 381 ViewMsg_Resize::Param params; |
382 ViewMsg_Resize::Read(msg, ¶ms); | 382 ViewMsg_Resize::Read(msg, ¶ms); |
383 EXPECT_EQ("100x100", params.a.ToString()); // dip size | 383 EXPECT_EQ("100x100", params.a.ToString()); // dip size |
384 EXPECT_EQ("100x100", params.b.ToString()); // backing size | 384 EXPECT_EQ("100x100", params.b.ToString()); // backing size |
385 } | 385 } |
386 } | 386 } |
387 | 387 |
388 } // namespace content | 388 } // namespace content |
OLD | NEW |