blob: c222066359a813648b0711c84593dab26db1e9a3 [file] [log] [blame]
Paul Stewart5baebb72013-03-14 11:43:29 -07001// 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 Chanc45688b2014-07-02 23:50:45 -07005#ifndef SHILL_MOCK_CERTIFICATE_FILE_H_
6#define SHILL_MOCK_CERTIFICATE_FILE_H_
Paul Stewart5baebb72013-03-14 11:43:29 -07007
Alex Vakulenko8a532292014-06-16 17:18:44 -07008#include <string>
9#include <vector>
10
Paul Stewart5baebb72013-03-14 11:43:29 -070011#include <gmock/gmock.h>
12
13#include "shill/certificate_file.h"
14
15namespace shill {
16
17class MockCertificateFile : public CertificateFile {
18 public:
19 MockCertificateFile();
Ben Chan5ea763b2014-08-13 11:07:54 -070020 ~MockCertificateFile() override;
Paul Stewart5baebb72013-03-14 11:43:29 -070021
22 MOCK_METHOD1(CreatePEMFromString,
Paul Stewart1e006c62015-06-16 12:29:06 -070023 base::FilePath(const std::string& pem_contents));
Paul Stewart0f9c9302013-06-14 15:41:28 -070024 MOCK_METHOD1(CreatePEMFromStrings,
Paul Stewart1e006c62015-06-16 12:29:06 -070025 base::FilePath(const std::vector<std::string>& pem_contents));
Paul Stewart5baebb72013-03-14 11:43:29 -070026
27 private:
28 DISALLOW_COPY_AND_ASSIGN(MockCertificateFile);
29};
30
31} // namespace shill
32
33#endif // SHILL_MOCK_CERTIFICATE_FILE_H_