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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc

Issue 8801003: Make TestTabContents::TestDidNavigate not take a ViewHostMsg_FrameNavigate_Params, since that's a... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Remove the accidental commenting out that I had done before last commit Created 9 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc
===================================================================
--- chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc (revision 113025)
+++ chrome/browser/safe_browsing/safe_browsing_blocking_page_unittest.cc (working copy)
@@ -11,7 +11,6 @@
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "content/browser/tab_contents/navigation_entry.h"
#include "content/browser/tab_contents/test_tab_contents.h"
-#include "content/common/view_messages.h"
#include "content/test/test_browser_thread.h"
using content::BrowserThread;
@@ -110,10 +109,9 @@
}
void Navigate(const char* url, int page_id) {
- ViewHostMsg_FrameNavigate_Params params;
- InitNavigateParams(
- &params, page_id, GURL(url), content::PAGE_TRANSITION_TYPED);
- contents()->TestDidNavigate(contents()->render_view_host(), params);
+ contents()->TestDidNavigate(
+ contents()->render_view_host(), page_id, GURL(url),
+ content::PAGE_TRANSITION_TYPED);
}
void GoBackCrossSite() {
@@ -122,10 +120,9 @@
contents()->controller().GoBack();
// The navigation should commit in the pending RVH.
- ViewHostMsg_FrameNavigate_Params params;
- InitNavigateParams(&params, entry->page_id(), GURL(entry->url()),
- content::PAGE_TRANSITION_TYPED);
- contents()->TestDidNavigate(contents()->pending_rvh(), params);
+ contents()->TestDidNavigate(
+ contents()->pending_rvh(), entry->page_id(), GURL(entry->url()),
+ content::PAGE_TRANSITION_TYPED);
}
void ShowInterstitial(bool is_subresource, const char* url) {

Powered by Google App Engine
This is Rietveld 408576698