mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 1 | // Copyright (c) 2011 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 MOCK_SUPPLICANT_INTERFACE_PROXY_H_ |
| 6 | #define MOCK_SUPPLICANT_INTERFACE_PROXY_H_ |
| 7 | |
Hristo Stefanov | ed2c28c | 2011-11-29 15:37:30 -0800 | [diff] [blame] | 8 | #include <map> |
| 9 | #include <string> |
| 10 | |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 11 | #include <base/basictypes.h> |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 12 | #include <gmock/gmock.h> |
| 13 | |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 14 | #include "shill/refptr_types.h" |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 15 | #include "shill/supplicant_interface_proxy_interface.h" |
| 16 | |
| 17 | namespace shill { |
| 18 | |
| 19 | class MockSupplicantInterfaceProxy : public SupplicantInterfaceProxyInterface { |
| 20 | public: |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 21 | explicit MockSupplicantInterfaceProxy(const WiFiRefPtr &wifi); |
| 22 | virtual ~MockSupplicantInterfaceProxy(); |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 23 | |
| 24 | MOCK_METHOD1(AddNetwork, ::DBus::Path( |
| 25 | const std::map<std::string, ::DBus::Variant> &args)); |
mukesh agrawal | 0ed0f2e | 2011-12-05 20:36:17 +0000 | [diff] [blame^] | 26 | MOCK_METHOD0(Disconnect, void()); |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 27 | MOCK_METHOD1(FlushBSS, void(const uint32_t &age)); |
| 28 | MOCK_METHOD0(RemoveAllNetworks, void()); |
mukesh agrawal | 1590839 | 2011-11-16 18:29:25 +0000 | [diff] [blame] | 29 | MOCK_METHOD1(RemoveNetwork, void(const ::DBus::Path &network)); |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 30 | MOCK_METHOD1(Scan, |
| 31 | void(const std::map<std::string, ::DBus::Variant> &args)); |
| 32 | MOCK_METHOD1(SelectNetwork, void(const ::DBus::Path &network)); |
| 33 | |
| 34 | private: |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 35 | // wifi_ is not used explicitly but its presence here tests that WiFi::Stop |
| 36 | // properly removes cyclic references. |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 37 | WiFiRefPtr wifi_; |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 38 | |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 39 | DISALLOW_COPY_AND_ASSIGN(MockSupplicantInterfaceProxy); |
| 40 | }; |
| 41 | |
| 42 | } // namespace shill |
| 43 | |
| 44 | #endif // MOCK_SUPPLICANT_INTERFACE_PROXY_H_ |