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

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: moar webexposed 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 ed0444f091c83139eca1037163bcaa1f1bcfdca0..6490e885d7582783680f70a58a258836d0718d1b 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