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

Side by Side Diff: third_party/WebKit/Source/core/loader/resource/CSSStyleSheetResourceTest.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/loader/resource/CSSStyleSheetResource.h" 5 #include "core/loader/resource/CSSStyleSheetResource.h"
6 6
7 #include <memory>
7 #include "core/css/CSSCrossfadeValue.h" 8 #include "core/css/CSSCrossfadeValue.h"
8 #include "core/css/CSSImageValue.h" 9 #include "core/css/CSSImageValue.h"
9 #include "core/css/CSSPrimitiveValue.h" 10 #include "core/css/CSSPrimitiveValue.h"
10 #include "core/css/CSSProperty.h" 11 #include "core/css/CSSProperty.h"
11 #include "core/css/CSSSelectorList.h" 12 #include "core/css/CSSSelectorList.h"
12 #include "core/css/CSSStyleSheet.h" 13 #include "core/css/CSSStyleSheet.h"
13 #include "core/css/StylePropertySet.h" 14 #include "core/css/StylePropertySet.h"
14 #include "core/css/StyleRule.h" 15 #include "core/css/StyleRule.h"
15 #include "core/css/StyleSheetContents.h" 16 #include "core/css/StyleSheetContents.h"
16 #include "core/css/parser/CSSParserContext.h" 17 #include "core/css/parser/CSSParserContext.h"
(...skipping 11 matching lines...) Expand all
28 #include "platform/network/ResourceRequest.h" 29 #include "platform/network/ResourceRequest.h"
29 #include "platform/testing/URLTestHelpers.h" 30 #include "platform/testing/URLTestHelpers.h"
30 #include "platform/testing/UnitTestHelpers.h" 31 #include "platform/testing/UnitTestHelpers.h"
31 #include "platform/weborigin/KURL.h" 32 #include "platform/weborigin/KURL.h"
32 #include "public/platform/Platform.h" 33 #include "public/platform/Platform.h"
33 #include "public/platform/WebURLResponse.h" 34 #include "public/platform/WebURLResponse.h"
34 #include "testing/gtest/include/gtest/gtest.h" 35 #include "testing/gtest/include/gtest/gtest.h"
35 #include "wtf/PtrUtil.h" 36 #include "wtf/PtrUtil.h"
36 #include "wtf/RefPtr.h" 37 #include "wtf/RefPtr.h"
37 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
38 #include <memory>
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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 // The underlying |contents| for the stylesheet resource must have a 91 // The underlying |contents| for the stylesheet resource must have a
92 // matching reference status. 92 // matching reference status.
93 EXPECT_TRUE(memoryCache()->contains(imageResource)); 93 EXPECT_TRUE(memoryCache()->contains(imageResource));
94 EXPECT_FALSE(memoryCache()->contains(cssResource)); 94 EXPECT_FALSE(memoryCache()->contains(cssResource));
95 EXPECT_FALSE(contents->isReferencedFromResource()); 95 EXPECT_FALSE(contents->isReferencedFromResource());
96 EXPECT_FALSE(cssResource->restoreParsedStyleSheet(parserContext)); 96 EXPECT_FALSE(cssResource->restoreParsedStyleSheet(parserContext));
97 } 97 }
98 98
99 } // namespace 99 } // namespace
100 } // namespace blink 100 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698