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 | |
| 8 | #include "shill/eap_credentials.h" |
| 9 | |
| 10 | #include <gmock/gmock.h> |
| 11 | |
| 12 | namespace shill { |
| 13 | |
| 14 | class 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 agrawal | bebf1b8 | 2013-04-23 15:06:33 -0700 | [diff] [blame] | 33 | MOCK_METHOD2(SetKeyManagement, bool(const std::string &key_management, |
Paul Stewart | c43cbbe | 2013-04-11 06:29:30 -0700 | [diff] [blame] | 34 | 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)); |
| 38 | |
| 39 | private: |
| 40 | std::string kDefaultKeyManagement; |
| 41 | |
| 42 | DISALLOW_COPY_AND_ASSIGN(MockEapCredentials); |
| 43 | }; |
| 44 | |
| 45 | } // namespace shill |
| 46 | |
| 47 | #endif // SHILL_MOCK_EAP_CREDENTIALS_H_ |