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

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

Issue 1754713006: CORS-RFC1918: Introduce the 'addressSpace' IDL attributes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: philip Created 4 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 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 c0224cf987f606b2b57b7f4df8656913331b17bb..b1da3cdaca34689a642eb9a47ca4085684c05a24 100644
--- a/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
+++ b/third_party/WebKit/Source/core/loader/FrameFetchContextTest.cpp
@@ -629,7 +629,7 @@ TEST_F(FrameFetchContextTest, SetIsExternalRequestForPublicDocument)
TEST_F(FrameFetchContextTest, SetIsExternalRequestForPrivateDocument)
{
- document->setHostedInReservedIPRange(true);
+ document->setAddressSpace(WebURLRequest::AddressSpacePrivate);
EXPECT_EQ(WebURLRequest::AddressSpacePrivate, document->addressSpace());
struct TestCase {
@@ -677,8 +677,7 @@ TEST_F(FrameFetchContextTest, SetIsExternalRequestForPrivateDocument)
TEST_F(FrameFetchContextTest, SetIsExternalRequestForLocalDocument)
{
- document->setSecurityOrigin(SecurityOrigin::create(KURL(KURL(), "http://localhost/")));
- document->setHostedInReservedIPRange(true);
+ document->setAddressSpace(WebURLRequest::AddressSpaceLocal);
EXPECT_EQ(WebURLRequest::AddressSpaceLocal, document->addressSpace());
struct TestCase {

Powered by Google App Engine
This is Rietveld 408576698