#include "base/timer/elapsed_timer.h"
#include "base/threading/platform_thread.h"
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace base {
namespace {
constexpr TimeDelta kSleepDuration = …;
}
TEST(ElapsedTimerTest, Simple) { … }
TEST(ElapsedTimerTest, Mocked) { … }
class ElapsedThreadTimerTest : public ::testing::Test { … };
TEST_F(ElapsedThreadTimerTest, IsSupported) { … }
TEST_F(ElapsedThreadTimerTest, Simple) { … }
TEST_F(ElapsedThreadTimerTest, DoesNotCountSleep) { … }
TEST_F(ElapsedThreadTimerTest, Mocked) { … }
}