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