mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-01-16 22:21:21 +00:00
test/hfp: test alpha field in call waiting
This commit is contained in:
parent
f6e6c52dab
commit
da8e14c5aa
@ -573,6 +573,15 @@ TEST(HFPParser, HFP_CMD_AG_SENT_CLIP_INFORMATION_d){
|
||||
STRCMP_EQUAL("BlueKitchen GmbH", (const char *)context.line_buffer);
|
||||
}
|
||||
|
||||
TEST(HFPParser, HFP_CMD_AG_SENT_CALL_WAITING_INFORMATION){
|
||||
parse_hf("\r\n+CCWA: \"+123456789\",145,\"\",1,\"BlueKitchen GmbH\"\r\n");
|
||||
CHECK_EQUAL(HFP_CMD_AG_SENT_CALL_WAITING_NOTIFICATION_UPDATE, context.command);
|
||||
STRCMP_EQUAL("+123456789", context.bnip_number);
|
||||
CHECK_EQUAL(145, context.bnip_type);
|
||||
CHECK_EQUAL(true, context.clip_have_alpha);
|
||||
STRCMP_EQUAL("BlueKitchen GmbH", (const char *)context.line_buffer);
|
||||
}
|
||||
|
||||
int main (int argc, const char * argv[]){
|
||||
return CommandLineTestRunner::RunAllTests(argc, argv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user