summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/renderer_host/mock_render_process_host.cc1
-rw-r--r--chrome/browser/renderer_host/test_render_view_host.cc15
2 files changed, 13 insertions, 3 deletions
diff --git a/chrome/browser/renderer_host/mock_render_process_host.cc b/chrome/browser/renderer_host/mock_render_process_host.cc
index 4b8d1b2..0395f9c 100644
--- a/chrome/browser/renderer_host/mock_render_process_host.cc
+++ b/chrome/browser/renderer_host/mock_render_process_host.cc
@@ -52,6 +52,7 @@ bool MockRenderProcessHost::FastShutdownIfPossible() {
bool MockRenderProcessHost::Send(IPC::Message* msg) {
// Save the message in the sink.
sink_.OnMessageReceived(*msg);
+ delete msg;
return true;
}
diff --git a/chrome/browser/renderer_host/test_render_view_host.cc b/chrome/browser/renderer_host/test_render_view_host.cc
index 4753c9db..fd9091f 100644
--- a/chrome/browser/renderer_host/test_render_view_host.cc
+++ b/chrome/browser/renderer_host/test_render_view_host.cc
@@ -38,13 +38,22 @@ void TestRenderViewHost::TestOnMessageReceived(const IPC::Message& msg) {
void TestRenderViewHost::SendNavigate(int page_id, const GURL& url) {
ViewHostMsg_FrameNavigate_Params params;
- params.is_post = false;
+
params.page_id = page_id;
- params.is_content_filtered = false;
params.url = url;
- params.should_update_history = true;
+ params.referrer = GURL::EmptyGURL();
params.transition = PageTransition::LINK;
+ params.redirects = std::vector<GURL>();
+ params.should_update_history = true;
+ params.searchable_form_url = GURL::EmptyGURL();
+ params.searchable_form_element_name = std::wstring();
+ params.searchable_form_encoding = std::string();
+ params.password_form = PasswordForm();
+ params.security_info = std::string();
+ params.gesture = NavigationGestureUser;
+ params.contents_mime_type = std::string();
params.is_post = false;
+ params.is_content_filtered = false;
ViewHostMsg_FrameNavigate msg(1, params);
OnMsgNavigate(msg);