#include "third_party/blink/public/common/loader/inter_process_time_ticks_converter.h"
#include <stdint.h>
#include "base/time/time.h"
#include "testing/gtest/include/gtest/gtest.h"
TimeTicks;
namespace blink {
namespace {
struct TestParams { … };
struct TestResults { … };
LocalTimeTicks GetLocalTimeTicks(int64_t value) { … }
RemoteTimeTicks GetRemoteTimeTicks(int64_t value) { … }
base::TimeTicks TicksFromMicroseconds(int64_t micros) { … }
TestResults RunTest(const TestParams& params) { … }
TEST(InterProcessTimeTicksConverterTest, NullTime) { … }
TEST(InterProcessTimeTicksConverterTest, NoSkew) { … }
TEST(InterProcessTimeTicksConverterTest, OffsetMidpoints) { … }
TEST(InterProcessTimeTicksConverterTest, DoubleEndedSkew) { … }
TEST(InterProcessTimeTicksConverterTest, FrontEndSkew) { … }
TEST(InterProcessTimeTicksConverterTest, BackEndSkew) { … }
TEST(InterProcessTimeTicksConverterTest, Instantaneous) { … }
TEST(InterProcessTimeTicksConverterTest, OffsetInstantaneous) { … }
TEST(InterProcessTimeTicksConverterTest, DisjointInstantaneous) { … }
TEST(InterProcessTimeTicksConverterTest, RoundingNearEdges) { … }
TEST(InterProcessTimeTicksConverterTest, DisjointRanges) { … }
TEST(InterProcessTimeTicksConverterTest, LargeValue_LocalIsLargetThanRemote) { … }
TEST(InterProcessTimeTicksConverterTest, LargeValue_RemoteIsLargetThanLocal) { … }
TEST(InterProcessTimeTicksConverterTest, ValuesOutsideOfRange) { … }
}
}