Skip to content

Commit 5af7992

Browse files
Juha Heiskanenjuhhei01
authored andcommitted
Unit test for llc data service.
1 parent ffb3639 commit 5af7992

File tree

5 files changed

+592
-0
lines changed

5 files changed

+592
-0
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
include ../../makefile_defines.txt
2+
3+
COMPONENT_NAME = ws_llc_data_service_unit
4+
5+
#This must be changed manually
6+
SRC_FILES = \
7+
../../../../../source/6LoWPAN/ws/ws_llc_data_service.c
8+
9+
TEST_SRC_FILES = \
10+
main.cpp \
11+
ws_llc_data_servicetest.cpp \
12+
test_ws_llc_data_service.c \
13+
../../stub/common_functions_stub.c \
14+
../../stub/nsdynmemLIB_stub.c \
15+
../../stub/ns_list_stub.c \
16+
../../stub/mbed_trace_stub.c \
17+
../../stub/platform_stub.c \
18+
../../stub/address_stub.c \
19+
../../stub/etx_stub.c \
20+
../../stub/protocol_stats_stub.c \
21+
../../stub/randLIB_stub.c \
22+
../../stub/mesh_stub.c \
23+
../../stub/nsdynmemLIB_stub.c \
24+
../../stub/mbed_trace_stub.c \
25+
../../stub/buffer_dyn_stub.c \
26+
../../stub/protocol_core_stub.c \
27+
../../stub/socket_stub.c \
28+
../../stub/adaptation_interface_stub.c \
29+
../../stub/mac_ie_lib_stub.c \
30+
../../stub/ws_ie_lib_stub.c \
31+
../../stub/ws_mpx_header_stub.c \
32+
../../stub/iphc_decompress_stub.c \
33+
34+
35+
include ../../MakefileWorker.mk
36+
37+
CPPUTESTFLAGS += -DFEA_TRACE_SUPPORT
38+
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
/*
2+
* Copyright (c) 2016, Arm Limited and affiliates.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License");
6+
* you may not use this file except in compliance with the License.
7+
* You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
#include "CppUTest/CommandLineTestRunner.h"
19+
#include "CppUTest/TestPlugin.h"
20+
#include "CppUTest/TestRegistry.h"
21+
#include "CppUTestExt/MockSupportPlugin.h"
22+
int main(int ac, char** av)
23+
{
24+
return CommandLineTestRunner::RunAllTests(ac, av);
25+
}
26+
27+
IMPORT_TEST_GROUP(ws_llc_data_service);
28+

0 commit comments

Comments
 (0)