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

Side by Side Diff: third_party/WebKit/Source/platform/network/ResourceRequestTest.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/network/ResourceRequest.h" 5 #include "platform/network/ResourceRequest.h"
6 6
7 #include <memory>
7 #include "platform/network/EncodedFormData.h" 8 #include "platform/network/EncodedFormData.h"
8 #include "platform/weborigin/KURL.h" 9 #include "platform/weborigin/KURL.h"
9 #include "platform/weborigin/Referrer.h" 10 #include "platform/weborigin/Referrer.h"
10 #include "public/platform/WebCachePolicy.h" 11 #include "public/platform/WebCachePolicy.h"
11 #include "public/platform/WebURLRequest.h" 12 #include "public/platform/WebURLRequest.h"
12 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
13 #include "wtf/text/AtomicString.h" 14 #include "wtf/text/AtomicString.h"
14 #include <memory>
15 15
16 namespace blink { 16 namespace blink {
17 17
18 TEST(ResourceRequestTest, RequestorOriginNonNull) { 18 TEST(ResourceRequestTest, RequestorOriginNonNull) {
19 ResourceRequest req; 19 ResourceRequest req;
20 EXPECT_NE(nullptr, req.requestorOrigin().get()); 20 EXPECT_NE(nullptr, req.requestorOrigin().get());
21 EXPECT_TRUE(req.requestorOrigin()->isUnique()); 21 EXPECT_TRUE(req.requestorOrigin()->isUnique());
22 } 22 }
23 23
24 TEST(ResourceRequestTest, CrossThreadResourceRequestData) { 24 TEST(ResourceRequestTest, CrossThreadResourceRequestData) {
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 TEST(ResourceRequestTest, SetHasUserGesture) { 140 TEST(ResourceRequestTest, SetHasUserGesture) {
141 ResourceRequest original; 141 ResourceRequest original;
142 EXPECT_FALSE(original.hasUserGesture()); 142 EXPECT_FALSE(original.hasUserGesture());
143 original.setHasUserGesture(true); 143 original.setHasUserGesture(true);
144 EXPECT_TRUE(original.hasUserGesture()); 144 EXPECT_TRUE(original.hasUserGesture());
145 original.setHasUserGesture(false); 145 original.setHasUserGesture(false);
146 EXPECT_TRUE(original.hasUserGesture()); 146 EXPECT_TRUE(original.hasUserGesture());
147 } 147 }
148 148
149 } // namespace blink 149 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698