| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "content/test/mock_ssl_host_state_delegate.h" | 5 #include "content/test/mock_ssl_host_state_delegate.h" |
| 6 | 6 |
| 7 namespace content { | 7 namespace content { |
| 8 | 8 |
| 9 MockSSLHostStateDelegate::MockSSLHostStateDelegate() {} | 9 MockSSLHostStateDelegate::MockSSLHostStateDelegate() {} |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 void MockSSLHostStateDelegate::HostRanInsecureContent(const std::string& host, | 34 void MockSSLHostStateDelegate::HostRanInsecureContent(const std::string& host, |
| 35 int pid) {} | 35 int pid) {} |
| 36 | 36 |
| 37 bool MockSSLHostStateDelegate::DidHostRunInsecureContent( | 37 bool MockSSLHostStateDelegate::DidHostRunInsecureContent( |
| 38 const std::string& host, | 38 const std::string& host, |
| 39 int pid) const { | 39 int pid) const { |
| 40 return false; | 40 return false; |
| 41 } | 41 } |
| 42 | 42 |
| 43 void MockSSLHostStateDelegate::HostRanContentWithCertificateErrors( |
| 44 const std::string& host, |
| 45 int pid) {} |
| 46 |
| 47 bool MockSSLHostStateDelegate::DidHostRunContentWithCertificateErrors( |
| 48 const std::string& host, |
| 49 int pid) const { |
| 50 return false; |
| 51 } |
| 52 |
| 43 void MockSSLHostStateDelegate::RevokeUserAllowExceptions( | 53 void MockSSLHostStateDelegate::RevokeUserAllowExceptions( |
| 44 const std::string& host) { | 54 const std::string& host) { |
| 45 exceptions_.erase(exceptions_.find(host)); | 55 exceptions_.erase(exceptions_.find(host)); |
| 46 } | 56 } |
| 47 | 57 |
| 48 bool MockSSLHostStateDelegate::HasAllowException( | 58 bool MockSSLHostStateDelegate::HasAllowException( |
| 49 const std::string& host) const { | 59 const std::string& host) const { |
| 50 return exceptions_.find(host) != exceptions_.end(); | 60 return exceptions_.find(host) != exceptions_.end(); |
| 51 } | 61 } |
| 52 | 62 |
| 53 } // namespace content | 63 } // namespace content |
| OLD | NEW |