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

Side by Side Diff: content/test/render_view_test.cc

Issue 9721001: Plumb Guest flag to RenderViewImpl (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Updated broken render_view_test Created 8 years, 9 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 (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/test/render_view_test.h" 5 #include "content/test/render_view_test.h"
6 6
7 #include "content/common/dom_storage_common.h" 7 #include "content/common/dom_storage_common.h"
8 #include "content/common/view_messages.h" 8 #include "content/common/view_messages.h"
9 #include "content/public/browser/native_web_keyboard_event.h" 9 #include "content/public/browser/native_web_keyboard_event.h"
10 #include "content/public/common/renderer_preferences.h" 10 #include "content/public/common/renderer_preferences.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 0, 153 0,
154 kOpenerId, 154 kOpenerId,
155 content::RendererPreferences(), 155 content::RendererPreferences(),
156 WebPreferences(), 156 WebPreferences(),
157 new SharedRenderViewCounter(0), 157 new SharedRenderViewCounter(0),
158 kRouteId, 158 kRouteId,
159 kSurfaceId, 159 kSurfaceId,
160 kInvalidSessionStorageNamespaceId, 160 kInvalidSessionStorageNamespaceId,
161 string16(), 161 string16(),
162 1, 162 1,
163 WebKit::WebScreenInfo()); 163 WebKit::WebScreenInfo(),
164 false);
164 view->AddRef(); 165 view->AddRef();
165 view_ = view; 166 view_ = view;
166 167
167 // Attach a pseudo keyboard device to this object. 168 // Attach a pseudo keyboard device to this object.
168 mock_keyboard_.reset(new MockKeyboard()); 169 mock_keyboard_.reset(new MockKeyboard());
169 } 170 }
170 171
171 void RenderViewTest::TearDown() { 172 void RenderViewTest::TearDown() {
172 // Try very hard to collect garbage before shutting down. 173 // Try very hard to collect garbage before shutting down.
173 GetMainFrame()->collectGarbage(); 174 GetMainFrame()->collectGarbage();
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 449 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
449 impl->set_send_content_state_immediately(true); 450 impl->set_send_content_state_immediately(true);
450 } 451 }
451 452
452 WebKit::WebWidget* RenderViewTest::GetWebWidget() { 453 WebKit::WebWidget* RenderViewTest::GetWebWidget() {
453 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 454 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
454 return impl->webwidget(); 455 return impl->webwidget();
455 } 456 }
456 457
457 } // namespace content 458 } // namespace content
OLDNEW
« content/renderer/render_view_impl.h ('K') | « content/renderer/render_view_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698