blob: cabbb7435210fd0d4d957c98635971ebe3ec9d5f [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));
21 MOCK_METHOD1(CreateDERFromString,
22 base::FilePath(const std::string &pem_contents));
23
24 private:
25 DISALLOW_COPY_AND_ASSIGN(MockCertificateFile);
26};
27
28} // namespace shill
29
30#endif // SHILL_MOCK_CERTIFICATE_FILE_H_