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 | |
Alex Deymo | 759c275 | 2014-03-17 21:09:36 -0700 | [diff] [blame] | 5 | #ifndef CHROMEOS_PLATFORM_UPDATE_ENGINE_CERTIFICATE_CHECKER_MOCK_H_ |
| 6 | #define CHROMEOS_PLATFORM_UPDATE_ENGINE_CERTIFICATE_CHECKER_MOCK_H_ |
Bruno Rocha | 7f9aea2 | 2011-09-12 14:31:24 -0700 | [diff] [blame] | 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 | |
Alex Deymo | 759c275 | 2014-03-17 21:09:36 -0700 | [diff] [blame] | 26 | #endif // CHROMEOS_PLATFORM_UPDATE_ENGINE_CERTIFICATE_CHECKER_MOCK_H_ |