Skip to content

Commit 7188c8a

Browse files
author
Cruz Monrreal
authored
Merge pull request #6620 from jarvte/cellular_fixing_at_unit_tests
Cellular: fixed athandler unit tests.
2 parents cbec111 + 6533c98 commit 7188c8a

File tree

3 files changed

+27
-1
lines changed

3 files changed

+27
-1
lines changed

features/cellular/UNITTESTS/at/athandler/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ TEST_SRC_FILES = \
2020
../../stubs/mbed_poll_stub.cpp \
2121
../../stubs/Timer_stub.cpp \
2222
../../stubs/equeue_stub.cpp \
23+
../../stubs/Kernel.cpp \
2324

2425
include ../../MakefileWorker.mk
2526

features/cellular/UNITTESTS/stubs/ATHandler_stub.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ device_err_t ATHandler_stub::device_err_value;
4242
Callback<void()> ATHandler_stub::callback = NULL;
4343
uint8_t ATHandler_stub::resp_info_true_counter = false;
4444

45-
ATHandler::ATHandler(FileHandle *fh, EventQueue &queue, int timeout, const char *output_delimiter) :
45+
ATHandler::ATHandler(FileHandle *fh, EventQueue &queue, int timeout, const char *output_delimiter, uint16_t send_delay) :
4646
_nextATHandler(0),
4747
_fileHandle(fh),
4848
_queue(queue)
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
/*
2+
* Copyright (c) , 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+
#include "Kernel.h"
18+
19+
namespace rtos {
20+
21+
uint64_t Kernel::get_ms_count()
22+
{
23+
return 20;
24+
}
25+
}

0 commit comments

Comments
 (0)