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

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

Issue 2809123002: ur_ls -> urls in platform/weborigin (Closed)
Patch Set: Created 3 years, 8 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
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/weborigin/SecurityPolicyTest.cpp
diff --git a/third_party/WebKit/Source/platform/weborigin/SecurityPolicyTest.cpp b/third_party/WebKit/Source/platform/weborigin/SecurityPolicyTest.cpp
index 5f5f61f84964193d203e9ff2bc5d05be8b7334fd..861cb664758958d84f969483ee4cc4574acdf73e 100644
--- a/third_party/WebKit/Source/platform/weborigin/SecurityPolicyTest.cpp
+++ b/third_party/WebKit/Source/platform/weborigin/SecurityPolicyTest.cpp
@@ -182,13 +182,13 @@ TEST(SecurityPolicyTest, GenerateReferrer) {
}
TEST(SecurityPolicyTest, TrustworthyWhiteList) {
- const char* insecure_ur_ls[] = {
+ const char* insecure_urls[] = {
"http://a.test/path/to/file.html", "http://b.test/path/to/file.html",
"blob:http://c.test/b3aae9c8-7f90-440d-8d7c-43aa20d72fde",
"filesystem:http://d.test/path/t/file.html",
};
- for (const char* url : insecure_ur_ls) {
+ for (const char* url : insecure_urls) {
RefPtr<SecurityOrigin> origin = SecurityOrigin::CreateFromString(url);
EXPECT_FALSE(origin->IsPotentiallyTrustworthy());
SecurityPolicy::AddOriginTrustworthyWhiteList(origin);
@@ -201,7 +201,7 @@ TEST(SecurityPolicyTest, TrustworthyWhiteList) {
const char* url;
const char* another_url_in_origin;
};
- TestCase insecure_ur_ls_with_inner_origin[] = {
+ TestCase insecure_urls_with_inner_origin[] = {
{"blob:http://e.test/b3aae9c8-7f90-440d-8d7c-43aa20d72fde",
"http://e.test/foo.html"},
{"filesystem:http://f.test/path/t/file.html", "http://f.test/bar.html"},
@@ -209,7 +209,7 @@ TEST(SecurityPolicyTest, TrustworthyWhiteList) {
"blob:http://g.test/b3aae9c8-7f90-440d-8d7c-43aa20d72fde"},
{"http://h.test/bar.html", "filesystem:http://h.test/path/t/file.html"},
};
- for (const TestCase& test : insecure_ur_ls_with_inner_origin) {
+ for (const TestCase& test : insecure_urls_with_inner_origin) {
// Actually origins of both URLs should be same.
RefPtr<SecurityOrigin> origin1 = SecurityOrigin::CreateFromString(test.url);
RefPtr<SecurityOrigin> origin2 =
« no previous file with comments | « third_party/WebKit/Source/platform/weborigin/SchemeRegistry.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698