blob: 5a9351db69db2d153a0658dddf82a18a398d0d1f [file] [log] [blame]
// Copyright 2018 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SRC_LIB_TIMEKEEPER_TEST_LOOP_TEST_CLOCK_H_
#define SRC_LIB_TIMEKEEPER_TEST_LOOP_TEST_CLOCK_H_
#include <lib/async-testing/test_loop.h>
#include "src/lib/timekeeper/monotonic_test_clock_base.h"
namespace timekeeper {
// Implementation of |Clock| using a |async::TestLoop|. This class also
// ensures that every clock is strictly increasing.
class TestLoopTestClock : public MonotonicTestClockBase {
public:
TestLoopTestClock(async::TestLoop* test_loop);
~TestLoopTestClock() override;
};
} // namespace timekeeper
#endif // SRC_LIB_TIMEKEEPER_TEST_LOOP_TEST_CLOCK_H_