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 | |
Ben Chan | c45688b | 2014-07-02 23:50:45 -0700 | [diff] [blame] | 5 | #ifndef SHILL_MOCK_CERTIFICATE_FILE_H_ |
| 6 | #define SHILL_MOCK_CERTIFICATE_FILE_H_ |
Paul Stewart | 5baebb7 | 2013-03-14 11:43:29 -0700 | [diff] [blame] | 7 | |
Alex Vakulenko | 8a53229 | 2014-06-16 17:18:44 -0700 | [diff] [blame] | 8 | #include <string> |
| 9 | #include <vector> |
| 10 | |
Paul Stewart | 5baebb7 | 2013-03-14 11:43:29 -0700 | [diff] [blame] | 11 | #include <gmock/gmock.h> |
| 12 | |
| 13 | #include "shill/certificate_file.h" |
| 14 | |
| 15 | namespace shill { |
| 16 | |
| 17 | class MockCertificateFile : public CertificateFile { |
| 18 | public: |
| 19 | MockCertificateFile(); |
Ben Chan | 5ea763b | 2014-08-13 11:07:54 -0700 | [diff] [blame] | 20 | ~MockCertificateFile() override; |
Paul Stewart | 5baebb7 | 2013-03-14 11:43:29 -0700 | [diff] [blame] | 21 | |
| 22 | MOCK_METHOD1(CreatePEMFromString, |
Paul Stewart | 1e006c6 | 2015-06-16 12:29:06 -0700 | [diff] [blame] | 23 | base::FilePath(const std::string& pem_contents)); |
Paul Stewart | 0f9c930 | 2013-06-14 15:41:28 -0700 | [diff] [blame] | 24 | MOCK_METHOD1(CreatePEMFromStrings, |
Paul Stewart | 1e006c6 | 2015-06-16 12:29:06 -0700 | [diff] [blame] | 25 | base::FilePath(const std::vector<std::string>& pem_contents)); |
Paul Stewart | 5baebb7 | 2013-03-14 11:43:29 -0700 | [diff] [blame] | 26 | |
| 27 | private: |
| 28 | DISALLOW_COPY_AND_ASSIGN(MockCertificateFile); |
| 29 | }; |
| 30 | |
| 31 | } // namespace shill |
| 32 | |
| 33 | #endif // SHILL_MOCK_CERTIFICATE_FILE_H_ |