Paul Stewart | 5baebb7 | 2013-03-14 11:43:29 -0700 | [diff] [blame] | 1 | // Copyright (c) 2013 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 SHILL_MOCK_CERTFICATE_FILE_H_ |
| 6 | #define SHILL_MOCK_CERTFICATE_FILE_H_ |
| 7 | |
| 8 | #include <gmock/gmock.h> |
| 9 | |
| 10 | #include "shill/certificate_file.h" |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class MockCertificateFile : public CertificateFile { |
| 15 | public: |
| 16 | MockCertificateFile(); |
| 17 | virtual ~MockCertificateFile(); |
| 18 | |
| 19 | MOCK_METHOD1(CreatePEMFromString, |
| 20 | base::FilePath(const std::string &pem_contents)); |
Paul Stewart | 0f9c930 | 2013-06-14 15:41:28 -0700 | [diff] [blame] | 21 | MOCK_METHOD1(CreatePEMFromStrings, |
| 22 | base::FilePath(const std::vector<std::string> &pem_contents)); |
Paul Stewart | 5baebb7 | 2013-03-14 11:43:29 -0700 | [diff] [blame] | 23 | |
| 24 | private: |
| 25 | DISALLOW_COPY_AND_ASSIGN(MockCertificateFile); |
| 26 | }; |
| 27 | |
| 28 | } // namespace shill |
| 29 | |
| 30 | #endif // SHILL_MOCK_CERTIFICATE_FILE_H_ |