blob: 3a44466e551b1b33a84e33ebfb36ca452dcf038f [file] [log] [blame]
mukesh agrawalf2028172012-03-13 14:20:22 -07001// Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
mukesh agrawal31950242011-07-14 11:53:38 -07002// 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 Stefanoved2c28c2011-11-29 15:37:30 -08008#include <map>
9#include <string>
10
Darin Petkovef34f182011-08-26 14:14:40 -070011#include <base/basictypes.h>
mukesh agrawal31950242011-07-14 11:53:38 -070012#include <gmock/gmock.h>
13
Darin Petkovef34f182011-08-26 14:14:40 -070014#include "shill/refptr_types.h"
mukesh agrawal31950242011-07-14 11:53:38 -070015#include "shill/supplicant_interface_proxy_interface.h"
16
17namespace shill {
18
19class MockSupplicantInterfaceProxy : public SupplicantInterfaceProxyInterface {
20 public:
Darin Petkovef34f182011-08-26 14:14:40 -070021 explicit MockSupplicantInterfaceProxy(const WiFiRefPtr &wifi);
22 virtual ~MockSupplicantInterfaceProxy();
mukesh agrawal31950242011-07-14 11:53:38 -070023
24 MOCK_METHOD1(AddNetwork, ::DBus::Path(
25 const std::map<std::string, ::DBus::Variant> &args));
Paul Stewart66c86002012-01-30 18:00:52 -080026 MOCK_METHOD0(ClearCachedCredentials, void());
mukesh agrawal0ed0f2e2011-12-05 20:36:17 +000027 MOCK_METHOD0(Disconnect, void());
mukesh agrawal31950242011-07-14 11:53:38 -070028 MOCK_METHOD1(FlushBSS, void(const uint32_t &age));
29 MOCK_METHOD0(RemoveAllNetworks, void());
mukesh agrawal15908392011-11-16 18:29:25 +000030 MOCK_METHOD1(RemoveNetwork, void(const ::DBus::Path &network));
mukesh agrawal31950242011-07-14 11:53:38 -070031 MOCK_METHOD1(Scan,
32 void(const std::map<std::string, ::DBus::Variant> &args));
33 MOCK_METHOD1(SelectNetwork, void(const ::DBus::Path &network));
Paul Stewart2987dcf2012-01-30 15:47:42 -080034 MOCK_METHOD1(SetFastReauth, void(bool enabled));
mukesh agrawalf2028172012-03-13 14:20:22 -070035 MOCK_METHOD1(SetScanInterval, void(int32_t seconds));
mukesh agrawal31950242011-07-14 11:53:38 -070036
37 private:
Darin Petkovef34f182011-08-26 14:14:40 -070038 // wifi_ is not used explicitly but its presence here tests that WiFi::Stop
39 // properly removes cyclic references.
mukesh agrawal31950242011-07-14 11:53:38 -070040 WiFiRefPtr wifi_;
Darin Petkovef34f182011-08-26 14:14:40 -070041
mukesh agrawal31950242011-07-14 11:53:38 -070042 DISALLOW_COPY_AND_ASSIGN(MockSupplicantInterfaceProxy);
43};
44
45} // namespace shill
46
47#endif // MOCK_SUPPLICANT_INTERFACE_PROXY_H_