• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2017 The Android Open Source Project
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *      http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
17 #ifndef MOCK_WIFI_LEGACY_HAL_H_
18 #define MOCK_WIFI_LEGACY_HAL_H_
19 
20 #include <gmock/gmock.h>
21 
22 #include "wifi_legacy_hal.h"
23 
24 namespace android {
25 namespace hardware {
26 namespace wifi {
27 namespace V1_2 {
28 namespace implementation {
29 namespace legacy_hal {
30 
31 class MockWifiLegacyHal : public WifiLegacyHal {
32    public:
33     MockWifiLegacyHal();
34     MOCK_METHOD0(initialize, wifi_error());
35     MOCK_METHOD0(start, wifi_error());
36     MOCK_METHOD2(stop, wifi_error(std::unique_lock<std::recursive_mutex>*,
37                                   const std::function<void()>&));
38     MOCK_METHOD2(setDfsFlag, wifi_error(const std::string&, bool));
39     MOCK_METHOD2(registerRadioModeChangeCallbackHandler,
40                  wifi_error(const std::string&,
41                             const on_radio_mode_change_callback&));
42     MOCK_METHOD2(nanRegisterCallbackHandlers,
43                  wifi_error(const std::string&, const NanCallbackHandlers&));
44     MOCK_METHOD2(nanDisableRequest,
45                  wifi_error(const std::string&, transaction_id));
46     MOCK_METHOD3(nanDataInterfaceDelete,
47                  wifi_error(const std::string&, transaction_id,
48                             const std::string&));
49 };
50 }  // namespace legacy_hal
51 }  // namespace implementation
52 }  // namespace V1_2
53 }  // namespace wifi
54 }  // namespace hardware
55 }  // namespace android
56 
57 #endif  // MOCK_WIFI_LEGACY_HAL_H_
58