From: hyunuk.tak Date: Mon, 30 May 2022 08:07:26 +0000 (+0900) Subject: Replace get with check X-Git-Tag: accepted/tizen/unified/20220914.164046~24 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F69%2F276669%2F1;p=platform%2Fcore%2Fapi%2Fthread.git Replace get with check Change-Id: Ifcbd2a7db14d25507fe42a8241f194fd28d379cf Signed-off-by: hyunuk.tak --- diff --git a/include/thread.h b/include/thread.h index 83e67ce..19a9853 100644 --- a/include/thread.h +++ b/include/thread.h @@ -559,7 +559,7 @@ int thread_br_get_preference(thread_route_info_h route, * * @see thread_external_route_foreach_cb() */ -int thread_br_get_stable(thread_route_info_h route, +int thread_br_check_stable(thread_route_info_h route, bool *is_stable); /** @@ -577,7 +577,7 @@ int thread_br_get_stable(thread_route_info_h route, * * @see thread_external_route_foreach_cb() */ -int thread_br_get_device_nexthop(thread_route_info_h route, +int thread_br_check_device_nexthop(thread_route_info_h route, bool *is_device_nexthop); /** diff --git a/src/thread-br.c b/src/thread-br.c index c8fb303..f15fa2e 100644 --- a/src/thread-br.c +++ b/src/thread-br.c @@ -327,7 +327,7 @@ int thread_br_get_preference(thread_route_info_h route, return THREAD_ERROR_NONE; } -int thread_br_get_stable(thread_route_info_h route, +int thread_br_check_stable(thread_route_info_h route, bool *is_stable) { FUNC_ENTRY; @@ -343,7 +343,7 @@ int thread_br_get_stable(thread_route_info_h route, return THREAD_ERROR_NONE; } -int thread_br_get_device_nexthop(thread_route_info_h route, +int thread_br_check_device_nexthop(thread_route_info_h route, bool *is_device_nexthop) { FUNC_ENTRY; diff --git a/tests/unittest/thread-unittest-br.cpp b/tests/unittest/thread-unittest-br.cpp index 93789b0..4e0cdca 100644 --- a/tests/unittest/thread-unittest-br.cpp +++ b/tests/unittest/thread-unittest-br.cpp @@ -81,13 +81,13 @@ public: case RouteInfo::kStable: { bool isStable; - EXPECT_EQ(THREAD_ERROR_NONE, thread_br_get_stable(route_info, &isStable)); + EXPECT_EQ(THREAD_ERROR_NONE, thread_br_check_stable(route_info, &isStable)); } break; case RouteInfo::kDeviceNexthop: { bool isDeviceNexthop; - EXPECT_EQ(THREAD_ERROR_NONE, thread_br_get_device_nexthop(route_info, &isDeviceNexthop)); + EXPECT_EQ(THREAD_ERROR_NONE, thread_br_check_device_nexthop(route_info, &isDeviceNexthop)); } break; default: @@ -237,7 +237,7 @@ TEST_F(ThreadBRTest, BRGetPreferenceErrorNone) GUINT_TO_POINTER(static_cast(RouteInfo::kPreference)))); } -TEST_F(ThreadBRTest, BRGetStableErrorNone) +TEST_F(ThreadBRTest, BRCheckStableErrorNone) { EXPECT_EQ(THREAD_ERROR_NONE, thread_enable(&instance)); EXPECT_EQ(THREAD_ERROR_NONE, thread_br_enable(instance)); @@ -246,7 +246,7 @@ TEST_F(ThreadBRTest, BRGetStableErrorNone) GUINT_TO_POINTER(static_cast(RouteInfo::kStable)))); } -TEST_F(ThreadBRTest, BRGetDeviceNexthopErrorNone) +TEST_F(ThreadBRTest, BRCheckDeviceNexthopErrorNone) { EXPECT_EQ(THREAD_ERROR_NONE, thread_enable(&instance)); EXPECT_EQ(THREAD_ERROR_NONE, thread_br_enable(instance));