Paul Stewart | c43cbbe | 2013-04-11 06:29:30 -0700 | [diff] [blame] | 1 | // 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 Vakulenko | 8a53229 | 2014-06-16 17:18:44 -0700 | [diff] [blame] | 8 | #include <map> |
| 9 | #include <string> |
| 10 | #include <vector> |
| 11 | |
Paul Stewart | c43cbbe | 2013-04-11 06:29:30 -0700 | [diff] [blame] | 12 | #include "shill/eap_credentials.h" |
| 13 | |
| 14 | #include <gmock/gmock.h> |
| 15 | |
| 16 | namespace shill { |
| 17 | |
| 18 | class MockEapCredentials : public EapCredentials { |
| 19 | public: |
| 20 | MockEapCredentials(); |
| 21 | virtual ~MockEapCredentials(); |
| 22 | |
| 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)); |
| 28 | MOCK_CONST_METHOD4(PopulateSupplicantProperties, void( |
| 29 | CertificateFile *certificate_file, |
| 30 | NSS *nss, |
| 31 | const std::vector<char> nss_identifier, |
| 32 | std::map<std::string, DBus::Variant> *params)); |
| 33 | MOCK_CONST_METHOD1(PopulateWiMaxProperties, void(KeyValueStore *params)); |
| 34 | MOCK_CONST_METHOD3(Save, void( |
| 35 | StoreInterface *store, const std::string &id, bool save_credentials)); |
| 36 | MOCK_METHOD0(Reset, void()); |
mukesh agrawal | bebf1b8 | 2013-04-23 15:06:33 -0700 | [diff] [blame] | 37 | MOCK_METHOD2(SetKeyManagement, bool(const std::string &key_management, |
Paul Stewart | c43cbbe | 2013-04-11 06:29:30 -0700 | [diff] [blame] | 38 | Error *error)); |
| 39 | MOCK_CONST_METHOD0(identity, const std::string &()); |
| 40 | MOCK_CONST_METHOD0(key_management, const std::string &()); |
| 41 | MOCK_METHOD1(set_password, void(const std::string &password)); |
Paul Stewart | 11c224b | 2013-10-22 19:04:40 -0700 | [diff] [blame] | 42 | MOCK_CONST_METHOD0(pin, const std::string &()); |
Paul Stewart | c43cbbe | 2013-04-11 06:29:30 -0700 | [diff] [blame] | 43 | |
| 44 | private: |
| 45 | std::string kDefaultKeyManagement; |
| 46 | |
| 47 | DISALLOW_COPY_AND_ASSIGN(MockEapCredentials); |
| 48 | }; |
| 49 | |
| 50 | } // namespace shill |
| 51 | |
| 52 | #endif // SHILL_MOCK_EAP_CREDENTIALS_H_ |