/proc/self/cwd/test/mocks/secret/mocks.cc
Line | Count | Source (jump to first uncovered line) |
1 | | #include "test/mocks/secret/mocks.h" |
2 | | |
3 | | #include "envoy/extensions/transport_sockets/tls/v3/cert.pb.h" |
4 | | |
5 | | #include "source/common/secret/secret_provider_impl.h" |
6 | | |
7 | | using testing::_; |
8 | | using testing::Invoke; |
9 | | |
10 | | namespace Envoy { |
11 | | namespace Secret { |
12 | | |
13 | 27.9k | MockSecretManager::MockSecretManager() { |
14 | 27.9k | ON_CALL(*this, createInlineTlsCertificateProvider(_)) |
15 | 27.9k | .WillByDefault(Invoke( |
16 | 27.9k | [](const envoy::extensions::transport_sockets::tls::v3::TlsCertificate& tls_certificate) { |
17 | 0 | return std::make_shared<Secret::TlsCertificateConfigProviderImpl>(tls_certificate); |
18 | 0 | })); |
19 | 27.9k | ON_CALL(*this, createInlineCertificateValidationContextProvider(_)) |
20 | 27.9k | .WillByDefault(Invoke( |
21 | 27.9k | [](const envoy::extensions::transport_sockets::tls::v3::CertificateValidationContext& |
22 | 27.9k | certificate_validation_context) { |
23 | 0 | return std::make_shared<Secret::CertificateValidationContextConfigProviderImpl>( |
24 | 0 | certificate_validation_context); |
25 | 0 | })); |
26 | 27.9k | } |
27 | | |
28 | 27.9k | MockSecretManager::~MockSecretManager() = default; |
29 | | |
30 | 0 | MockSecretCallbacks::MockSecretCallbacks() = default; |
31 | | |
32 | 0 | MockSecretCallbacks::~MockSecretCallbacks() = default; |
33 | | |
34 | | } // namespace Secret |
35 | | } // namespace Envoy |