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

Unified Diff: content/browser/frame_host/navigation_handle_impl_unittest.cc

Issue 2499313003: Set user_gesture bit at NavigationHandle creation time. (Closed)
Patch Set: rebase Created 4 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: content/browser/frame_host/navigation_handle_impl_unittest.cc
diff --git a/content/browser/frame_host/navigation_handle_impl_unittest.cc b/content/browser/frame_host/navigation_handle_impl_unittest.cc
index ff2f74896b714d699edd58909c65ccb3510d2011..0cd750d883ec7c5f12a9521f9a78cdbbb29d5ab4 100644
--- a/content/browser/frame_host/navigation_handle_impl_unittest.cc
+++ b/content/browser/frame_host/navigation_handle_impl_unittest.cc
@@ -68,8 +68,12 @@ class NavigationHandleImplTest : public RenderViewHostImplTestHarness {
void SetUp() override {
RenderViewHostImplTestHarness::SetUp();
test_handle_ = NavigationHandleImpl::Create(
- GURL(), main_test_rfh()->frame_tree_node(), true, false, false,
- base::TimeTicks::Now(), 0, false);
+ GURL(), main_test_rfh()->frame_tree_node(),
+ true, // is_renderer_initiated
+ false, // is_same_page
+ false, // is_srcdoc
+ base::TimeTicks::Now(), 0, NavigationGestureAuto,
+ false); // started_from_context_menu
EXPECT_EQ(REQUEST_CONTEXT_TYPE_UNSPECIFIED,
test_handle_->request_context_type_);
contents()->GetMainFrame()->InitializeRenderFrameIfNeeded();
@@ -108,7 +112,7 @@ class NavigationHandleImplTest : public RenderViewHostImplTestHarness {
// It's safe to use base::Unretained since the NavigationHandle is owned by
// the NavigationHandleImplTest.
test_handle_->WillStartRequest(
- "GET", nullptr, Referrer(), false, ui::PAGE_TRANSITION_LINK, false,
+ "GET", nullptr, Referrer(), ui::PAGE_TRANSITION_LINK, false,
REQUEST_CONTEXT_TYPE_LOCATION,
base::Bind(&NavigationHandleImplTest::UpdateThrottleCheckResult,
base::Unretained(this)));
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl.cc ('k') | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698