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

Side by Side Diff: content/common/navigation_params_unittest.cc

Issue 2098543003: PlzNavigate: Handle navigation within MHTML documents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cid_scheme
Patch Set: Make component build work Created 4 years, 5 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 unified diff | Download patch
« no previous file with comments | « content/common/navigation_params.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "content/common/navigation_params.h"
6
7 #include "content/public/common/browser_side_navigation_policy.h"
8 #include "testing/gtest/include/gtest/gtest.h"
9 #include "url/gurl.h"
10
11 namespace content {
12
13 TEST(NavigationParamsTest, ShouldMakeNetworkRequestForURL) {
14 if (!IsBrowserSideNavigationEnabled())
15 return;
16
17 EXPECT_TRUE(ShouldMakeNetworkRequestForURL(GURL("http://foo/bar.html")));
18 EXPECT_TRUE(ShouldMakeNetworkRequestForURL(GURL("https://foo/bar.html")));
19
20 EXPECT_FALSE(ShouldMakeNetworkRequestForURL(GURL("data://foo")));
21 EXPECT_FALSE(ShouldMakeNetworkRequestForURL(GURL("about:blank")));
22 EXPECT_FALSE(ShouldMakeNetworkRequestForURL(GURL("about:srcdoc")));
23 EXPECT_FALSE(ShouldMakeNetworkRequestForURL(GURL("javascript://foo.js")));
24 EXPECT_FALSE(ShouldMakeNetworkRequestForURL(GURL("cid:foo@bar")));
25 EXPECT_FALSE(ShouldMakeNetworkRequestForURL(GURL()));
26 }
27
28 } // namespace content
OLDNEW
« no previous file with comments | « content/common/navigation_params.cc ('k') | content/content_tests.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698