blob: 0b1db16ca93e93a735ce03d69c2551f53753711d [file] [log] [blame]
// Copyright 2018 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_WIFI_MOCK_WIFI_PROVIDER_H_
#define SHILL_WIFI_MOCK_WIFI_PROVIDER_H_
#include <gmock/gmock.h>
#include "shill/wifi/wifi_endpoint.h"
#include "shill/wifi/wifi_provider.h"
namespace shill {
class MockWiFiProvider : public WiFiProvider {
public:
MockWiFiProvider();
~MockWiFiProvider() override;
MOCK_METHOD(void, Start, (), (override));
MOCK_METHOD(void, Stop, (), (override));
MOCK_METHOD(void,
CreateServicesFromProfile,
(const ProfileRefPtr&),
(override));
MOCK_METHOD(ServiceRefPtr,
FindSimilarService,
(const KeyValueStore&, Error*),
(const, override));
MOCK_METHOD(ServiceRefPtr,
CreateTemporaryService,
(const KeyValueStore&, Error*),
(override));
MOCK_METHOD(ServiceRefPtr,
GetService,
(const KeyValueStore&, Error*),
(override));
MOCK_METHOD(WiFiServiceRefPtr,
FindServiceForEndpoint,
(const WiFiEndpointConstRefPtr&),
(override));
MOCK_METHOD(void,
OnEndpointAdded,
(const WiFiEndpointConstRefPtr&),
(override));
MOCK_METHOD(WiFiServiceRefPtr,
OnEndpointRemoved,
(const WiFiEndpointConstRefPtr&),
(override));
MOCK_METHOD(void,
OnEndpointUpdated,
(const WiFiEndpointConstRefPtr&),
(override));
MOCK_METHOD(bool, OnServiceUnloaded, (const WiFiServiceRefPtr&), (override));
MOCK_METHOD(ByteArrays, GetHiddenSSIDList, (), (override));
MOCK_METHOD(int, NumAutoConnectableServices, (), (override));
private:
DISALLOW_COPY_AND_ASSIGN(MockWiFiProvider);
};
} // namespace shill
#endif // SHILL_WIFI_MOCK_WIFI_PROVIDER_H_