1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef UPDATE_ENGINE_MOCK_CERTIFICATE_CHECKER_H_
- #define UPDATE_ENGINE_MOCK_CERTIFICATE_CHECKER_H_
- #include <gmock/gmock.h>
- #include <openssl/ssl.h>
- #include "update_engine/certificate_checker.h"
- namespace chromeos_update_engine {
- class MockOpenSSLWrapper : public OpenSSLWrapper {
- public:
- MOCK_CONST_METHOD4(GetCertificateDigest,
- bool(X509_STORE_CTX* x509_ctx,
- int* out_depth,
- unsigned int* out_digest_length,
- uint8_t* out_digest));
- };
- }
- #endif
|