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

Side by Side Diff: third_party/WebKit/Source/core/html/parser/CSSPreloadScannerTest.cpp

Issue 2584423002: Loading: move core/fetch to platform/loader/fetch (Closed)
Patch Set: another try Created 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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/html/parser/CSSPreloadScanner.h" 5 #include "core/html/parser/CSSPreloadScanner.h"
6 6
7 #include "core/fetch/FetchContext.h"
8 #include "core/fetch/Resource.h"
9 #include "core/fetch/ResourceFetcher.h"
10 #include "core/frame/Settings.h" 7 #include "core/frame/Settings.h"
11 #include "core/html/parser/HTMLResourcePreloader.h" 8 #include "core/html/parser/HTMLResourcePreloader.h"
12 #include "core/testing/DummyPageHolder.h" 9 #include "core/testing/DummyPageHolder.h"
13 #include "platform/heap/Heap.h" 10 #include "platform/heap/Heap.h"
11 #include "platform/loader/fetch/FetchContext.h"
12 #include "platform/loader/fetch/Resource.h"
13 #include "platform/loader/fetch/ResourceFetcher.h"
14 #include "platform/network/ResourceError.h" 14 #include "platform/network/ResourceError.h"
15 #include "platform/network/ResourceRequest.h" 15 #include "platform/network/ResourceRequest.h"
16 #include "platform/weborigin/KURL.h" 16 #include "platform/weborigin/KURL.h"
17 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
18 #include <memory> 18 #include <memory>
19 19
20 namespace blink { 20 namespace blink {
21 21
22 namespace { 22 namespace {
23 23
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 const char* data = "@import url('http://127.0.0.1/preload.css');"; 151 const char* data = "@import url('http://127.0.0.1/preload.css');";
152 resource->appendData(data, strlen(data)); 152 resource->appendData(data, strlen(data));
153 153
154 // Do not expect to gather any preloads, as the document loader is invalid, 154 // Do not expect to gather any preloads, as the document loader is invalid,
155 // which means we can't notify WebLoadingBehaviorData of the preloads. 155 // which means we can't notify WebLoadingBehaviorData of the preloads.
156 EXPECT_EQ(0u, resourceClient->m_preloadUrls.size()); 156 EXPECT_EQ(0u, resourceClient->m_preloadUrls.size());
157 } 157 }
158 158
159 } // namespace blink 159 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698