OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 #include <stdint.h> |
| 6 |
5 #include "base/memory/ref_counted.h" | 7 #include "base/memory/ref_counted.h" |
6 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
7 #include "base/test/simple_test_tick_clock.h" | 9 #include "base/test/simple_test_tick_clock.h" |
8 #include "base/time/tick_clock.h" | 10 #include "base/time/tick_clock.h" |
9 #include "media/cast/cast_environment.h" | 11 #include "media/cast/cast_environment.h" |
10 #include "media/cast/logging/logging_defines.h" | 12 #include "media/cast/logging/logging_defines.h" |
11 #include "media/cast/logging/receiver_time_offset_estimator_impl.h" | 13 #include "media/cast/logging/receiver_time_offset_estimator_impl.h" |
12 #include "media/cast/test/fake_single_thread_task_runner.h" | 14 #include "media/cast/test/fake_single_thread_task_runner.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
14 | 16 |
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
390 int64_t lower_bound_ms = lower_bound.InMilliseconds(); | 392 int64_t lower_bound_ms = lower_bound.InMilliseconds(); |
391 int64_t upper_bound_ms = upper_bound.InMilliseconds(); | 393 int64_t upper_bound_ms = upper_bound.InMilliseconds(); |
392 EXPECT_GT(lower_bound_ms, 90); | 394 EXPECT_GT(lower_bound_ms, 90); |
393 EXPECT_LE(lower_bound_ms, true_offset_ms); | 395 EXPECT_LE(lower_bound_ms, true_offset_ms); |
394 EXPECT_LT(upper_bound_ms, 150); | 396 EXPECT_LT(upper_bound_ms, 150); |
395 EXPECT_GT(upper_bound_ms, true_offset_ms); | 397 EXPECT_GT(upper_bound_ms, true_offset_ms); |
396 } | 398 } |
397 | 399 |
398 } // namespace cast | 400 } // namespace cast |
399 } // namespace media | 401 } // namespace media |
OLD | NEW |