blob: ea69639f9d63e471ca9b82324d37210e011af020 [file] [log] [blame]
// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MOCK_SUPPLICANT_INTERFACE_PROXY_H_
#define MOCK_SUPPLICANT_INTERFACE_PROXY_H_
#include <gmock/gmock.h>
#include "shill/supplicant_interface_proxy_interface.h"
namespace shill {
class MockSupplicantInterfaceProxy : public SupplicantInterfaceProxyInterface {
public:
explicit MockSupplicantInterfaceProxy(const WiFiRefPtr &wifi) :
wifi_(wifi) {}
virtual ~MockSupplicantInterfaceProxy() {}
MOCK_METHOD1(AddNetwork, ::DBus::Path(
const std::map<std::string, ::DBus::Variant> &args));
MOCK_METHOD1(FlushBSS, void(const uint32_t &age));
MOCK_METHOD0(RemoveAllNetworks, void());
MOCK_METHOD1(Scan,
void(const std::map<std::string, ::DBus::Variant> &args));
MOCK_METHOD1(SelectNetwork, void(const ::DBus::Path &network));
private:
// wifi_ is not used explicitly. but its presence here tests that
// WiFi::Stop properly removes cyclic references.
WiFiRefPtr wifi_;
DISALLOW_COPY_AND_ASSIGN(MockSupplicantInterfaceProxy);
};
} // namespace shill
#endif // MOCK_SUPPLICANT_INTERFACE_PROXY_H_