| Index: content/common/inter_process_time_ticks_converter_unittest.cc
|
| diff --git a/content/common/inter_process_time_ticks_converter_unittest.cc b/content/common/inter_process_time_ticks_converter_unittest.cc
|
| index e098bda1f3e19c574b3da24771a6b28c28975c32..1f92b2f65b7de92e9482b81dfd935c1f519fdb33 100644
|
| --- a/content/common/inter_process_time_ticks_converter_unittest.cc
|
| +++ b/content/common/inter_process_time_ticks_converter_unittest.cc
|
| @@ -249,6 +249,26 @@ TEST(InterProcessTimeTicksConverterTest, DisjointRanges) {
|
| EXPECT_EQ(0, results.result_delta);
|
| }
|
|
|
| +TEST(InterProcessTimeTicksConverterTest, ValuesOutsideOfRange) {
|
| + TestParams p;
|
| + p.local_lower_bound = 15;
|
| + p.remote_lower_bound = 10;
|
| + p.remote_upper_bound = 25;
|
| + p.local_upper_bound = 20;
|
| +
|
| + p.test_time = 10;
|
| + TestResults results = RunTest(p);
|
| + EXPECT_EQ(15, results.result_time);
|
| +
|
| + p.test_time = 25;
|
| + results = RunTest(p);
|
| + EXPECT_EQ(20, results.result_time);
|
| +
|
| + p.test_time = 9;
|
| + results = RunTest(p);
|
| + EXPECT_EQ(14, results.result_time);
|
| +}
|
| +
|
| } // anonymous namespace
|
|
|
| } // namespace content
|
|
|