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

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

Issue 2746113002: platform/loader: move network/Resource* to loader/fetch (Closed)
Patch Set: git rebase master Created 3 years, 9 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/FontResource.h" 5 #include "core/loader/resource/FontResource.h"
6 6
7 #include "core/loader/resource/MockFontResourceClient.h" 7 #include "core/loader/resource/MockFontResourceClient.h"
8 #include "platform/exported/WrappedResourceResponse.h" 8 #include "platform/exported/WrappedResourceResponse.h"
9 #include "platform/loader/fetch/FetchInitiatorInfo.h" 9 #include "platform/loader/fetch/FetchInitiatorInfo.h"
10 #include "platform/loader/fetch/FetchRequest.h" 10 #include "platform/loader/fetch/FetchRequest.h"
11 #include "platform/loader/fetch/MemoryCache.h" 11 #include "platform/loader/fetch/MemoryCache.h"
12 #include "platform/loader/fetch/ResourceError.h"
12 #include "platform/loader/fetch/ResourceFetcher.h" 13 #include "platform/loader/fetch/ResourceFetcher.h"
13 #include "platform/loader/fetch/ResourceLoader.h" 14 #include "platform/loader/fetch/ResourceLoader.h"
15 #include "platform/loader/fetch/ResourceRequest.h"
16 #include "platform/loader/fetch/ResourceResponse.h"
14 #include "platform/loader/testing/MockFetchContext.h" 17 #include "platform/loader/testing/MockFetchContext.h"
15 #include "platform/loader/testing/MockResourceClient.h" 18 #include "platform/loader/testing/MockResourceClient.h"
16 #include "platform/network/ResourceError.h"
17 #include "platform/network/ResourceRequest.h"
18 #include "platform/network/ResourceResponse.h"
19 #include "platform/weborigin/KURL.h" 19 #include "platform/weborigin/KURL.h"
20 #include "public/platform/Platform.h" 20 #include "public/platform/Platform.h"
21 #include "public/platform/WebCachePolicy.h" 21 #include "public/platform/WebCachePolicy.h"
22 #include "public/platform/WebURLLoaderMockFactory.h" 22 #include "public/platform/WebURLLoaderMockFactory.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 24
25 namespace blink { 25 namespace blink {
26 26
27 class FontResourceTest : public ::testing::Test { 27 class FontResourceTest : public ::testing::Test {
28 void TearDown() override { 28 void TearDown() override {
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 Persistent<MockFontResourceClient> client3 = 143 Persistent<MockFontResourceClient> client3 =
144 new MockFontResourceClient(resource); 144 new MockFontResourceClient(resource);
145 EXPECT_TRUE(client3->fontLoadShortLimitExceededCalled()); 145 EXPECT_TRUE(client3->fontLoadShortLimitExceededCalled());
146 EXPECT_TRUE(client3->fontLoadLongLimitExceededCalled()); 146 EXPECT_TRUE(client3->fontLoadLongLimitExceededCalled());
147 147
148 Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests(); 148 Platform::current()->getURLLoaderMockFactory()->serveAsynchronousRequests();
149 memoryCache()->remove(resource); 149 memoryCache()->remove(resource);
150 } 150 }
151 151
152 } // namespace blink 152 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698