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

Side by Side Diff: third_party/WebKit/Source/core/frame/csp/CSPSourceTest.cpp

Issue 2746113002: platform/loader: move network/Resource* to loader/fetch (Closed)
Patch Set: git rebase master Created 3 years, 9 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/csp/CSPSource.h ('k') | third_party/WebKit/Source/core/frame/csp/ContentSecurityPolicy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698