Skip to content

Commit

Permalink
Add GetTimeMs() to mock_os.h
Browse files Browse the repository at this point in the history
Some client tests in other repositories relied on a similarly-named method.
  • Loading branch information
jd-yolabs authored and linkmonitor committed Jul 12, 2023
1 parent ce9f8e9 commit 09529c9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions extra/test/mock_os.h
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ struct MockOs

static bool IsInIsr(void) { return false; }

static int64_t GetTimeMs(void) { return m_now_ms; }

static ErOptions_t m_event_router_options;
static ErTaskHandle_t m_running_task;
static std::unordered_map<ErQueueHandle_t, std::queue<ErEvent_t *>>
Expand Down

0 comments on commit 09529c9

Please sign in to comment.