| OLD | NEW |
| 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/fetch/CSSStyleSheetResource.h" | 5 #include "core/fetch/CSSStyleSheetResource.h" |
| 6 | 6 |
| 7 #include "core/css/CSSCrossfadeValue.h" | 7 #include "core/css/CSSCrossfadeValue.h" |
| 8 #include "core/css/CSSImageValue.h" | 8 #include "core/css/CSSImageValue.h" |
| 9 #include "core/css/CSSPrimitiveValue.h" | 9 #include "core/css/CSSPrimitiveValue.h" |
| 10 #include "core/css/CSSProperty.h" | 10 #include "core/css/CSSProperty.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 #include "core/fetch/MemoryCache.h" | 22 #include "core/fetch/MemoryCache.h" |
| 23 #include "core/fetch/ResourceFetcher.h" | 23 #include "core/fetch/ResourceFetcher.h" |
| 24 #include "core/testing/DummyPageHolder.h" | 24 #include "core/testing/DummyPageHolder.h" |
| 25 #include "platform/heap/Handle.h" | 25 #include "platform/heap/Handle.h" |
| 26 #include "platform/network/ResourceRequest.h" | 26 #include "platform/network/ResourceRequest.h" |
| 27 #include "platform/testing/URLTestHelpers.h" | 27 #include "platform/testing/URLTestHelpers.h" |
| 28 #include "platform/testing/UnitTestHelpers.h" | 28 #include "platform/testing/UnitTestHelpers.h" |
| 29 #include "platform/weborigin/KURL.h" | 29 #include "platform/weborigin/KURL.h" |
| 30 #include "public/platform/Platform.h" | 30 #include "public/platform/Platform.h" |
| 31 #include "public/platform/WebURLResponse.h" | 31 #include "public/platform/WebURLResponse.h" |
| 32 #include "public/platform/WebUnitTestSupport.h" | |
| 33 #include "testing/gtest/include/gtest/gtest.h" | 32 #include "testing/gtest/include/gtest/gtest.h" |
| 34 #include "wtf/RefPtr.h" | 33 #include "wtf/RefPtr.h" |
| 35 #include "wtf/text/WTFString.h" | 34 #include "wtf/text/WTFString.h" |
| 36 | 35 |
| 37 namespace blink { | 36 namespace blink { |
| 38 | 37 |
| 39 class Document; | 38 class Document; |
| 40 | 39 |
| 41 namespace { | 40 namespace { |
| 42 | 41 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 145 // Verify that the cache will have a mapping for |imageResource| at |url|. | 144 // Verify that the cache will have a mapping for |imageResource| at |url|. |
| 146 // The underlying |contents| for the stylesheet resource must have a | 145 // The underlying |contents| for the stylesheet resource must have a |
| 147 // matching cache status. | 146 // matching cache status. |
| 148 ASSERT_TRUE(memoryCache()->contains(imageResource.get())); | 147 ASSERT_TRUE(memoryCache()->contains(imageResource.get())); |
| 149 ASSERT_FALSE(memoryCache()->contains(cssResource.get())); | 148 ASSERT_FALSE(memoryCache()->contains(cssResource.get())); |
| 150 ASSERT_FALSE(contents->isInMemoryCache()); | 149 ASSERT_FALSE(contents->isInMemoryCache()); |
| 151 } | 150 } |
| 152 | 151 |
| 153 } // namespace | 152 } // namespace |
| 154 } // namespace blink | 153 } // namespace blink |
| OLD | NEW |