blob: fe12e858c65abe0cc55862392d08bbddf5c9ae87 [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
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
12namespace shill {
13
14class MockCertificateFile : public CertificateFile {
15 public:
16 MockCertificateFile();
17 virtual ~MockCertificateFile();
18
19 MOCK_METHOD1(CreatePEMFromString,
20 base::FilePath(const std::string &pem_contents));
Paul Stewart0f9c9302013-06-14 15:41:28 -070021 MOCK_METHOD1(CreatePEMFromStrings,
22 base::FilePath(const std::vector<std::string> &pem_contents));
Paul Stewart5baebb72013-03-14 11:43:29 -070023
24 private:
25 DISALLOW_COPY_AND_ASSIGN(MockCertificateFile);
26};
27
28} // namespace shill
29
30#endif // SHILL_MOCK_CERTIFICATE_FILE_H_