blob: 788c8e90d938ca43a11d2a6afa1ee5f5538c48a4 [file] [log] [blame]
mukesh agrawal31950242011-07-14 11:53:38 -07001// 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 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));
mukesh agrawal0ed0f2e2011-12-05 20:36:17 +000026 MOCK_METHOD0(Disconnect, void());
mukesh agrawal31950242011-07-14 11:53:38 -070027 MOCK_METHOD1(FlushBSS, void(const uint32_t &age));
28 MOCK_METHOD0(RemoveAllNetworks, void());
mukesh agrawal15908392011-11-16 18:29:25 +000029 MOCK_METHOD1(RemoveNetwork, void(const ::DBus::Path &network));
mukesh agrawal31950242011-07-14 11:53:38 -070030 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 Petkovef34f182011-08-26 14:14:40 -070035 // wifi_ is not used explicitly but its presence here tests that WiFi::Stop
36 // properly removes cyclic references.
mukesh agrawal31950242011-07-14 11:53:38 -070037 WiFiRefPtr wifi_;
Darin Petkovef34f182011-08-26 14:14:40 -070038
mukesh agrawal31950242011-07-14 11:53:38 -070039 DISALLOW_COPY_AND_ASSIGN(MockSupplicantInterfaceProxy);
40};
41
42} // namespace shill
43
44#endif // MOCK_SUPPLICANT_INTERFACE_PROXY_H_