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