Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
mukesh agrawal | 7ec7131 | 2011-11-10 02:08:26 +0000 | [diff] [blame] | 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_WIFI_SERVICE_ |
| 6 | #define SHILL_MOCK_WIFI_SERVICE_ |
| 7 | |
Hristo Stefanov | ed2c28c | 2011-11-29 15:37:30 -0800 | [diff] [blame] | 8 | #include <string> |
| 9 | #include <vector> |
| 10 | |
mukesh agrawal | 7ec7131 | 2011-11-10 02:08:26 +0000 | [diff] [blame] | 11 | #include <gmock/gmock.h> |
| 12 | |
| 13 | #include "shill/wifi_service.h" |
| 14 | |
| 15 | namespace shill { |
| 16 | |
| 17 | class MockWiFiService : public WiFiService { |
| 18 | public: |
| 19 | MockWiFiService(ControlInterface *control_interface, |
| 20 | EventDispatcher *dispatcher, |
Thieu Le | 3426c8f | 2012-01-11 17:35:11 -0800 | [diff] [blame] | 21 | Metrics *metrics, |
mukesh agrawal | 7ec7131 | 2011-11-10 02:08:26 +0000 | [diff] [blame] | 22 | Manager *manager, |
| 23 | const WiFiRefPtr &device, |
| 24 | const std::vector<uint8_t> &ssid, |
| 25 | const std::string &mode, |
| 26 | const std::string &security, |
| 27 | bool hidden_ssid); |
| 28 | virtual ~MockWiFiService(); |
| 29 | |
| 30 | MOCK_METHOD1(SetState, void(ConnectState state)); |
| 31 | |
| 32 | private: |
| 33 | DISALLOW_COPY_AND_ASSIGN(MockWiFiService); |
| 34 | }; |
| 35 | |
| 36 | } // namespace shill |
| 37 | |
| 38 | #endif // SHILL_MOCK_WIFI_SERVICE_ |