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

Unified Diff: chrome/browser/search/iframe_source_unittest.cc

Issue 102433009: Most visited iframe now postMessage to signal the iframing page that the link has been displayed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased. Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/search/iframe_source.cc ('k') | chrome/browser/search/most_visited_iframe_source.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search/iframe_source_unittest.cc
diff --git a/chrome/browser/search/iframe_source_unittest.cc b/chrome/browser/search/iframe_source_unittest.cc
index 899b1681697074db0b61e6c7c998ca8c48b0a62e..95077bb9f47dd1878092c5d2735b623341335063 100644
--- a/chrome/browser/search/iframe_source_unittest.cc
+++ b/chrome/browser/search/iframe_source_unittest.cc
@@ -51,11 +51,11 @@ class TestIframeSource : public IframeSource {
const content::URLDataSource::GotDataCallback& callback) OVERRIDE {
}
- // RenderViewHost is hard to mock in concert with everything else, so stub
+ // RenderFrameHost is hard to mock in concert with everything else, so stub
// this method out for testing.
virtual bool GetOrigin(
int process_id,
- int render_view_id,
+ int render_frame_id,
std::string* origin) const OVERRIDE {
if (process_id == kInstantRendererPID) {
*origin = kInstantOrigin;
@@ -96,7 +96,7 @@ class IframeSourceTest : public testing::Test {
const std::string& url,
bool allocate_info,
int render_process_id,
- int render_view_id) {
+ int render_frame_id) {
net::URLRequest* request =
new net::URLRequest(GURL(url),
net::DEFAULT_PRIORITY,
@@ -107,7 +107,7 @@ class IframeSourceTest : public testing::Test {
ResourceType::SUB_FRAME,
&resource_context_,
render_process_id,
- render_view_id,
+ render_frame_id,
MSG_ROUTING_NONE,
false);
}
@@ -121,8 +121,8 @@ class IframeSourceTest : public testing::Test {
void SendJSWithOrigin(
int resource_id,
int render_process_id,
- int render_view_id) {
- source()->SendJSWithOrigin(resource_id, render_process_id, render_view_id,
+ int render_frame_id) {
+ source()->SendJSWithOrigin(resource_id, render_process_id, render_frame_id,
callback_);
}
« no previous file with comments | « chrome/browser/search/iframe_source.cc ('k') | chrome/browser/search/most_visited_iframe_source.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698