| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 "base/logging.h" | 5 #include "base/logging.h" |
| 6 #include "media/base/clock_impl.h" | 6 #include "media/base/clock_impl.h" |
| 7 #include "testing/gmock/include/gmock/gmock.h" | 7 #include "testing/gmock/include/gmock/gmock.h" |
| 8 | 8 |
| 9 using ::testing::DefaultValue; | 9 using ::testing::DefaultValue; |
| 10 using ::testing::InSequence; | 10 using ::testing::InSequence; |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 const base::TimeDelta kZero; | 208 const base::TimeDelta kZero; |
| 209 const base::TimeDelta kExepected = base::TimeDelta::FromSeconds(16); | 209 const base::TimeDelta kExepected = base::TimeDelta::FromSeconds(16); |
| 210 | 210 |
| 211 ClockImpl clock(&MockTimeProvider::StaticNow); | 211 ClockImpl clock(&MockTimeProvider::StaticNow); |
| 212 EXPECT_EQ(kZero, clock.Play()); | 212 EXPECT_EQ(kZero, clock.Play()); |
| 213 clock.SetTime(base::TimeDelta::FromSeconds(12)); | 213 clock.SetTime(base::TimeDelta::FromSeconds(12)); |
| 214 EXPECT_EQ(kExepected, clock.Elapsed()); | 214 EXPECT_EQ(kExepected, clock.Elapsed()); |
| 215 } | 215 } |
| 216 | 216 |
| 217 } // namespace media | 217 } // namespace media |
| OLD | NEW |