Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(692)

Side by Side Diff: components/cast_certificate/cast_cert_validator_test_helpers.h

Issue 2050983002: Cast device revocation checking. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (Rebase only) Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 #ifndef COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_TEST_HELPERS_H_ 5 #ifndef COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_TEST_HELPERS_H_
6 #define COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_TEST_HELPERS_H_ 6 #define COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_TEST_HELPERS_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 17 matching lines...) Expand all
28 28
29 // RSASSA PKCS#1 v1.5 with SHA256. 29 // RSASSA PKCS#1 v1.5 with SHA256.
30 std::string signature_sha256; 30 std::string signature_sha256;
31 }; 31 };
32 32
33 // Reads a PEM file that contains "MESSAGE", "SIGNATURE SHA1" and 33 // Reads a PEM file that contains "MESSAGE", "SIGNATURE SHA1" and
34 // "SIGNATURE SHA256" blocks. 34 // "SIGNATURE SHA256" blocks.
35 // |file_name| should be relative to //components/test/data/cast_certificate 35 // |file_name| should be relative to //components/test/data/cast_certificate
36 SignatureTestData ReadSignatureTestData(const base::StringPiece& file_name); 36 SignatureTestData ReadSignatureTestData(const base::StringPiece& file_name);
37 37
38 // Reads test data file.
39 // |file_name| should be relative to //components/test/data/cast_certificate
40 std::string ReadFromFile(const base::StringPiece& file_name);
41
38 } // namespace testing 42 } // namespace testing
39 43
40 } // namespace cast_certificate 44 } // namespace cast_certificate
41 45
42 #endif // COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_TEST_HELPERS_H_ 46 #endif // COMPONENTS_CAST_CERTIFICATE_CAST_CERT_VALIDATOR_TEST_HELPERS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698