// Copyright 2018 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #include "chrome/common/profiler/thread_profiler.h" #include "base/test/bind.h" #include "base/test/simple_test_tick_clock.h" #include "base/time/time.h" #include "testing/gtest/include/gtest/gtest.h" namespace { class TestScheduler : public PeriodicSamplingScheduler { … }; constexpr base::TimeTicks TestScheduler::kStartTime; } // namespace TEST(ThreadProfilerTest, PeriodicSamplingScheduler) { … } TEST(ThreadProfilerTest, PeriodicSamplingSchedulerWithJumpInTimeTicks) { … }