Skip to content

Commit

Permalink
Fixed failing unit test.
Browse files Browse the repository at this point in the history
Change-Id: I168fab0935c10667fbb3911f0e23038da2981352
  • Loading branch information
Juha Heiskanen committed Sep 26, 2018
1 parent 5e7a493 commit bf55180
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/6LoWPAN/ws/ws_llc_data_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
#include "6LoWPAN/ws/ws_llc.h"
#include "6LoWPAN/ws/ws_mpx_header.h"
#include "Service_Libs/etx/etx.h"
#include "fhss_ws_extension.h"

#ifdef HAVE_WS

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ TEST_SRC_FILES = \
../../stub/ws_neighbour_class_stub.c \
../../stub/mac_neighbor_table_stub.c \
../../stub/iphc_decompress_stub.c \
../../stub/fhss_config_stub.c \


include ../../MakefileWorker.mk
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
#include "ws_neighbour_class_stub.h"
#include "ws_ie_lib_stub.h"
#include "address_stub.h"
#include "fhss_ws_extension.h"

static mcps_data_indication_ext *data_indication_cb;

Expand Down
5 changes: 5 additions & 0 deletions test/nanostack/unittest/stub/fhss_config_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,8 @@ fhss_api_t *ns_fhss_create(const fhss_configuration_t *fhss_configuration, const
fhss_config_stub.fhss_api_ptr.init_callbacks = &fhss_init_callbacks_cb_stub;
return &fhss_config_stub.fhss_api_ptr;
}

int ns_fhss_ws_set_parent(const fhss_api_t *fhss_api, const uint8_t eui64[8], const broadcast_timing_info_t *bc_timing_info)
{
return 0;
}

0 comments on commit bf55180

Please sign in to comment.