OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 "extensions/browser/api/cast_channel/cast_auth_ica.h" | 5 #include "extensions/browser/api/cast_channel/cast_auth_ica.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/base64.h" | 9 #include "base/base64.h" |
10 #include "testing/gtest/include/gtest/gtest.h" | 10 #include "testing/gtest/include/gtest/gtest.h" |
11 | 11 |
12 namespace extensions { | 12 namespace extensions { |
13 | 13 |
14 namespace core_api { | 14 namespace api { |
15 | 15 |
16 namespace cast_channel { | 16 namespace cast_channel { |
17 | 17 |
18 namespace { | 18 namespace { |
19 | 19 |
20 static const net::SHA256HashValue kFingerprintValid1 = {{ | 20 static const net::SHA256HashValue kFingerprintValid1 = {{ |
21 0x52, 0x9D, 0x9C, 0xD6, 0x7F, 0xE5, 0xEB, 0x69, 0x8E, 0x70, 0xDD, 0x26, | 21 0x52, 0x9D, 0x9C, 0xD6, 0x7F, 0xE5, 0xEB, 0x69, 0x8E, 0x70, 0xDD, 0x26, |
22 0xD7, 0xD8, 0xF1, 0x26, 0x59, 0xF1, 0xE6, 0xE5, 0x23, 0x48, 0xBF, 0x6A, | 22 0xD7, 0xD8, 0xF1, 0x26, 0x59, 0xF1, 0xE6, 0xE5, 0x23, 0x48, 0xBF, 0x6A, |
23 0x5C, 0xF7, 0x16, 0xE1, 0x3F, 0x41, 0x0E, 0x73 | 23 0x5C, 0xF7, 0x16, 0xE1, 0x3F, 0x41, 0x0E, 0x73 |
24 }}; | 24 }}; |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 "LR6SyAwpjdrL+vlHMk3Gol6KQ98YpF0ghHnN3/FFW4ibvIwjmRbp+tUV3h8TRcCOjlXVGp" | 139 "LR6SyAwpjdrL+vlHMk3Gol6KQ98YpF0ghHnN3/FFW4ibvIwjmRbp+tUV3h8TRcCOjlXVGp" |
140 "bzPtNRRlTqfv7Rxm5YXkZMLmJJMZiTs5+o8FMRMTQZT4hRR3DQ+A/jofViyTGA=="; | 140 "bzPtNRRlTqfv7Rxm5YXkZMLmJJMZiTs5+o8FMRMTQZT4hRR3DQ+A/jofViyTGA=="; |
141 EXPECT_TRUE(SetTrustedCertificateAuthorities(keys, signature)); | 141 EXPECT_TRUE(SetTrustedCertificateAuthorities(keys, signature)); |
142 | 142 |
143 base::StringPiece result = GetDefaultTrustedICAPublicKey(); | 143 base::StringPiece result = GetDefaultTrustedICAPublicKey(); |
144 EXPECT_FALSE(result.empty()); | 144 EXPECT_FALSE(result.empty()); |
145 } | 145 } |
146 | 146 |
147 } // namespace cast_channel | 147 } // namespace cast_channel |
148 | 148 |
149 } // namespace core_api | 149 } // namespace api |
150 | 150 |
151 } // namespace extensions | 151 } // namespace extensions |
OLD | NEW |