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

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

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: 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 <memory>
7 #include "core/frame/Settings.h" 8 #include "core/frame/Settings.h"
8 #include "core/html/parser/HTMLResourcePreloader.h" 9 #include "core/html/parser/HTMLResourcePreloader.h"
9 #include "core/testing/DummyPageHolder.h" 10 #include "core/testing/DummyPageHolder.h"
10 #include "platform/heap/Heap.h" 11 #include "platform/heap/Heap.h"
11 #include "platform/loader/fetch/FetchContext.h" 12 #include "platform/loader/fetch/FetchContext.h"
12 #include "platform/loader/fetch/Resource.h" 13 #include "platform/loader/fetch/Resource.h"
13 #include "platform/loader/fetch/ResourceFetcher.h" 14 #include "platform/loader/fetch/ResourceFetcher.h"
14 #include "platform/network/ResourceError.h" 15 #include "platform/network/ResourceError.h"
15 #include "platform/network/ResourceRequest.h" 16 #include "platform/network/ResourceRequest.h"
16 #include "platform/weborigin/KURL.h" 17 #include "platform/weborigin/KURL.h"
17 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
18 #include <memory>
19 19
20 namespace blink { 20 namespace blink {
21 21
22 namespace { 22 namespace {
23 23
24 class MockHTMLResourcePreloader : public HTMLResourcePreloader { 24 class MockHTMLResourcePreloader : public HTMLResourcePreloader {
25 WTF_MAKE_NONCOPYABLE(MockHTMLResourcePreloader); 25 WTF_MAKE_NONCOPYABLE(MockHTMLResourcePreloader);
26 26
27 public: 27 public:
28 MockHTMLResourcePreloader(Document& document) 28 MockHTMLResourcePreloader(Document& document)
(...skipping 121 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