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

Unified Diff: third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp

Issue 2415373002: Loading: bulk style errors fix in core/loader (Closed)
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
diff --git a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
index 3d6477ae07d32f228fa3ac06e55f05c4bc55a399..7a5cc3a54e73002ea5e7640f34c445ff28282d48 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
@@ -608,19 +608,21 @@ TEST_F(FrameFetchContextTest, PopulateRequestData) {
ResourceRequest request("http://example.test/");
request.setFrameType(test.frameType);
- if (strlen(test.requestorOrigin) == 0)
+ if (strlen(test.requestorOrigin) == 0) {
request.setRequestorOrigin(SecurityOrigin::createUnique());
- else
+ } else {
request.setRequestorOrigin(
SecurityOrigin::create(KURL(ParsedURLString, test.requestorOrigin)));
+ }
// Compare the populated |requestorOrigin| against |test.serializedOrigin|
fetchContext->populateRequestData(request);
- if (strlen(test.serializedOrigin) == 0)
+ if (strlen(test.serializedOrigin) == 0) {
EXPECT_TRUE(request.requestorOrigin()->isUnique());
- else
+ } else {
EXPECT_EQ(String(test.serializedOrigin),
request.requestorOrigin()->toString());
+ }
EXPECT_EQ(document->firstPartyForCookies(), request.firstPartyForCookies());
}
« no previous file with comments | « third_party/WebKit/Source/core/loader/FrameFetchContext.cpp ('k') | third_party/WebKit/Source/core/loader/FrameLoader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698