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

Side by Side Diff: third_party/WebKit/Source/web/tests/WebDocumentSubresourceFilterTest.cpp

Issue 2675303004: Move WebCache from public/web into public/platform (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 "public/platform/WebDocumentSubresourceFilter.h" 5 #include "public/platform/WebDocumentSubresourceFilter.h"
6 6
7 #include "core/dom/Element.h" 7 #include "core/dom/Element.h"
8 #include "core/html/HTMLImageElement.h" 8 #include "core/html/HTMLImageElement.h"
9 #include "platform/testing/URLTestHelpers.h" 9 #include "platform/testing/URLTestHelpers.h"
10 #include "platform/testing/UnitTestHelpers.h" 10 #include "platform/testing/UnitTestHelpers.h"
11 #include "public/platform/Platform.h" 11 #include "public/platform/Platform.h"
12 #include "public/platform/WebCache.h"
12 #include "public/platform/WebURLLoaderMockFactory.h" 13 #include "public/platform/WebURLLoaderMockFactory.h"
13 #include "public/web/WebCache.h"
14 #include "public/web/WebDocument.h" 14 #include "public/web/WebDocument.h"
15 #include "public/web/WebElement.h" 15 #include "public/web/WebElement.h"
16 #include "public/web/WebLocalFrame.h" 16 #include "public/web/WebLocalFrame.h"
17 #include "testing/gmock/include/gmock/gmock.h" 17 #include "testing/gmock/include/gmock/gmock.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "web/tests/FrameTestHelpers.h" 19 #include "web/tests/FrameTestHelpers.h"
20 20
21 namespace blink { 21 namespace blink {
22 22
23 namespace { 23 namespace {
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 loadDocument(!allowSubresources); 142 loadDocument(!allowSubresources);
143 expectSubresourceWasLoaded(!allowSubresources); 143 expectSubresourceWasLoaded(!allowSubresources);
144 EXPECT_THAT(queriedSubresourcePaths(), 144 EXPECT_THAT(queriedSubresourcePaths(),
145 ::testing::ElementsAre("/white-1x1.png")); 145 ::testing::ElementsAre("/white-1x1.png"));
146 146
147 WebCache::clear(); 147 WebCache::clear();
148 } 148 }
149 } 149 }
150 150
151 } // namespace blink 151 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698