OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "content/shell/test_runner/mock_web_document_subresource_filter.h" | 5 #include "content/shell/test_runner/mock_web_document_subresource_filter.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "third_party/WebKit/public/platform/WebURL.h" | 10 #include "third_party/WebKit/public/platform/WebURL.h" |
(...skipping 29 matching lines...) Expand all Loading... |
40 return base::EndsWith(path, suffix, | 40 return base::EndsWith(path, suffix, |
41 base::CompareCase::SENSITIVE); | 41 base::CompareCase::SENSITIVE); |
42 }) == disallowed_path_suffixes_.end() | 42 }) == disallowed_path_suffixes_.end() |
43 ? kAllow | 43 ? kAllow |
44 : kDisallow; | 44 : kDisallow; |
45 } | 45 } |
46 | 46 |
47 void MockWebDocumentSubresourceFilter::ReportDisallowedLoad() {} | 47 void MockWebDocumentSubresourceFilter::ReportDisallowedLoad() {} |
48 | 48 |
49 bool MockWebDocumentSubresourceFilter::ShouldLogToConsole() { | 49 bool MockWebDocumentSubresourceFilter::ShouldLogToConsole() { |
50 return false; | 50 return true; |
51 } | 51 } |
52 | 52 |
53 } // namespace test_runner | 53 } // namespace test_runner |
OLD | NEW |