Roll src/third_party/WebKit d9c6159:8139f33 (svn 201974:201975)
[chromium-blink-merge.git] / extensions / common / cast / cast_cert_validator.cc
blobcdd803aecf4ad2e75e44b3771eabef33b0b9c0d7
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"
9 namespace extensions {
10 namespace api {
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,
24 int in_error_code)
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(
33 keys, signature);
36 } // namespace cast_crypto
37 } // namespace api
38 } // namespace extensions