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_MODE_CONTROLLER_H_ 18 #define MOCK_WIFI_MODE_CONTROLLER_H_ 19 20 #include <gmock/gmock.h> 21 22 #include "wifi_mode_controller.h" 23 24 namespace android { 25 namespace hardware { 26 namespace wifi { 27 namespace V1_5 { 28 namespace implementation { 29 namespace mode_controller { 30 31 class MockWifiModeController : public WifiModeController { 32 public: 33 MockWifiModeController(); 34 MOCK_METHOD0(initialize, bool()); 35 MOCK_METHOD1(changeFirmwareMode, bool(IfaceType)); 36 MOCK_METHOD1(isFirmwareModeChangeNeeded, bool(IfaceType)); 37 MOCK_METHOD0(deinitialize, bool()); 38 }; 39 } // namespace mode_controller 40 } // namespace implementation 41 } // namespace V1_5 42 } // namespace wifi 43 } // namespace hardware 44 } // namespace android 45 46 #endif // MOCK_WIFI_MODE_CONTROLLER_H_ 47