Replace get with check 69/276669/1
authorhyunuk.tak <hyunuk.tak@samsung.com>
Mon, 30 May 2022 08:07:26 +0000 (17:07 +0900)
committerhyunuk.tak <hyunuk.tak@samsung.com>
Thu, 23 Jun 2022 02:22:06 +0000 (11:22 +0900)
Change-Id: Ifcbd2a7db14d25507fe42a8241f194fd28d379cf
Signed-off-by: hyunuk.tak <hyunuk.tak@samsung.com>
include/thread.h
src/thread-br.c
tests/unittest/thread-unittest-br.cpp

index 83e67ce..19a9853 100644 (file)
@@ -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);
 
 /**
index c8fb303..f15fa2e 100644 (file)
@@ -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;
index 93789b0..4e0cdca 100644 (file)
@@ -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<guint>(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<guint>(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));