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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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/html/parser/HTMLPreloadScanner.h" 5 #include "core/html/parser/HTMLPreloadScanner.h"
6 6
7 #include "core/MediaTypeNames.h" 7 #include "core/MediaTypeNames.h"
8 #include "core/css/MediaValuesCached.h" 8 #include "core/css/MediaValuesCached.h"
9 #include "core/fetch/ClientHintsPreferences.h" 9 #include "core/fetch/ClientHintsPreferences.h"
10 #include "core/frame/Settings.h" 10 #include "core/frame/Settings.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 enum PreloadState { 97 enum PreloadState {
98 PreloadEnabled, 98 PreloadEnabled,
99 PreloadDisabled, 99 PreloadDisabled,
100 }; 100 };
101 101
102 HTMLPreloadScannerTest() 102 HTMLPreloadScannerTest()
103 : m_dummyPageHolder(DummyPageHolder::create()) 103 : m_dummyPageHolder(DummyPageHolder::create())
104 { 104 {
105 } 105 }
106 106
107 PassRefPtrWillBeRawPtr<MediaValuesCached> createMediaValues() 107 RawPtr<MediaValuesCached> createMediaValues()
108 { 108 {
109 MediaValuesCached::MediaValuesCachedData data; 109 MediaValuesCached::MediaValuesCachedData data;
110 data.viewportWidth = 500; 110 data.viewportWidth = 500;
111 data.viewportHeight = 600; 111 data.viewportHeight = 600;
112 data.deviceWidth = 700; 112 data.deviceWidth = 700;
113 data.deviceHeight = 800; 113 data.deviceHeight = 800;
114 data.devicePixelRatio = 2.0; 114 data.devicePixelRatio = 2.0;
115 data.colorBitsPerComponent = 24; 115 data.colorBitsPerComponent = 24;
116 data.monochromeBitsPerComponent = 0; 116 data.monochromeBitsPerComponent = 0;
117 data.primaryPointerType = PointerTypeFine; 117 data.primaryPointerType = PointerTypeFine;
(...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 {"http://example.test", "<link rel=preload href=bla as=audio>", "bla", " http://example.test/", Resource::Media, 0}, 373 {"http://example.test", "<link rel=preload href=bla as=audio>", "bla", " http://example.test/", Resource::Media, 0},
374 {"http://example.test", "<link rel=preload href=bla as=video>", "bla", " http://example.test/", Resource::Media, 0}, 374 {"http://example.test", "<link rel=preload href=bla as=video>", "bla", " http://example.test/", Resource::Media, 0},
375 {"http://example.test", "<link rel=preload href=bla as=track>", "bla", " http://example.test/", Resource::TextTrack, 0}, 375 {"http://example.test", "<link rel=preload href=bla as=track>", "bla", " http://example.test/", Resource::TextTrack, 0},
376 }; 376 };
377 377
378 for (const auto& testCase : testCases) 378 for (const auto& testCase : testCases)
379 test(testCase); 379 test(testCase);
380 } 380 }
381 381
382 } // namespace blink 382 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698