From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 4/8] unit/test-uhid: Add /uhid/command/feature_answer test
Date: Wed, 21 May 2014 18:01:05 +0300 [thread overview]
Message-ID: <1400684469-2693-4-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1400684469-2693-1-git-send-email-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
---
unit/test-uhid.c | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/unit/test-uhid.c b/unit/test-uhid.c
index 25216b8..b8bb3a4 100644
--- a/unit/test-uhid.c
+++ b/unit/test-uhid.c
@@ -231,6 +231,10 @@ static const struct uhid_event ev_destroy = {
.type = UHID_DESTROY,
};
+static const struct uhid_event ev_feature_answer = {
+ .type = UHID_FEATURE_ANSWER,
+};
+
static void test_client(gconstpointer data)
{
struct context *context = create_context(data);
@@ -241,6 +245,10 @@ static void test_client(gconstpointer data)
if (g_str_equal(context->data->test_name, "/uhid/command/destroy"))
bt_uhid_send(context->uhid, &ev_destroy);
+ if (g_str_equal(context->data->test_name,
+ "/uhid/command/feature_answer"))
+ bt_uhid_send(context->uhid, &ev_feature_answer);
+
execute_context(context);
}
@@ -250,6 +258,8 @@ int main(int argc, char *argv[])
define_test("/uhid/command/create", test_client, event(&ev_create));
define_test("/uhid/command/destroy", test_client, event(&ev_destroy));
+ define_test("/uhid/command/feature_answer", test_client,
+ event(&ev_feature_answer));
return g_test_run();
}
--
1.9.0
next prev parent reply other threads:[~2014-05-21 15:01 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-21 15:01 [PATCH BlueZ 1/8] shared/uhid: Add initial API Luiz Augusto von Dentz
2014-05-21 15:01 ` [PATCH BlueZ 2/8] unit/test-uhid: Add /uhid/command/create test Luiz Augusto von Dentz
2014-05-21 15:01 ` [PATCH BlueZ 3/8] unit/test-uhid: Add /uhid/command/destroy test Luiz Augusto von Dentz
2014-05-21 15:01 ` Luiz Augusto von Dentz [this message]
2014-05-21 15:01 ` [PATCH BlueZ 5/8] unit/test-uhid: Add /uhid/command/input test Luiz Augusto von Dentz
2014-05-21 15:01 ` [PATCH BlueZ 6/8] shared/uhid: Add implemetation of bt_uhid_register/bt_uhid_unregister Luiz Augusto von Dentz
2014-05-21 15:01 ` [PATCH BlueZ 7/8] unit/test-uhid: Add /uhid/event/output test Luiz Augusto von Dentz
2014-05-21 15:01 ` [PATCH BlueZ 8/8] unit/test-uhid: Add /uhid/event/feature test Luiz Augusto von Dentz
2014-05-23 13:51 ` [PATCH BlueZ 1/8] shared/uhid: Add initial API Luiz Augusto von Dentz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1400684469-2693-4-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).