blob: abab7869c3d9019a28a47664389f504f69ccd0bd [file] [log] [blame]
// Copyright (c) 2013 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 SHILL_MOCK_WIFI_PROVIDER_H_
#define SHILL_MOCK_WIFI_PROVIDER_H_
#include <gmock/gmock.h>
#include "shill/wifi_endpoint.h"
#include "shill/wifi_provider.h"
namespace shill {
class MockWiFiProvider : public WiFiProvider {
public:
MockWiFiProvider();
virtual ~MockWiFiProvider();
MOCK_METHOD0(Start, void());
MOCK_METHOD0(Stop, void());
MOCK_METHOD1(CreateServicesFromProfile, void(const ProfileRefPtr &profile));
MOCK_METHOD2(GetService, WiFiServiceRefPtr(const KeyValueStore &args,
Error *error));
MOCK_METHOD1(FindServiceForEndpoint,
WiFiServiceRefPtr(const WiFiEndpointConstRefPtr &endpoint));
MOCK_METHOD1(OnEndpointAdded, void(const WiFiEndpointConstRefPtr &endpoint));
MOCK_METHOD1(OnEndpointRemoved,
WiFiServiceRefPtr(const WiFiEndpointConstRefPtr &endpoint));
MOCK_METHOD1(OnServiceUnloaded, bool(const WiFiServiceRefPtr &service));
MOCK_METHOD0(GetHiddenSSIDList, ByteArrays());
MOCK_METHOD2(FixupServiceEntries, void(StoreInterface *storage,
bool is_default_profile));
private:
DISALLOW_COPY_AND_ASSIGN(MockWiFiProvider);
};
} // namespace shill
#endif // SHILL_MOCK_WIFI_PROVIDER_H_