xref: /aosp_15_r20/external/openscreen/cast/common/certificate/testing/test_helpers.h (revision 3f982cf4871df8771c9d4abe6e9a6f8d829b2736)
1 // Copyright 2019 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.
4 
5 #ifndef CAST_COMMON_CERTIFICATE_TESTING_TEST_HELPERS_H_
6 #define CAST_COMMON_CERTIFICATE_TESTING_TEST_HELPERS_H_
7 
8 #include <openssl/evp.h>
9 
10 #include <string>
11 #include <vector>
12 
13 #include "absl/strings/string_view.h"
14 #include "cast/common/certificate/cast_cert_validator_internal.h"
15 #include "cast/common/certificate/types.h"
16 
17 namespace openscreen {
18 namespace cast {
19 namespace testing {
20 
21 class SignatureTestData {
22  public:
23   SignatureTestData();
24   ~SignatureTestData();
25 
26   ConstDataSpan message;
27   ConstDataSpan sha1;
28   ConstDataSpan sha256;
29 };
30 
31 SignatureTestData ReadSignatureTestData(absl::string_view filename);
32 
33 }  // namespace testing
34 }  // namespace cast
35 }  // namespace openscreen
36 
37 #endif  // CAST_COMMON_CERTIFICATE_TESTING_TEST_HELPERS_H_
38