10704ebd2Sopenharmony_ci/*
20704ebd2Sopenharmony_ci * Copyright (c) 2021 Huawei Device Co., Ltd.
30704ebd2Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
40704ebd2Sopenharmony_ci * you may not use this file except in compliance with the License.
50704ebd2Sopenharmony_ci * You may obtain a copy of the License at
60704ebd2Sopenharmony_ci *
70704ebd2Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
80704ebd2Sopenharmony_ci *
90704ebd2Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
100704ebd2Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
110704ebd2Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
120704ebd2Sopenharmony_ci * See the License for the specific language governing permissions and
130704ebd2Sopenharmony_ci * limitations under the License.
140704ebd2Sopenharmony_ci */
150704ebd2Sopenharmony_ci
160704ebd2Sopenharmony_ci#ifndef TEST_WIFI_UTILS_H
170704ebd2Sopenharmony_ci#define TEST_WIFI_UTILS_H
180704ebd2Sopenharmony_ci
190704ebd2Sopenharmony_ci#include "net_trans_common.h"
200704ebd2Sopenharmony_ci#include "wifi_device.h"
210704ebd2Sopenharmony_ci
220704ebd2Sopenharmony_ciclass WiFiUtils {
230704ebd2Sopenharmony_cipublic:
240704ebd2Sopenharmony_ci    static int EnableWifi();
250704ebd2Sopenharmony_ci    static int DisableWifi();
260704ebd2Sopenharmony_ci    static int ConnectTo(const std::string& ssid, const std::string& passwd);
270704ebd2Sopenharmony_ci    static int ConnectToNew(const std::string& ssid, const std::string& passwd);
280704ebd2Sopenharmony_ci    static int EnableThenConnect(const std::string& ssid, const std::string& passwd);
290704ebd2Sopenharmony_ci    static int DisableThenEnableAndConnect(int delaySeconds, const std::string& ssid, const std::string& passwd);
300704ebd2Sopenharmony_ci};
310704ebd2Sopenharmony_ci
320704ebd2Sopenharmony_ci#endif