Skip to content

Commit

Permalink
test: change test_utils stubs to ns variants
Browse files Browse the repository at this point in the history
The functions now internally use the ns timer and not the us one.
  • Loading branch information
Dudemanguy committed Oct 16, 2023
1 parent 917bdf1 commit bb036c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/test_utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,8 @@ void mp_write_console_ansi(void) {};
void mp_set_avdict(AVDictionary **dict, char **kv) {};

#ifndef WIN32_TESTS
void mp_time_us_add(void) {};
void mp_rel_time_to_timespec(void) {};
void mp_time_us(void) {};
void mp_time_us_to_realtime(void) {};
void mp_time_ns(void) {};
void mp_time_ns_add(void) {};
void mp_time_ns_to_realtime(void) {};
#endif
6 changes: 3 additions & 3 deletions test/test_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ void mp_set_avdict(AVDictionary **dict, char **kv);
// import the real versions of these functions and use them. On other
// platforms, these can just be stubs for simplicity.
#ifndef WIN32_TESTS
void mp_time_us_add(void);
void mp_rel_time_to_timespec(void);
void mp_time_us(void);
void mp_time_us_to_realtime(void);
void mp_time_ns(void);
void mp_time_ns_add(void);
void mp_time_ns_to_realtime(void);
#endif

0 comments on commit bb036c6

Please sign in to comment.