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

Side by Side Diff: content/browser/web_contents/test_web_contents.cc

Issue 10384128: Quote WebPreferences in namespace webkit_glue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Copyright 2012 Created 8 years, 7 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/browser/web_contents/test_web_contents.h" 5 #include "content/browser/web_contents/test_web_contents.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "content/browser/browser_url_handler_impl.h" 9 #include "content/browser/browser_url_handler_impl.h"
10 #include "content/browser/renderer_host/render_view_host_impl.h" 10 #include "content/browser/renderer_host/render_view_host_impl.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 params.password_form = webkit::forms::PasswordForm(); 75 params.password_form = webkit::forms::PasswordForm();
76 params.security_info = std::string(); 76 params.security_info = std::string();
77 params.gesture = NavigationGestureUser; 77 params.gesture = NavigationGestureUser;
78 params.was_within_same_page = false; 78 params.was_within_same_page = false;
79 params.is_post = false; 79 params.is_post = false;
80 params.content_state = webkit_glue::CreateHistoryStateForURL(GURL(url)); 80 params.content_state = webkit_glue::CreateHistoryStateForURL(GURL(url));
81 81
82 DidNavigate(render_view_host, params); 82 DidNavigate(render_view_host, params);
83 } 83 }
84 84
85 WebPreferences TestWebContents::TestGetWebkitPrefs() { 85 webkit_glue::WebPreferences TestWebContents::TestGetWebkitPrefs() {
86 return GetWebkitPrefs(); 86 return GetWebkitPrefs();
87 } 87 }
88 88
89 bool TestWebContents::CreateRenderViewForRenderManager( 89 bool TestWebContents::CreateRenderViewForRenderManager(
90 RenderViewHost* render_view_host, int opener_route_id) { 90 RenderViewHost* render_view_host, int opener_route_id) {
91 // This will go to a TestRenderViewHost. 91 // This will go to a TestRenderViewHost.
92 static_cast<RenderViewHostImpl*>( 92 static_cast<RenderViewHostImpl*>(
93 render_view_host)->CreateRenderView(string16(), opener_route_id, -1); 93 render_view_host)->CreateRenderView(string16(), opener_route_id, -1);
94 return true; 94 return true;
95 } 95 }
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 int32 min_page_id) { 184 int32 min_page_id) {
185 EXPECT_TRUE(expect_set_history_length_and_prune_); 185 EXPECT_TRUE(expect_set_history_length_and_prune_);
186 expect_set_history_length_and_prune_ = false; 186 expect_set_history_length_and_prune_ = false;
187 EXPECT_EQ(expect_set_history_length_and_prune_site_instance_, site_instance); 187 EXPECT_EQ(expect_set_history_length_and_prune_site_instance_, site_instance);
188 EXPECT_EQ(expect_set_history_length_and_prune_history_length_, 188 EXPECT_EQ(expect_set_history_length_and_prune_history_length_,
189 history_length); 189 history_length);
190 EXPECT_EQ(expect_set_history_length_and_prune_min_page_id_, min_page_id); 190 EXPECT_EQ(expect_set_history_length_and_prune_min_page_id_, min_page_id);
191 } 191 }
192 192
193 } // namespace content 193 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/web_contents/test_web_contents.h ('k') | content/browser/web_contents/web_contents_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698