Skip to content

Commit

Permalink
Fixed unitest build.
Browse files Browse the repository at this point in the history
  • Loading branch information
Juha Heiskanen authored and juhhei01 committed Mar 1, 2018
1 parent 3b9a4b0 commit 1e94358
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ TEST_SRC_FILES = \
../../stub/pana_stub.c \
../../stub/pana_client_stub.c \
../../stub/net_load_balance_stub.c \
../../stub/mac_neighbor_table_stub.c \

include ../../MakefileWorker.mk

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ TEST_SRC_FILES = \
../../stub/cipv6_fragmenter_stub.c \
../../stub/pana_stub.c \
../../stub/net_load_balance_stub.c \
../../stub/mac_neighbor_table_stub.c \

include ../../MakefileWorker.mk

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ TEST_SRC_FILES = \
../../stub/pan_blacklist_stub.c \
../../stub/ipv6_routing_table_stub.c \
../../stub/ipv6_stub.c \
../../stub/mac_neighbor_table_stub.c \

include ../../MakefileWorker.mk

Expand Down
12 changes: 6 additions & 6 deletions test/nanostack/unittest/stub/mac_neighbor_table_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,35 +27,35 @@

mac_neighbor_table_stub_def mac_neighbor_table_stub;

mac_neighbor_table__t *mac_neighbor_table_create(uint8_t table_size, neighbor_entry_remove_notify *remove_cb, neighbor_entry_nud_notify *nud_cb, void *user_indentifier, uint32_t nud_threshold)
mac_neighbor_table_t *mac_neighbor_table_create(uint8_t table_size, neighbor_entry_remove_notify *remove_cb, neighbor_entry_nud_notify *nud_cb, void *user_indentifier, uint32_t nud_threshold)
{
return mac_neighbor_table_stub.test_class;
}

void neighbor_table_neighbor_table_class_delete(mac_neighbor_table_t *table_class)
void mac_neighbor_table_delete(mac_neighbor_table_t *table_class)
{

}


void neighbor_table_class_neighbor_list_clean(mac_neighbor_table_t *table_class)
void mac_neighbor_table_neighbor_list_clean(mac_neighbor_table_t *table_class)
{

}


void neighbor_table_class_neighbor_timeout_update(mac_neighbor_table_t *table_class, uint32_t time_update)
void mac_neighbor_table_neighbor_timeout_update(mac_neighbor_table_t *table_class, uint32_t time_update)
{

}


mac_neighbor_table_entry_t *neighbor_table_class_entry_allocate(mac_neighbor_table_t *table_class, const uint8_t *mac64)
mac_neighbor_table_entry_t *mac_neighbor_table_entry_allocate(mac_neighbor_table_t *table_class, const uint8_t *mac64)
{
return mac_neighbor_table_stub.test_neigh;
}

void neighbor_table_class_neighbor_remove(mac_neighbor_table_t *table_class, mac_neighbor_table_entry_t *neighbor_entry)
void mac_neighbor_table_neighbor_remove(mac_neighbor_table_t *table_class, mac_neighbor_table_entry_t *neighbor_entry)
{

}
Expand Down

0 comments on commit 1e94358

Please sign in to comment.