blob: bbf4ddde9913f8d2564a542d6c33f53d2cbec5e4 [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 LIB_TIMEKEEPER_TEST_LOOP_TEST_CLOCK_H_
#define LIB_TIMEKEEPER_TEST_LOOP_TEST_CLOCK_H_
#include <lib/async-testutils/test_loop.h>
#include <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 // LIB_TIMEKEEPER_TEST_LOOP_TEST_CLOCK_H_