| 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());
|
| }
|
|
|