summaryrefslogtreecommitdiff
path: root/android/test-ipc.c
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2014-02-03 13:56:42 +0100
committerSzymon Janc <szymon.janc@tieto.com>2014-02-03 14:15:00 +0100
commit99052be6c2de398b0dce20a910c74cb658cb5015 (patch)
treefe7e8e9d38192034564afc1481ce1b53dedc2021 /android/test-ipc.c
parenteeae8babb51ed29ad8c13ea8aa6a94a9d3e6a48f (diff)
downloadbluez-99052be6c2de398b0dce20a910c74cb658cb5015.tar.gz
android/unit: Rename tests names to be more descriptive
Diffstat (limited to 'android/test-ipc.c')
-rw-r--r--android/test-ipc.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/android/test-ipc.c b/android/test-ipc.c
index 1fde61ba5..8af573987 100644
--- a/android/test-ipc.c
+++ b/android/test-ipc.c
@@ -374,7 +374,7 @@ static const struct hal_hdr test_cmd_1_hdr = {
.len = 0
};
-static const struct test_data test_cmd_1 = {
+static const struct test_data test_cmd_service_invalid_1 = {
.cmd = &test_cmd_1_hdr,
.cmd_size = sizeof(test_cmd_1_hdr),
.expected_signal = SIGTERM
@@ -384,7 +384,7 @@ static const struct ipc_handler cmd_handlers[] = {
{ test_cmd_handler, false, 0 }
};
-static const struct test_data test_cmd_2 = {
+static const struct test_data test_cmd_service_valid_1 = {
.cmd = &test_cmd_1_hdr,
.cmd_size = sizeof(test_cmd_1_hdr),
.service = 0,
@@ -392,7 +392,7 @@ static const struct test_data test_cmd_2 = {
.handlers_size = 1
};
-static const struct test_data test_cmd_3 = {
+static const struct test_data test_cmd_service_invalid_2 = {
.cmd = &test_cmd_1_hdr,
.cmd_size = sizeof(test_cmd_1_hdr),
.service = 0,
@@ -409,11 +409,12 @@ int main(int argc, char *argv[])
__btd_log_init("*", 0);
g_test_add_data_func("/android_ipc/init", &test_init_1, test_init);
- g_test_add_data_func("/android_ipc/send_cmd_1", &test_cmd_1, test_cmd);
- g_test_add_data_func("/android_ipc/send_cmd_2", &test_cmd_2,
- test_cmd_reg);
- g_test_add_data_func("/android_ipc/send_cmd_3", &test_cmd_3,
- test_cmd_reg_1);
+ g_test_add_data_func("/android_ipc/test_cmd_service_invalid_1",
+ &test_cmd_service_invalid_1, test_cmd);
+ g_test_add_data_func("/android_ipc/test_cmd_service_valid_1",
+ &test_cmd_service_valid_1, test_cmd_reg);
+ g_test_add_data_func("/android_ipc/test_cmd_service_invalid_2",
+ &test_cmd_service_invalid_2, test_cmd_reg_1);
return g_test_run();
}