Navigation Menu

Skip to content

Commit

Permalink
[unit] Added core_tag_t4 test. JB#46767
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Sep 6, 2019
1 parent 844f8b2 commit eead4c4
Show file tree
Hide file tree
Showing 5 changed files with 593 additions and 0 deletions.
1 change: 1 addition & 0 deletions unit/Makefile
Expand Up @@ -13,6 +13,7 @@ all:
@$(MAKE) -C core_plugins $*
@$(MAKE) -C core_tag $*
@$(MAKE) -C core_tag_t2 $*
@$(MAKE) -C core_tag_t4 $*
@$(MAKE) -C core_target $*
@$(MAKE) -C core_tlv $*
@$(MAKE) -C core_util $*
Expand Down
4 changes: 4 additions & 0 deletions unit/core_adapter/test_core_adapter.c
Expand Up @@ -223,6 +223,8 @@ test_null(
g_assert(!nfc_adapter_ref(NULL));
g_assert(!nfc_adapter_request_mode(NULL, 0));
g_assert(!nfc_adapter_add_tag_t2(NULL, NULL, NULL));
g_assert(!nfc_adapter_add_tag_t4a(NULL, NULL, NULL, NULL));
g_assert(!nfc_adapter_add_tag_t4b(NULL, NULL, NULL, NULL));
g_assert(!nfc_adapter_add_other_tag(NULL, NULL));
g_assert(!nfc_adapter_add_target_presence_handler(NULL, NULL, NULL));
g_assert(!nfc_adapter_add_tag_added_handler(NULL, NULL, NULL));
Expand Down Expand Up @@ -267,6 +269,8 @@ test_basic(
g_assert(!nfc_adapter_add_mode_requested_handler(adapter, NULL, NULL));
g_assert(!nfc_adapter_add_enabled_changed_handler(adapter, NULL, NULL));
g_assert(!nfc_adapter_add_tag_t2(adapter, NULL, NULL));
g_assert(!nfc_adapter_add_tag_t4a(adapter, NULL, NULL, NULL));
g_assert(!nfc_adapter_add_tag_t4b(adapter, NULL, NULL, NULL));
g_assert(!nfc_adapter_add_other_tag(adapter, NULL));
nfc_adapter_remove_handler(adapter, 0);

Expand Down
5 changes: 5 additions & 0 deletions unit/core_tag_t4/Makefile
@@ -0,0 +1,5 @@
# -*- Mode: makefile-gmake -*-

EXE = test_core_tag_t4

include ../common/Makefile

0 comments on commit eead4c4

Please sign in to comment.