blob: 97b604e0e05f2ca68b0617323e6a77c99da86295 [file] [log] [blame]
Paul Stewartc43cbbe2013-04-11 06:29:30 -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_EAP_CREDENTIALS_H_
6#define SHILL_MOCK_EAP_CREDENTIALS_H_
7
Alex Vakulenko8a532292014-06-16 17:18:44 -07008#include <map>
9#include <string>
10#include <vector>
11
Paul Stewartc43cbbe2013-04-11 06:29:30 -070012#include "shill/eap_credentials.h"
13
14#include <gmock/gmock.h>
15
16namespace shill {
17
18class MockEapCredentials : public EapCredentials {
19 public:
20 MockEapCredentials();
Ben Chan5ea763b2014-08-13 11:07:54 -070021 ~MockEapCredentials() override;
Paul Stewartc43cbbe2013-04-11 06:29:30 -070022
23 MOCK_CONST_METHOD0(IsConnectable, bool());
24 MOCK_CONST_METHOD0(IsConnectableUsingPassphrase, bool());
25 MOCK_METHOD2(Load, void(StoreInterface *store, const std::string &id));
26 MOCK_CONST_METHOD2(OutputConnectionMetrics,
27 void(Metrics *metrics, Technology::Identifier technology));
Paul Stewartc350e682014-06-19 15:44:30 -070028 MOCK_CONST_METHOD2(PopulateSupplicantProperties, void(
Paul Stewartc43cbbe2013-04-11 06:29:30 -070029 CertificateFile *certificate_file,
Paul Stewartc43cbbe2013-04-11 06:29:30 -070030 std::map<std::string, DBus::Variant> *params));
31 MOCK_CONST_METHOD1(PopulateWiMaxProperties, void(KeyValueStore *params));
32 MOCK_CONST_METHOD3(Save, void(
33 StoreInterface *store, const std::string &id, bool save_credentials));
34 MOCK_METHOD0(Reset, void());
mukesh agrawalbebf1b82013-04-23 15:06:33 -070035 MOCK_METHOD2(SetKeyManagement, bool(const std::string &key_management,
Paul Stewartc43cbbe2013-04-11 06:29:30 -070036 Error *error));
37 MOCK_CONST_METHOD0(identity, const std::string &());
38 MOCK_CONST_METHOD0(key_management, const std::string &());
39 MOCK_METHOD1(set_password, void(const std::string &password));
Paul Stewart11c224b2013-10-22 19:04:40 -070040 MOCK_CONST_METHOD0(pin, const std::string &());
Paul Stewartc43cbbe2013-04-11 06:29:30 -070041
42 private:
43 std::string kDefaultKeyManagement;
44
45 DISALLOW_COPY_AND_ASSIGN(MockEapCredentials);
46};
47
48} // namespace shill
49
50#endif // SHILL_MOCK_EAP_CREDENTIALS_H_