chromium/third_party/openscreen/src/platform/api/time_unittest.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "platform/api/time.h"

#include <chrono>
#include <thread>

#include "gtest/gtest.h"
#include "util/chrono_helpers.h"

namespace openscreen {
namespace {

// Tests that the clock always seems to tick forward. If this test is broken, or
// is flaky, the time source is probably not monotonic.
TEST(TimeTest, PlatformClockIsMonotonic) {}

// Tests that the clock ticks at least 10000 times per second, a requirement
// specified in the API header comments.
TEST(TimeTest, PlatformClockHasSufficientResolution) {}

}  // namespace
}  // namespace openscreen