| 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/CSPSource.h" | 5 #include "core/frame/csp/CSPSource.h" |
| 6 | 6 |
| 7 #include "core/dom/Document.h" | 7 #include "core/dom/Document.h" |
| 8 #include "core/frame/csp/ContentSecurityPolicy.h" | 8 #include "core/frame/csp/ContentSecurityPolicy.h" |
| 9 #include "platform/network/ResourceRequest.h" | 9 #include "platform/loader/fetch/ResourceRequest.h" |
| 10 #include "platform/weborigin/KURL.h" | 10 #include "platform/weborigin/KURL.h" |
| 11 #include "platform/weborigin/SecurityOrigin.h" | 11 #include "platform/weborigin/SecurityOrigin.h" |
| 12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 class CSPSourceTest : public ::testing::Test { | 16 class CSPSourceTest : public ::testing::Test { |
| 17 public: | 17 public: |
| 18 CSPSourceTest() : csp(ContentSecurityPolicy::create()) {} | 18 CSPSourceTest() : csp(ContentSecurityPolicy::create()) {} |
| 19 | 19 |
| (...skipping 890 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 910 normalized = B->intersect(A); | 910 normalized = B->intersect(A); |
| 911 Source intersectBA = { | 911 Source intersectBA = { |
| 912 normalized->m_scheme, normalized->m_host, | 912 normalized->m_scheme, normalized->m_host, |
| 913 normalized->m_path, normalized->m_port, | 913 normalized->m_path, normalized->m_port, |
| 914 normalized->m_hostWildcard, normalized->m_portWildcard}; | 914 normalized->m_hostWildcard, normalized->m_portWildcard}; |
| 915 EXPECT_TRUE(equalSources(intersectBA, test.normalized)); | 915 EXPECT_TRUE(equalSources(intersectBA, test.normalized)); |
| 916 } | 916 } |
| 917 } | 917 } |
| 918 | 918 |
| 919 } // namespace blink | 919 } // namespace blink |
| OLD | NEW |