mukesh agrawal | f202817 | 2012-03-13 14:20:22 -0700 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium OS Authors. All rights reserved. |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [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 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)); |
Paul Stewart | 66c8600 | 2012-01-30 18:00:52 -0800 | [diff] [blame] | 26 | MOCK_METHOD0(ClearCachedCredentials, void()); |
mukesh agrawal | 0ed0f2e | 2011-12-05 20:36:17 +0000 | [diff] [blame] | 27 | MOCK_METHOD0(Disconnect, void()); |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 28 | MOCK_METHOD1(FlushBSS, void(const uint32_t &age)); |
| 29 | MOCK_METHOD0(RemoveAllNetworks, void()); |
mukesh agrawal | 1590839 | 2011-11-16 18:29:25 +0000 | [diff] [blame] | 30 | MOCK_METHOD1(RemoveNetwork, void(const ::DBus::Path &network)); |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 31 | MOCK_METHOD1(Scan, |
| 32 | void(const std::map<std::string, ::DBus::Variant> &args)); |
| 33 | MOCK_METHOD1(SelectNetwork, void(const ::DBus::Path &network)); |
Paul Stewart | 2987dcf | 2012-01-30 15:47:42 -0800 | [diff] [blame] | 34 | MOCK_METHOD1(SetFastReauth, void(bool enabled)); |
mukesh agrawal | f202817 | 2012-03-13 14:20:22 -0700 | [diff] [blame] | 35 | MOCK_METHOD1(SetScanInterval, void(int32_t seconds)); |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 36 | |
| 37 | private: |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 38 | // wifi_ is not used explicitly but its presence here tests that WiFi::Stop |
| 39 | // properly removes cyclic references. |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 40 | WiFiRefPtr wifi_; |
Darin Petkov | ef34f18 | 2011-08-26 14:14:40 -0700 | [diff] [blame] | 41 | |
mukesh agrawal | 3195024 | 2011-07-14 11:53:38 -0700 | [diff] [blame] | 42 | DISALLOW_COPY_AND_ASSIGN(MockSupplicantInterfaceProxy); |
| 43 | }; |
| 44 | |
| 45 | } // namespace shill |
| 46 | |
| 47 | #endif // MOCK_SUPPLICANT_INTERFACE_PROXY_H_ |