| 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 #ifndef CAST_MEDIA_TEST_SKEWED_TICK_CLOCK_H | 5 #ifndef CAST_MEDIA_TEST_SKEWED_TICK_CLOCK_H |
| 6 #define CAST_MEDIA_TEST_SKEWED_TICK_CLOCK_H | 6 #define CAST_MEDIA_TEST_SKEWED_TICK_CLOCK_H |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/time/tick_clock.h" | 9 #include "base/time/tick_clock.h" |
| 9 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 10 | 11 |
| 11 namespace media { | 12 namespace media { |
| 12 namespace cast { | 13 namespace cast { |
| 13 namespace test { | 14 namespace test { |
| 14 | 15 |
| 15 // Wraps a base::TickClock, and lets you change the speed and offset | 16 // Wraps a base::TickClock, and lets you change the speed and offset |
| 16 // of time compared to the wrapped clock. See SetSkew for how usage. | 17 // of time compared to the wrapped clock. See SetSkew for how usage. |
| 17 class SkewedTickClock : public base::TickClock { | 18 class SkewedTickClock : public base::TickClock { |
| (...skipping 17 matching lines...) Expand all Loading... |
| 35 base::TimeTicks skew_clock_at_last_set_; | 36 base::TimeTicks skew_clock_at_last_set_; |
| 36 | 37 |
| 37 DISALLOW_COPY_AND_ASSIGN(SkewedTickClock); | 38 DISALLOW_COPY_AND_ASSIGN(SkewedTickClock); |
| 38 }; | 39 }; |
| 39 | 40 |
| 40 } // namespace test | 41 } // namespace test |
| 41 } // namespace cast | 42 } // namespace cast |
| 42 } // namespace media | 43 } // namespace media |
| 43 | 44 |
| 44 #endif // CAST_MEDIA_TEST_SKEWED_TICK_CLOCK_H | 45 #endif // CAST_MEDIA_TEST_SKEWED_TICK_CLOCK_H |
| OLD | NEW |