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

Unified Diff: content/test/test_render_frame_host.cc

Issue 562603002: Move PageTransition from //content/public/common to //ui/base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 3 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 | « content/test/test_render_frame_host.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_render_frame_host.cc
diff --git a/content/test/test_render_frame_host.cc b/content/test/test_render_frame_host.cc
index e930c526e8bbe35b22b134ea7422ff33d2d53ab3..2f96bc813f98d62b614ebec706d30cd69d849c91 100644
--- a/content/test/test_render_frame_host.cc
+++ b/content/test/test_render_frame_host.cc
@@ -7,10 +7,10 @@
#include "content/browser/frame_host/frame_tree.h"
#include "content/browser/frame_host/render_frame_host_delegate.h"
#include "content/common/frame_messages.h"
-#include "content/public/common/page_transition_types.h"
#include "content/test/test_render_view_host.h"
#include "net/base/load_flags.h"
#include "third_party/WebKit/public/web/WebPageVisibilityState.h"
+#include "ui/base/page_transition_types.h"
namespace content {
@@ -66,22 +66,22 @@ TestRenderFrameHost* TestRenderFrameHost::AppendChild(
void TestRenderFrameHost::SendNavigateWithTransition(
int page_id,
const GURL& url,
- PageTransition transition) {
+ ui::PageTransition transition) {
SendNavigateWithTransitionAndResponseCode(page_id, url, transition, 200);
}
void TestRenderFrameHost::SendNavigate(int page_id, const GURL& url) {
- SendNavigateWithTransition(page_id, url, PAGE_TRANSITION_LINK);
+ SendNavigateWithTransition(page_id, url, ui::PAGE_TRANSITION_LINK);
}
void TestRenderFrameHost::SendFailedNavigate(int page_id, const GURL& url) {
SendNavigateWithTransitionAndResponseCode(
- page_id, url, PAGE_TRANSITION_RELOAD, 500);
+ page_id, url, ui::PAGE_TRANSITION_RELOAD, 500);
}
void TestRenderFrameHost::SendNavigateWithTransitionAndResponseCode(
int page_id,
- const GURL& url, PageTransition transition,
+ const GURL& url, ui::PageTransition transition,
int response_code) {
// DidStartProvisionalLoad may delete the pending entry that holds |url|,
// so we keep a copy of it to use in SendNavigateWithParameters.
@@ -96,7 +96,7 @@ void TestRenderFrameHost::SendNavigateWithOriginalRequestURL(
const GURL& url,
const GURL& original_request_url) {
OnDidStartProvisionalLoadForFrame(url, false);
- SendNavigateWithParameters(page_id, url, PAGE_TRANSITION_LINK,
+ SendNavigateWithParameters(page_id, url, ui::PAGE_TRANSITION_LINK,
original_request_url, 200, 0, std::vector<GURL>());
}
@@ -104,7 +104,7 @@ void TestRenderFrameHost::SendNavigateWithFile(
int page_id,
const GURL& url,
const base::FilePath& file_path) {
- SendNavigateWithParameters(page_id, url, PAGE_TRANSITION_LINK, url, 200,
+ SendNavigateWithParameters(page_id, url, ui::PAGE_TRANSITION_LINK, url, 200,
&file_path, std::vector<GURL>());
}
@@ -119,13 +119,13 @@ void TestRenderFrameHost::SendNavigateWithRedirects(
const GURL& url,
const std::vector<GURL>& redirects) {
SendNavigateWithParameters(
- page_id, url, PAGE_TRANSITION_LINK, url, 200, 0, redirects);
+ page_id, url, ui::PAGE_TRANSITION_LINK, url, 200, 0, redirects);
}
void TestRenderFrameHost::SendNavigateWithParameters(
int page_id,
const GURL& url,
- PageTransition transition,
+ ui::PageTransition transition,
const GURL& original_request_url,
int response_code,
const base::FilePath* file_path_for_history_item,
@@ -151,8 +151,8 @@ void TestRenderFrameHost::SendNavigateWithParameters(
url::Replacements<char> replacements;
replacements.ClearRef();
- params.was_within_same_page = transition != PAGE_TRANSITION_RELOAD &&
- transition != PAGE_TRANSITION_TYPED &&
+ params.was_within_same_page = transition != ui::PAGE_TRANSITION_RELOAD &&
+ transition != ui::PAGE_TRANSITION_TYPED &&
url.ReplaceComponents(replacements) ==
GetLastCommittedURL().ReplaceComponents(replacements);
@@ -173,7 +173,7 @@ void TestRenderFrameHost::SendBeginNavigationWithURL(const GURL& url) {
params.referrer = Referrer(GURL(), blink::WebReferrerPolicyDefault);
params.load_flags = net::LOAD_NORMAL;
params.has_user_gesture = false;
- params.transition_type = PAGE_TRANSITION_LINK;
+ params.transition_type = ui::PAGE_TRANSITION_LINK;
params.should_replace_current_entry = false;
params.allow_download = true;
OnBeginNavigation(params);
« no previous file with comments | « content/test/test_render_frame_host.h ('k') | content/test/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698