blob: 5986714e509bc304383f06ad7c1509679d60883a [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
8#include "shill/eap_credentials.h"
9
10#include <gmock/gmock.h>
11
12namespace shill {
13
14class MockEapCredentials : public EapCredentials {
15 public:
16 MockEapCredentials();
17 virtual ~MockEapCredentials();
18
19 MOCK_CONST_METHOD0(IsConnectable, bool());
20 MOCK_CONST_METHOD0(IsConnectableUsingPassphrase, bool());
21 MOCK_METHOD2(Load, void(StoreInterface *store, const std::string &id));
22 MOCK_CONST_METHOD2(OutputConnectionMetrics,
23 void(Metrics *metrics, Technology::Identifier technology));
24 MOCK_CONST_METHOD4(PopulateSupplicantProperties, void(
25 CertificateFile *certificate_file,
26 NSS *nss,
27 const std::vector<char> nss_identifier,
28 std::map<std::string, DBus::Variant> *params));
29 MOCK_CONST_METHOD1(PopulateWiMaxProperties, void(KeyValueStore *params));
30 MOCK_CONST_METHOD3(Save, void(
31 StoreInterface *store, const std::string &id, bool save_credentials));
32 MOCK_METHOD0(Reset, void());
mukesh agrawalbebf1b82013-04-23 15:06:33 -070033 MOCK_METHOD2(SetKeyManagement, bool(const std::string &key_management,
Paul Stewartc43cbbe2013-04-11 06:29:30 -070034 Error *error));
35 MOCK_CONST_METHOD0(identity, const std::string &());
36 MOCK_CONST_METHOD0(key_management, const std::string &());
37 MOCK_METHOD1(set_password, void(const std::string &password));
Paul Stewart11c224b2013-10-22 19:04:40 -070038 MOCK_CONST_METHOD0(pin, const std::string &());
Paul Stewartc43cbbe2013-04-11 06:29:30 -070039
40 private:
41 std::string kDefaultKeyManagement;
42
43 DISALLOW_COPY_AND_ASSIGN(MockEapCredentials);
44};
45
46} // namespace shill
47
48#endif // SHILL_MOCK_EAP_CREDENTIALS_H_