From 6d8e67ab9a228b8a723004c3eeb3d2118257bc9c Mon Sep 17 00:00:00 2001 From: Jaehyun Kim Date: Fri, 15 Sep 2023 11:39:11 +0900 Subject: [PATCH] Update unittest to fit changed error policy Change-Id: Ib0b7146443e53157cb89262b971601d2d37a34e4 Signed-off-by: Jaehyun Kim --- tests/gtest-wifi-manager-scan.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/gtest-wifi-manager-scan.cpp b/tests/gtest-wifi-manager-scan.cpp index 84087ce..7e8c09a 100755 --- a/tests/gtest-wifi-manager-scan.cpp +++ b/tests/gtest-wifi-manager-scan.cpp @@ -169,7 +169,7 @@ TEST_F(UtcWifiManagerScan, GetScanN4) EXPECT_EQ(WIFI_MANAGER_ERROR_NONE, wifi_manager_scan(handle, scan_finished_cb, nullptr)); mock_set_gdbus_error_msg(ERROR_PERMISSION_DENIED); testUtil.runMainLoop(); - EXPECT_EQ(WIFI_MANAGER_ERROR_OPERATION_FAILED, g_nCallbackRet); + EXPECT_EQ(WIFI_MANAGER_ERROR_PERMISSION_DENIED, g_nCallbackRet); } TEST_F(UtcWifiManagerScan, GetScanN5) @@ -229,7 +229,7 @@ TEST_F(UtcWifiManagerScan, GetSpecificN5) EXPECT_EQ(WIFI_MANAGER_ERROR_NONE, wifi_manager_scan_specific_ap(handle, &essid, scan_finished_cb, nullptr)); mock_set_gdbus_error_msg(ERROR_PERMISSION_DENIED); testUtil.runMainLoop(); - EXPECT_EQ(WIFI_MANAGER_ERROR_OPERATION_FAILED, g_nCallbackRet); + EXPECT_EQ(WIFI_MANAGER_ERROR_PERMISSION_DENIED, g_nCallbackRet); } TEST_F(UtcWifiManagerScan, GetSpecificN6) @@ -449,7 +449,7 @@ TEST_F(UtcWifiManagerScan, ScanSpecificApN3) EXPECT_EQ(WIFI_MANAGER_ERROR_NONE, wifi_manager_scan_specific_ap(handle, "TEMP_AP1", scan_finished_cb, nullptr)); mock_set_gdbus_error_msg(ERROR_SECURITY_RESTRICTED); testUtil.runMainLoop(); - EXPECT_EQ(WIFI_MANAGER_ERROR_OPERATION_FAILED, g_nCallbackRet); + EXPECT_EQ(WIFI_MANAGER_ERROR_PERMISSION_DENIED, g_nCallbackRet); } TEST_F(UtcWifiManagerScan, ScanSpecificApN4) -- 2.7.4