| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "core/frame/csp/SourceListDirective.h" | 5 #include "core/frame/csp/SourceListDirective.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/frame/csp/CSPSource.h" | 8 #include "core/frame/csp/CSPSource.h" |
| 9 #include "core/frame/csp/ContentSecurityPolicy.h" | 9 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 10 #include "platform/network/ResourceRequest.h" | 10 #include "platform/network/ResourceRequest.h" |
| (...skipping 1226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1237 {"*", {""}, true}, | 1237 {"*", {""}, true}, |
| 1238 {"*", {"'none'"}, true}, | 1238 {"*", {"'none'"}, true}, |
| 1239 {"*", {"*"}, true}, | 1239 {"*", {"*"}, true}, |
| 1240 {"*", {"*", "*", "*"}, true}, | 1240 {"*", {"*", "*", "*"}, true}, |
| 1241 {"*", {"*", "* https: http: ftp: ws: wss:"}, true}, | 1241 {"*", {"*", "* https: http: ftp: ws: wss:"}, true}, |
| 1242 {"*", {"*", "https: http: ftp: ws: wss:"}, true}, | 1242 {"*", {"*", "https: http: ftp: ws: wss:"}, true}, |
| 1243 {"https: http: ftp: ws: wss:", {"*", "https: http: ftp: ws: wss:"}, true}, | 1243 {"https: http: ftp: ws: wss:", {"*", "https: http: ftp: ws: wss:"}, true}, |
| 1244 {"http: ftp: ws:", {"*", "https: http: ftp: ws: wss:"}, true}, | 1244 {"http: ftp: ws:", {"*", "https: http: ftp: ws: wss:"}, true}, |
| 1245 {"http: ftp: ws:", {"*", "https: 'strict-dynamic'"}, true}, | 1245 {"http: ftp: ws:", {"*", "https: 'strict-dynamic'"}, true}, |
| 1246 {"http://another.test", {"*", "'self'"}, true}, | 1246 {"http://another.test", {"*", "'self'"}, true}, |
| 1247 // TODO(amalika): Fix the test below that should have the same behavior as | 1247 {"http://another.test/", {"*", "'self'"}, true}, |
| 1248 // the test above. | |
| 1249 // {"http://another.test/", {"*", "'self'"}, true}, | |
| 1250 {"http://another.test", {"https:", "'self'"}, true}, | 1248 {"http://another.test", {"https:", "'self'"}, true}, |
| 1251 {"'self'", {"*", "'self'"}, true}, | 1249 {"'self'", {"*", "'self'"}, true}, |
| 1252 {"'unsafe-eval' * ", {"'unsafe-eval'"}, true}, | 1250 {"'unsafe-eval' * ", {"'unsafe-eval'"}, true}, |
| 1253 {"'unsafe-hashed-attributes' * ", {"'unsafe-hashed-attributes'"}, true}, | 1251 {"'unsafe-hashed-attributes' * ", {"'unsafe-hashed-attributes'"}, true}, |
| 1254 {"'unsafe-inline' * ", {"'unsafe-inline'"}, true}, | 1252 {"'unsafe-inline' * ", {"'unsafe-inline'"}, true}, |
| 1255 {"*", {"*", "http://a.com ws://b.com ftp://c.com"}, true}, | 1253 {"*", {"*", "http://a.com ws://b.com ftp://c.com"}, true}, |
| 1256 {"*", {"* data: blob:", "http://a.com ws://b.com ftp://c.com"}, true}, | 1254 {"*", {"* data: blob:", "http://a.com ws://b.com ftp://c.com"}, true}, |
| 1257 {"*", {"data: blob:", "http://a.com ws://b.com ftp://c.com"}, true}, | 1255 {"*", {"data: blob:", "http://a.com ws://b.com ftp://c.com"}, true}, |
| 1258 {"*", {"*", "data://a.com ws://b.com ftp://c.com"}, true}, | 1256 {"*", {"*", "data://a.com ws://b.com ftp://c.com"}, true}, |
| 1259 {"* data:", | 1257 {"* data:", |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1332 expected[i]->m_hostWildcard, expected[i]->m_portWildcard}; | 1330 expected[i]->m_hostWildcard, expected[i]->m_portWildcard}; |
| 1333 Source b = {normalized[i]->m_scheme, normalized[i]->m_host, | 1331 Source b = {normalized[i]->m_scheme, normalized[i]->m_host, |
| 1334 normalized[i]->m_port, normalized[i]->m_path, | 1332 normalized[i]->m_port, normalized[i]->m_path, |
| 1335 normalized[i]->m_hostWildcard, normalized[i]->m_portWildcard}; | 1333 normalized[i]->m_hostWildcard, normalized[i]->m_portWildcard}; |
| 1336 EXPECT_TRUE(equalSources(a, b)); | 1334 EXPECT_TRUE(equalSources(a, b)); |
| 1337 } | 1335 } |
| 1338 } | 1336 } |
| 1339 } | 1337 } |
| 1340 | 1338 |
| 1341 } // namespace blink | 1339 } // namespace blink |
| OLD | NEW |