summaryrefslogtreecommitdiff
path: root/common/mock/timer_mock.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/mock/timer_mock.c')
-rw-r--r--common/mock/timer_mock.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/common/mock/timer_mock.c b/common/mock/timer_mock.c
deleted file mode 100644
index dc83aa24d5..0000000000
--- a/common/mock/timer_mock.c
+++ /dev/null
@@ -1,22 +0,0 @@
-/* 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;
-};