blob: c9944549b1a1966b1ec99d23fd778d020ad4a2b2 [file] [log] [blame]
// Copyright (c) 2013 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_MOCK_CERTIFICATE_FILE_H_
#define SHILL_MOCK_CERTIFICATE_FILE_H_
#include <string>
#include <vector>
#include <gmock/gmock.h>
#include "shill/certificate_file.h"
namespace shill {
class MockCertificateFile : public CertificateFile {
public:
MockCertificateFile();
~MockCertificateFile() override;
MOCK_METHOD1(CreatePEMFromString,
base::FilePath(const std::string &pem_contents));
MOCK_METHOD1(CreatePEMFromStrings,
base::FilePath(const std::vector<std::string> &pem_contents));
private:
DISALLOW_COPY_AND_ASSIGN(MockCertificateFile);
};
} // namespace shill
#endif // SHILL_MOCK_CERTIFICATE_FILE_H_