summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 18:31:35 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-20 18:31:35 +0000
commitfaaa24a53c21e5ee2d92daeb00dde351cfac256d (patch)
treee62c6edb3b6561c021b0ad99a459942ded8b2dd1 /chrome/browser
parent02b9cd6fa95f4797bb23dff09ac5a0a0529f2e9c (diff)
downloadchromium_src-faaa24a53c21e5ee2d92daeb00dde351cfac256d.zip
chromium_src-faaa24a53c21e5ee2d92daeb00dde351cfac256d.tar.gz
chromium_src-faaa24a53c21e5ee2d92daeb00dde351cfac256d.tar.bz2
Fix purify errors in previous testing patch.
Review URL: http://codereview.chromium.org/18409 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8293 0039d316-1c4b-4281-b951-d872f2087c98
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);