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

Side by Side Diff: third_party/WebKit/Source/core/loader/LinkLoaderTest.cpp

Issue 2584423002: Loading: move core/fetch to platform/loader/fetch (Closed)
Patch Set: rebase Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "core/loader/LinkLoader.h" 5 #include "core/loader/LinkLoader.h"
6 6
7 #include "core/fetch/MemoryCache.h"
8 #include "core/fetch/ResourceFetcher.h"
9 #include "core/frame/Settings.h" 7 #include "core/frame/Settings.h"
10 #include "core/html/LinkRelAttribute.h" 8 #include "core/html/LinkRelAttribute.h"
11 #include "core/loader/DocumentLoader.h" 9 #include "core/loader/DocumentLoader.h"
12 #include "core/loader/LinkLoaderClient.h" 10 #include "core/loader/LinkLoaderClient.h"
13 #include "core/loader/NetworkHintsInterface.h" 11 #include "core/loader/NetworkHintsInterface.h"
14 #include "core/testing/DummyPageHolder.h" 12 #include "core/testing/DummyPageHolder.h"
13 #include "platform/loader/fetch/MemoryCache.h"
14 #include "platform/loader/fetch/ResourceFetcher.h"
15 #include "platform/network/ResourceLoadPriority.h" 15 #include "platform/network/ResourceLoadPriority.h"
16 #include "platform/testing/URLTestHelpers.h" 16 #include "platform/testing/URLTestHelpers.h"
17 #include "public/platform/Platform.h" 17 #include "public/platform/Platform.h"
18 #include "public/platform/WebURLLoaderMockFactory.h" 18 #include "public/platform/WebURLLoaderMockFactory.h"
19 #include "testing/gtest/include/gtest/gtest.h" 19 #include "testing/gtest/include/gtest/gtest.h"
20 #include <base/macros.h> 20 #include <base/macros.h>
21 #include <memory> 21 #include <memory>
22 22
23 namespace blink { 23 namespace blink {
24 24
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after
364 loader->loadLink(LinkRelAttribute("preconnect"), testCase.crossOrigin, 364 loader->loadLink(LinkRelAttribute("preconnect"), testCase.crossOrigin,
365 String(), String(), String(), ReferrerPolicyDefault, 365 String(), String(), String(), ReferrerPolicyDefault,
366 hrefURL, dummyPageHolder->document(), networkHints); 366 hrefURL, dummyPageHolder->document(), networkHints);
367 EXPECT_EQ(testCase.shouldLoad, networkHints.didPreconnect()); 367 EXPECT_EQ(testCase.shouldLoad, networkHints.didPreconnect());
368 EXPECT_EQ(testCase.isHTTPS, networkHints.isHTTPS()); 368 EXPECT_EQ(testCase.isHTTPS, networkHints.isHTTPS());
369 EXPECT_EQ(testCase.isCrossOrigin, networkHints.isCrossOrigin()); 369 EXPECT_EQ(testCase.isCrossOrigin, networkHints.isCrossOrigin());
370 } 370 }
371 } 371 }
372 372
373 } // namespace blink 373 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698