Skip to content

Commit 5fe0f89

Browse files
committed
Unit tests: Fix style in rtos Thread.h stubs
1 parent 1f99729 commit 5fe0f89

File tree

1 file changed

+37
-18
lines changed
  • rtos/tests/UNITTESTS/doubles/rtos

1 file changed

+37
-18
lines changed

rtos/tests/UNITTESTS/doubles/rtos/Thread.h

Lines changed: 37 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,23 @@ class Thread {
4848

4949
osStatus start(mbed::Callback<void()> task);
5050

51-
osStatus join() {return 0;};
51+
osStatus join()
52+
{
53+
return 0;
54+
};
5255
osStatus terminate();
53-
osStatus set_priority(osPriority priority){return 0;};
54-
osPriority get_priority() const{return osPriorityNormal;};
55-
uint32_t flags_set(uint32_t flags){return 0;};
56+
osStatus set_priority(osPriority priority)
57+
{
58+
return 0;
59+
};
60+
osPriority get_priority() const
61+
{
62+
return osPriorityNormal;
63+
};
64+
uint32_t flags_set(uint32_t flags)
65+
{
66+
return 0;
67+
};
5668

5769
/** State of the Thread */
5870
enum State {
@@ -77,26 +89,33 @@ class Thread {
7789
Deleted, /**< The task has been deleted or not started */
7890
};
7991

80-
State get_state() const {
81-
return Ready;
92+
State get_state() const
93+
{
94+
return Ready;
8295
};
83-
uint32_t stack_size() const {
84-
return 0;
96+
uint32_t stack_size() const
97+
{
98+
return 0;
8599
};
86-
uint32_t free_stack() const {
87-
return 0;
100+
uint32_t free_stack() const
101+
{
102+
return 0;
88103
};
89-
uint32_t used_stack() const {
90-
return 0;
104+
uint32_t used_stack() const
105+
{
106+
return 0;
91107
};
92-
uint32_t max_stack() const {
93-
return 0;
108+
uint32_t max_stack() const
109+
{
110+
return 0;
94111
};
95-
const char *get_name() const {
96-
return "";
112+
const char *get_name() const
113+
{
114+
return "";
97115
};
98-
osThreadId_t get_id() const {
99-
return 0;
116+
osThreadId_t get_id() const
117+
{
118+
return 0;
100119
};
101120
virtual ~Thread();
102121
private:

0 commit comments

Comments
 (0)