blob: 97b604e0e05f2ca68b0617323e6a77c99da86295 [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_EAP_CREDENTIALS_H_
#define SHILL_MOCK_EAP_CREDENTIALS_H_
#include <map>
#include <string>
#include <vector>
#include "shill/eap_credentials.h"
#include <gmock/gmock.h>
namespace shill {
class MockEapCredentials : public EapCredentials {
public:
MockEapCredentials();
~MockEapCredentials() override;
MOCK_CONST_METHOD0(IsConnectable, bool());
MOCK_CONST_METHOD0(IsConnectableUsingPassphrase, bool());
MOCK_METHOD2(Load, void(StoreInterface *store, const std::string &id));
MOCK_CONST_METHOD2(OutputConnectionMetrics,
void(Metrics *metrics, Technology::Identifier technology));
MOCK_CONST_METHOD2(PopulateSupplicantProperties, void(
CertificateFile *certificate_file,
std::map<std::string, DBus::Variant> *params));
MOCK_CONST_METHOD1(PopulateWiMaxProperties, void(KeyValueStore *params));
MOCK_CONST_METHOD3(Save, void(
StoreInterface *store, const std::string &id, bool save_credentials));
MOCK_METHOD0(Reset, void());
MOCK_METHOD2(SetKeyManagement, bool(const std::string &key_management,
Error *error));
MOCK_CONST_METHOD0(identity, const std::string &());
MOCK_CONST_METHOD0(key_management, const std::string &());
MOCK_METHOD1(set_password, void(const std::string &password));
MOCK_CONST_METHOD0(pin, const std::string &());
private:
std::string kDefaultKeyManagement;
DISALLOW_COPY_AND_ASSIGN(MockEapCredentials);
};
} // namespace shill
#endif // SHILL_MOCK_EAP_CREDENTIALS_H_