| 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 "media/cast/test/skewed_single_thread_task_runner.h" | 5 #include "media/cast/test/skewed_single_thread_task_runner.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/time/tick_clock.h" | 8 #include "base/time/tick_clock.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 9 #include "testing/gtest/include/gtest/gtest.h" |
| 10 | 10 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 bool SkewedSingleThreadTaskRunner::PostNonNestableDelayedTask( | 41 bool SkewedSingleThreadTaskRunner::PostNonNestableDelayedTask( |
| 42 const tracked_objects::Location& from_here, | 42 const tracked_objects::Location& from_here, |
| 43 const base::Closure& task, | 43 const base::Closure& task, |
| 44 base::TimeDelta delay) { | 44 base::TimeDelta delay) { |
| 45 return task_runner_->PostNonNestableDelayedTask( | 45 return task_runner_->PostNonNestableDelayedTask( |
| 46 from_here, | 46 from_here, |
| 47 task, | 47 task, |
| 48 base::TimeDelta::FromMicroseconds(delay.InMicroseconds() * skew_)); | 48 base::TimeDelta::FromMicroseconds(delay.InMicroseconds() * skew_)); |
| 49 } | 49 } |
| 50 | 50 |
| 51 std::string SkewedSingleThreadTaskRunner::GetThreadName() const { |
| 52 return task_runner_->GetThreadName(); |
| 53 } |
| 54 |
| 51 } // namespace test | 55 } // namespace test |
| 52 } // namespace cast | 56 } // namespace cast |
| 53 } // namespace media | 57 } // namespace media |
| OLD | NEW |