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

Side by Side Diff: chrome/browser/renderer_host/test/test_render_view_host.cc

Issue 517054: Remove all uses of EmptyString16(), EmptyWString(), and EmptyGURL(), and thei... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 11 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/renderer_host/test/test_render_view_host.h" 5 #include "chrome/browser/renderer_host/test/test_render_view_host.h"
6 6
7 #include "base/gfx/rect.h" 7 #include "base/gfx/rect.h"
8 #include "chrome/browser/renderer_host/backing_store.h" 8 #include "chrome/browser/renderer_host/backing_store.h"
9 #include "chrome/browser/tab_contents/test_tab_contents.h" 9 #include "chrome/browser/tab_contents/test_tab_contents.h"
10 #include "chrome/common/render_messages.h" 10 #include "chrome/common/render_messages.h"
11 11
(...skipping 30 matching lines...) Expand all
42 42
43 void TestRenderViewHost::TestOnMessageReceived(const IPC::Message& msg) { 43 void TestRenderViewHost::TestOnMessageReceived(const IPC::Message& msg) {
44 OnMessageReceived(msg); 44 OnMessageReceived(msg);
45 } 45 }
46 46
47 void TestRenderViewHost::SendNavigate(int page_id, const GURL& url) { 47 void TestRenderViewHost::SendNavigate(int page_id, const GURL& url) {
48 ViewHostMsg_FrameNavigate_Params params; 48 ViewHostMsg_FrameNavigate_Params params;
49 49
50 params.page_id = page_id; 50 params.page_id = page_id;
51 params.url = url; 51 params.url = url;
52 params.referrer = GURL::EmptyGURL(); 52 params.referrer = GURL();
53 params.transition = PageTransition::LINK; 53 params.transition = PageTransition::LINK;
54 params.redirects = std::vector<GURL>(); 54 params.redirects = std::vector<GURL>();
55 params.should_update_history = true; 55 params.should_update_history = true;
56 params.searchable_form_url = GURL::EmptyGURL(); 56 params.searchable_form_url = GURL();
57 params.searchable_form_encoding = std::string(); 57 params.searchable_form_encoding = std::string();
58 params.password_form = PasswordForm(); 58 params.password_form = PasswordForm();
59 params.security_info = std::string(); 59 params.security_info = std::string();
60 params.gesture = NavigationGestureUser; 60 params.gesture = NavigationGestureUser;
61 params.contents_mime_type = std::string(); 61 params.contents_mime_type = std::string();
62 params.is_post = false; 62 params.is_post = false;
63 params.is_content_filtered = false; 63 params.is_content_filtered = false;
64 params.http_status_code = 0; 64 params.http_status_code = 0;
65 65
66 ViewHostMsg_FrameNavigate msg(1, params); 66 ViewHostMsg_FrameNavigate msg(1, params);
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 user_data_manager_.reset(UserDataManager::Create()); 109 user_data_manager_.reset(UserDataManager::Create());
110 } 110 }
111 111
112 void RenderViewHostTestHarness::TearDown() { 112 void RenderViewHostTestHarness::TearDown() {
113 contents_.reset(); 113 contents_.reset();
114 114
115 // Make sure that we flush any messages related to TabContents destruction 115 // Make sure that we flush any messages related to TabContents destruction
116 // before we destroy the profile. 116 // before we destroy the profile.
117 MessageLoop::current()->RunAllPending(); 117 MessageLoop::current()->RunAllPending();
118 } 118 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698