| // Copyright (c) 2012 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_WIFI_SERVICE_ |
| #define SHILL_MOCK_WIFI_SERVICE_ |
| |
| #include <string> |
| #include <vector> |
| |
| #include <gmock/gmock.h> |
| |
| #include "shill/wifi_service.h" |
| |
| namespace shill { |
| |
| class MockWiFiService : public WiFiService { |
| public: |
| MockWiFiService(ControlInterface *control_interface, |
| EventDispatcher *dispatcher, |
| Metrics *metrics, |
| Manager *manager, |
| const WiFiRefPtr &device, |
| const std::vector<uint8_t> &ssid, |
| const std::string &mode, |
| const std::string &security, |
| bool hidden_ssid); |
| virtual ~MockWiFiService(); |
| |
| MOCK_METHOD1(SetFailure, void(ConnectFailure failure)); |
| MOCK_METHOD1(SetFailureSilent, void(ConnectFailure failure)); |
| MOCK_METHOD1(SetState, void(ConnectState state)); |
| MOCK_METHOD2(AddEAPCertification, bool(const std::string &name, |
| size_t depth)); |
| MOCK_METHOD0(HasRecentConnectionIssues, bool()); |
| |
| private: |
| DISALLOW_COPY_AND_ASSIGN(MockWiFiService); |
| }; |
| |
| } // namespace shill |
| |
| #endif // SHILL_MOCK_WIFI_SERVICE_ |