1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "extensions/common/cast/cast_cert_validator.h"
7 #include "extensions/browser/api/cast_channel/cast_auth_ica.h"
11 namespace cast_crypto
{
13 VerificationResult::VerificationResult()
14 : VerificationResult("", ERROR_NONE
, 0) {
17 VerificationResult::VerificationResult(const std::string
& in_error_message
,
18 ErrorType in_error_type
)
19 : VerificationResult(in_error_message
, in_error_type
, 0) {
22 VerificationResult::VerificationResult(const std::string
& in_error_message
,
23 ErrorType in_error_type
,
25 : error_type(in_error_type
),
26 error_message(in_error_message
),
27 library_error_code(in_error_code
) {
30 bool SetTrustedCertificateAuthoritiesForTest(const std::string
& keys
,
31 const std::string
& signature
) {
32 return extensions::api::cast_channel::SetTrustedCertificateAuthorities(
36 } // namespace cast_crypto
38 } // namespace extensions