From 794f0f2ef698ba44e2e11f5fd9251e683f28b5cb Mon Sep 17 00:00:00 2001 From: "hyunuk.tak" Date: Mon, 30 May 2022 17:07:26 +0900 Subject: [PATCH] Replace get with check Change-Id: Ifcbd2a7db14d25507fe42a8241f194fd28d379cf Signed-off-by: hyunuk.tak --- include/thread.h | 4 ++-- src/thread-br.c | 4 ++-- tests/unittest/thread-unittest-br.cpp | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) 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)); -- 2.7.4