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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_child_frame_unittest.cc

Issue 132383005: Set correct viewport size for an out of process iframe. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed obsolete test Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/frame_host/render_widget_host_view_child_frame.h" 5 #include "content/browser/frame_host/render_widget_host_view_child_frame.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 view_->Hide(); 70 view_->Hide();
71 ASSERT_FALSE(view_->IsShowing()); 71 ASSERT_FALSE(view_->IsShowing());
72 72
73 view_->WasShown(); 73 view_->WasShown();
74 ASSERT_TRUE(view_->IsShowing()); 74 ASSERT_TRUE(view_->IsShowing());
75 75
76 view_->WasHidden(); 76 view_->WasHidden();
77 ASSERT_FALSE(view_->IsShowing()); 77 ASSERT_FALSE(view_->IsShowing());
78 } 78 }
79 79
80 TEST_F(RenderWidgetHostViewChildFrameTest, SetSizeTest) {
81 gfx::Size size(100, 100);
82
83 view_->SetSize(size);
84 ASSERT_TRUE(view_->GetViewBounds().size() == size);
85 }
86
87 } // namespace content 80 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_child_frame.cc ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698