Bruno Rocha | 7f9aea2 | 2011-09-12 14:31:24 -0700 | [diff] [blame^] | 1 | // Copyright (c) 2011 The Chromium OS 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 CHROMEOS_UPDATE_ENGINE_CERTIFICATE_CHECKER_MOCK_H_ |
| 6 | #define CHROMEOS_UPDATE_ENGINE_CERTIFICATE_CHECKER_MOCK_H_ |
| 7 | |
| 8 | #include <gmock/gmock.h> |
| 9 | #include <openssl/ssl.h> |
| 10 | |
| 11 | #include "update_engine/certificate_checker.h" |
| 12 | |
| 13 | namespace chromeos_update_engine { |
| 14 | |
| 15 | class OpenSSLWrapperMock : public OpenSSLWrapper { |
| 16 | public: |
| 17 | MOCK_CONST_METHOD4(GetCertificateDigest, |
| 18 | bool(X509_STORE_CTX* x509_ctx, |
| 19 | int* out_depth, |
| 20 | unsigned int* out_digest_length, |
| 21 | unsigned char* out_digest)); |
| 22 | }; |
| 23 | |
| 24 | } // namespace chromeos_update_engine |
| 25 | |
| 26 | #endif // CHROMEOS_UPDATE_ENGINE_CERTIFICATE_CHECKER_MOCK_H_ |