summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlokilee73 <changjoo.lee@samsung.com>2018-08-21 05:30:04 (GMT)
committerlokilee73 <changjoo.lee@samsung.com>2018-08-21 05:30:24 (GMT)
commit3df4cb828e94d86a76a8af1858b4c0a348d2a40b (patch)
tree29b4dc6800125bc87dadbe456155fd8d37be8573
parent7abc1bb623469add467cb771ca347f2b06027d8b (diff)
downloadlibdevice-node-3df4cb828e94d86a76a8af1858b4c0a348d2a40b.zip
libdevice-node-3df4cb828e94d86a76a8af1858b4c0a348d2a40b.tar.gz
libdevice-node-3df4cb828e94d86a76a8af1858b4c0a348d2a40b.tar.bz2
Rename deprecated function, updated_cb for battery, thermal and extconsubmit/tizen/20180821.082124accepted/tizen/unified/20180821.160748refs/changes/23/187223/1
Change-Id: I92d16c3233894a5e662126eee32bdc5fdce5a890 Signed-off-by: lokilee73 <changjoo.lee@samsung.com>
-rwxr-xr-xunittest/device_haltests.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/unittest/device_haltests.cpp b/unittest/device_haltests.cpp
index 175049f..9d0cb37 100755
--- a/unittest/device_haltests.cpp
+++ b/unittest/device_haltests.cpp
@@ -221,7 +221,7 @@ TEST_F(BATTERYHalTest, InitP)
EXPECT_EQ(ret, 0) << "Fail to open battery device(" << ret << ")";
}
-static void updated_cb(struct battery_info *info, void *data)
+static void battery_updated_cb(struct battery_info *info, void *data)
{
}
@@ -237,7 +237,7 @@ TEST_F(BATTERYHalTest, RegisterChangedEventP)
cout << "There is no function for register_changed_event" << endl;
return;
}
- ret = battery_dev->register_changed_event(updated_cb, NULL);
+ ret = battery_dev->register_changed_event(battery_updated_cb, NULL);
EXPECT_EQ(ret, 0) << "Fail to register_changed_event (" << ret << ")";
}
@@ -250,7 +250,7 @@ TEST_F(BATTERYHalTest, UnregisterChangedEventP)
cout << "There is no function for unregister_changed_event" << endl;
return;
}
- battery_dev->unregister_changed_event(updated_cb);
+ battery_dev->unregister_changed_event(battery_updated_cb);
}
TEST_F(BATTERYHalTest, GetCurrentStateP)
@@ -264,7 +264,7 @@ TEST_F(BATTERYHalTest, GetCurrentStateP)
cout << "There is no function for get_current_state" << endl;
return;
}
- ret = battery_dev->get_current_state(updated_cb, NULL);
+ ret = battery_dev->get_current_state(battery_updated_cb, NULL);
EXPECT_EQ(ret, 0) << "Fail to get_current_state (" << ret << ")";
}
@@ -550,7 +550,7 @@ TEST_F(EXTCONHalTest, InitP)
EXPECT_EQ(ret, 0) << "Fail to open extcon device(" << ret << ")";
}
-static void updated_cb(struct connection_info *info, void *data)
+static void extcon_updated_cb(struct connection_info *info, void *data)
{
}
@@ -563,7 +563,7 @@ TEST_F(EXTCONHalTest, RegisterChangedEventP)
cout << "There is no function for register_changed_event" << endl;
return;
}
- ret = ext_dev->register_changed_event(updated_cb, NULL);
+ ret = ext_dev->register_changed_event(extcon_updated_cb, NULL);
EXPECT_EQ(ret, 0) << "Fail to register_changed_event (" << ret << ")";
}
@@ -573,7 +573,7 @@ TEST_F(EXTCONHalTest, UnregisterChangedEventP)
cout << "There is no function for unregister_changed_event" << endl;
return;
}
- ext_dev->unregister_changed_event(updated_cb);
+ ext_dev->unregister_changed_event(extcon_updated_cb);
}
TEST_F(EXTCONHalTest, GetCurrentStateP)
@@ -584,7 +584,7 @@ TEST_F(EXTCONHalTest, GetCurrentStateP)
cout << "There is no function for unregister_changed_event" << endl;
return;
}
- ret = ext_dev->get_current_state(updated_cb, NULL);
+ ret = ext_dev->get_current_state(extcon_updated_cb, NULL);
EXPECT_EQ(ret, 0) << "Fail to unregister_changed_event (" << ret << ")";
}
@@ -764,7 +764,7 @@ TEST_F(THERMALHalTest, GetStateP)
EXPECT_EQ(ret, 0) << "Fail to get_state (" << ret << ")";
}
-static void updated_cb(struct thermal_info *info, void *data)
+static void thermal_updated_cb(struct thermal_info *info, void *data)
{
}
@@ -777,7 +777,7 @@ TEST_F(THERMALHalTest, RegisterChangedEventP)
cout << "There is no function for register_changed_event" << endl;
return;
}
- ret = thermal_dev->register_changed_event(updated_cb, NULL);
+ ret = thermal_dev->register_changed_event(thermal_updated_cb, NULL);
EXPECT_EQ(ret, 0) << "Fail to register_changed_event (" << ret << ")";
}
@@ -787,7 +787,7 @@ TEST_F(THERMALHalTest, UnregisterChangedEventP)
cout << "There is no function for unregister_changed_event" << endl;
return;
}
- thermal_dev->unregister_changed_event(updated_cb);
+ thermal_dev->unregister_changed_event(thermal_updated_cb);
}
TEST_F(THERMALHalTest, DeinitP)