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

Unified Diff: content/browser/loader/navigation_url_loader_unittest.cc

Issue 872473003: PlzNavigate: Remove the RequestNavigation IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed nits + fix compilation error Created 5 years, 10 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
Index: content/browser/loader/navigation_url_loader_unittest.cc
diff --git a/content/browser/loader/navigation_url_loader_unittest.cc b/content/browser/loader/navigation_url_loader_unittest.cc
index 745afe82d5fdcd5fedcfebcd9efaefabbd903e8d..3f899f38f5db846ea475a9c4ff30d4125537f6c5 100644
--- a/content/browser/loader/navigation_url_loader_unittest.cc
+++ b/content/browser/loader/navigation_url_loader_unittest.cc
@@ -24,6 +24,7 @@
#include "content/public/common/resource_response.h"
#include "content/public/test/test_browser_context.h"
#include "content/public/test/test_browser_thread_bundle.h"
+#include "net/base/load_flags.h"
#include "net/base/net_errors.h"
#include "net/http/http_response_headers.h"
#include "net/url_request/redirect_info.h"
@@ -176,18 +177,16 @@ class NavigationURLLoaderTest : public testing::Test {
scoped_ptr<NavigationURLLoader> MakeTestLoader(
const GURL& url,
NavigationURLLoaderDelegate* delegate) {
- FrameHostMsg_BeginNavigation_Params begin_params;
+ BeginNavigationParams begin_params(
+ "GET", std::string(), net::LOAD_NORMAL, false);
CommonNavigationParams common_params;
- begin_params.method = "GET";
common_params.url = url;
scoped_ptr<NavigationRequestInfo> request_info(
- new NavigationRequestInfo(begin_params));
- request_info->first_party_for_cookies = url;
- request_info->is_main_frame = true;
+ new NavigationRequestInfo(common_params, begin_params, url, true, false,
+ scoped_refptr<ResourceRequestBody>()));
return NavigationURLLoader::Create(
- browser_context_.get(), 0,
- common_params, request_info.Pass(), nullptr, delegate);
+ browser_context_.get(), 0, request_info.Pass(), delegate);
}
// Helper function for fetching the body of a URL to a string.
« no previous file with comments | « content/browser/loader/navigation_url_loader_impl_core.cc ('k') | content/browser/loader/resource_dispatcher_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698