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

Unified Diff: third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp

Issue 1716303002: Remove SecurityOrigin::isPotentiallyTrustworthy() |errorMessage| (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix 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/platform/weborigin/SecurityOriginTest.cpp
diff --git a/third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp b/third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp
index 3c46272be5889f671cd239fd924f7297fda0f49c..c04fd588b23c3ad4a3ebd75a33e80dac9768bbd8 100644
--- a/third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp
+++ b/third_party/WebKit/Source/platform/weborigin/SecurityOriginTest.cpp
@@ -157,15 +157,12 @@ TEST_F(SecurityOriginTest, IsPotentiallyTrustworthy)
SCOPED_TRACE(i);
RefPtr<SecurityOrigin> origin = SecurityOrigin::createFromString(inputs[i].url);
String errorMessage;
- EXPECT_EQ(inputs[i].accessGranted, origin->isPotentiallyTrustworthy(errorMessage));
- EXPECT_EQ(inputs[i].accessGranted, errorMessage.isEmpty());
+ EXPECT_EQ(inputs[i].accessGranted, origin->isPotentiallyTrustworthy());
}
// Unique origins are not considered secure.
RefPtr<SecurityOrigin> uniqueOrigin = SecurityOrigin::createUnique();
- String errorMessage;
- EXPECT_FALSE(uniqueOrigin->isPotentiallyTrustworthy(errorMessage));
- EXPECT_EQ("Only secure origins are allowed (see: https://goo.gl/Y0ZkNV).", errorMessage);
+ EXPECT_FALSE(uniqueOrigin->isPotentiallyTrustworthy());
}
TEST_F(SecurityOriginTest, IsSecure)

Powered by Google App Engine
This is Rietveld 408576698