#include <memory>
#include "base/test/simple_test_tick_clock.h"
#include "base/time/time.h"
#include "media/base/wall_clock_time_source.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media {
class WallClockTimeSourceTest : public testing::Test { … };
TEST_F(WallClockTimeSourceTest, InitialTimeIsZero) { … }
TEST_F(WallClockTimeSourceTest, InitialTimeIsNotTicking) { … }
TEST_F(WallClockTimeSourceTest, InitialPlaybackRateIsOne) { … }
TEST_F(WallClockTimeSourceTest, SetMediaTime) { … }
TEST_F(WallClockTimeSourceTest, SetPlaybackRate) { … }
TEST_F(WallClockTimeSourceTest, StopTicking) { … }
TEST_F(WallClockTimeSourceTest, ConvertsTimestampsWhenStopped) { … }
TEST_F(WallClockTimeSourceTest, EmptyMediaTimestampsReturnMediaWallClockTime) { … }
}