1 /* 2 * Copyright (C) 2021 Huawei Device Co., Ltd. 3 * Licensed under the Apache License, Version 2.0 (the "License"); 4 * you may not use this file except in compliance with the License. 5 * You may obtain a copy of the License at 6 * 7 * http://www.apache.org/licenses/LICENSE-2.0 8 * 9 * Unless required by applicable law or agreed to in writing, software 10 * distributed under the License is distributed on an "AS IS" BASIS, 11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 * See the License for the specific language governing permissions and 13 * limitations under the License. 14 */ 15 #ifndef OHOS_WIFI_HAL_ADAPTER_TEST_H 16 #define OHOS_WIFI_HAL_ADAPTER_TEST_H 17 18 #include <gtest/gtest.h> 19 #include "wifi_hal_adapter.h" 20 #include "wifi_hal_vendor_interface.h" 21 #include "securec.h" 22 #include "wifi_common_def.h" 23 #include "wifi_log.h" 24 25 using namespace testing::ext; 26 27 namespace OHOS { 28 namespace Wifi { 29 class WifiHalAdapterTest : public testing::Test { 30 public: SetUpTestCase()31 static void SetUpTestCase() 32 {} TearDownTestCase()33 static void TearDownTestCase() 34 {} SetUp()35 virtual void SetUp() 36 {} TearDown()37 virtual void TearDown() 38 {} 39 }; 40 HWTEST_F(WifiHalAdapterTest, ReleaseWifiHalVendorInterfaceTest, TestSize.Level1) 41 { 42 ReleaseWifiHalVendorInterface(); 43 WifiHalVendorInterface *g_wifiHalVendorInterface = GetWifiHalVendorInterface(); 44 ReleaseWifiHalVendorInterface(); 45 EXPECT_TRUE(g_wifiHalVendorInterface != NULL); 46 } 47 } // namespace Wifi 48 } // namespace OHOS 49 #endif