Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: media/cast/test/skewed_single_thread_task_runner.cc

Issue 1942053002: Deletes base::MessageLoop::set_thread_name(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed media_unittests Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698