blob: dc83aa24d5ea34da8465c9e1e2c95bf5830efe8b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/* Copyright 2019 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include "mock/timer_mock.h"
#ifndef TEST_BUILD
#error "Mocks should only be in the test build."
#endif
static timestamp_t now;
void set_time(timestamp_t now_)
{
now = now_;
}
timestamp_t get_time(void)
{
return now;
};
|