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

Side by Side Diff: third_party/WebKit/Source/platform/loader/fetch/ResourceTest.cpp

Issue 2797983002: Rewrite references to "wtf/" to "platform/wtf/" in platform/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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "platform/loader/fetch/Resource.h" 5 #include "platform/loader/fetch/Resource.h"
6 6
7 #include "platform/SharedBuffer.h" 7 #include "platform/SharedBuffer.h"
8 #include "platform/loader/fetch/RawResource.h" 8 #include "platform/loader/fetch/RawResource.h"
9 #include "platform/loader/fetch/ResourceRequest.h" 9 #include "platform/loader/fetch/ResourceRequest.h"
10 #include "platform/loader/fetch/ResourceResponse.h" 10 #include "platform/loader/fetch/ResourceResponse.h"
11 #include "platform/testing/TestingPlatformSupport.h" 11 #include "platform/testing/TestingPlatformSupport.h"
12 #include "platform/testing/URLTestHelpers.h" 12 #include "platform/testing/URLTestHelpers.h"
13 #include "platform/wtf/Vector.h"
13 #include "public/platform/Platform.h" 14 #include "public/platform/Platform.h"
14 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
15 #include "wtf/Vector.h"
16 16
17 namespace blink { 17 namespace blink {
18 18
19 namespace { 19 namespace {
20 20
21 class MockPlatform final : public TestingPlatformSupportWithMockScheduler { 21 class MockPlatform final : public TestingPlatformSupportWithMockScheduler {
22 public: 22 public:
23 MockPlatform() {} 23 MockPlatform() {}
24 ~MockPlatform() override {} 24 ~MockPlatform() override {}
25 25
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 response.setHTTPHeaderField(HTTPNames::Vary, "User-Agent, Referer"); 141 response.setHTTPHeaderField(HTTPNames::Vary, "User-Agent, Referer");
142 resource->setResponse(response); 142 resource->setResponse(response);
143 EXPECT_TRUE(resource->mustReloadDueToVaryHeader(newRequest)); 143 EXPECT_TRUE(resource->mustReloadDueToVaryHeader(newRequest));
144 144
145 // Two matching 145 // Two matching
146 newRequest.setHTTPHeaderField(HTTPNames::Referer, "http://foo.com"); 146 newRequest.setHTTPHeaderField(HTTPNames::Referer, "http://foo.com");
147 EXPECT_FALSE(resource->mustReloadDueToVaryHeader(newRequest)); 147 EXPECT_FALSE(resource->mustReloadDueToVaryHeader(newRequest));
148 } 148 }
149 149
150 } // namespace blink 150 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698