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

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

Issue 2815053002: Rewrite references to "wtf/" to "platform/wtf/" in core/loader. (Closed)
Patch Set: Created 3 years, 8 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/loader/resource/CSSStyleSheetResource.h" 5 #include "core/loader/resource/CSSStyleSheetResource.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include "core/css/CSSCrossfadeValue.h" 8 #include "core/css/CSSCrossfadeValue.h"
9 #include "core/css/CSSImageValue.h" 9 #include "core/css/CSSImageValue.h"
10 #include "core/css/CSSPrimitiveValue.h" 10 #include "core/css/CSSPrimitiveValue.h"
(...skipping 12 matching lines...) Expand all
23 #include "platform/heap/Heap.h" 23 #include "platform/heap/Heap.h"
24 #include "platform/loader/fetch/FetchContext.h" 24 #include "platform/loader/fetch/FetchContext.h"
25 #include "platform/loader/fetch/FetchInitiatorTypeNames.h" 25 #include "platform/loader/fetch/FetchInitiatorTypeNames.h"
26 #include "platform/loader/fetch/FetchRequest.h" 26 #include "platform/loader/fetch/FetchRequest.h"
27 #include "platform/loader/fetch/MemoryCache.h" 27 #include "platform/loader/fetch/MemoryCache.h"
28 #include "platform/loader/fetch/ResourceFetcher.h" 28 #include "platform/loader/fetch/ResourceFetcher.h"
29 #include "platform/loader/fetch/ResourceRequest.h" 29 #include "platform/loader/fetch/ResourceRequest.h"
30 #include "platform/testing/URLTestHelpers.h" 30 #include "platform/testing/URLTestHelpers.h"
31 #include "platform/testing/UnitTestHelpers.h" 31 #include "platform/testing/UnitTestHelpers.h"
32 #include "platform/weborigin/KURL.h" 32 #include "platform/weborigin/KURL.h"
33 #include "platform/wtf/PtrUtil.h"
34 #include "platform/wtf/RefPtr.h"
35 #include "platform/wtf/text/WTFString.h"
33 #include "public/platform/Platform.h" 36 #include "public/platform/Platform.h"
34 #include "public/platform/WebURLResponse.h" 37 #include "public/platform/WebURLResponse.h"
35 #include "testing/gtest/include/gtest/gtest.h" 38 #include "testing/gtest/include/gtest/gtest.h"
36 #include "wtf/PtrUtil.h"
37 #include "wtf/RefPtr.h"
38 #include "wtf/text/WTFString.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class Document; 42 class Document;
43 43
44 namespace { 44 namespace {
45 45
46 class CSSStyleSheetResourceTest : public ::testing::Test { 46 class CSSStyleSheetResourceTest : public ::testing::Test {
47 protected: 47 protected:
48 CSSStyleSheetResourceTest() { 48 CSSStyleSheetResourceTest() {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 // The underlying |contents| for the stylesheet resource must have a 93 // The underlying |contents| for the stylesheet resource must have a
94 // matching reference status. 94 // matching reference status.
95 EXPECT_TRUE(GetMemoryCache()->Contains(image_resource)); 95 EXPECT_TRUE(GetMemoryCache()->Contains(image_resource));
96 EXPECT_FALSE(GetMemoryCache()->Contains(css_resource)); 96 EXPECT_FALSE(GetMemoryCache()->Contains(css_resource));
97 EXPECT_FALSE(contents->IsReferencedFromResource()); 97 EXPECT_FALSE(contents->IsReferencedFromResource());
98 EXPECT_FALSE(css_resource->RestoreParsedStyleSheet(parser_context)); 98 EXPECT_FALSE(css_resource->RestoreParsedStyleSheet(parser_context));
99 } 99 }
100 100
101 } // namespace 101 } // namespace
102 } // namespace blink 102 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698