1 // Copyright 2015 The Weave 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 LIBWEAVE_INCLUDE_WEAVE_PROVIDER_TEST_MOCK_WIFI_H_
6 #define LIBWEAVE_INCLUDE_WEAVE_PROVIDER_TEST_MOCK_WIFI_H_
7 
8 #include <weave/provider/network.h>
9 
10 #include <string>
11 
12 #include <gmock/gmock.h>
13 
14 namespace weave {
15 namespace provider {
16 namespace test {
17 
18 class MockWifi : public Wifi {
19  public:
20   MOCK_METHOD3(Connect,
21                void(const std::string&,
22                     const std::string&,
23                     const DoneCallback&));
24   MOCK_METHOD1(StartAccessPoint, void(const std::string&));
25   MOCK_METHOD0(StopAccessPoint, void());
26   MOCK_CONST_METHOD0(IsWifi24Supported, bool());
27   MOCK_CONST_METHOD0(IsWifi50Supported, bool());
28 };
29 
30 }  // namespace test
31 }  // namespace provider
32 }  // namespace weave
33 
34 #endif  // LIBWEAVE_INCLUDE_WEAVE_PROVIDER_TEST_MOCK_WIFI_H_
35