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

Side by Side Diff: content/renderer/render_thread_impl_browsertest.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "content/renderer/render_thread_impl.h" 5 #include "content/renderer/render_thread_impl.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility> 9 #include <utility>
10 10
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 bool PostNonNestableDelayedTask(const tracked_objects::Location&, 74 bool PostNonNestableDelayedTask(const tracked_objects::Location&,
75 const base::Closure&, 75 const base::Closure&,
76 base::TimeDelta) override { 76 base::TimeDelta) override {
77 base::AutoLock auto_lock(lock_); 77 base::AutoLock auto_lock(lock_);
78 count_++; 78 count_++;
79 return true; 79 return true;
80 } 80 }
81 81
82 bool RunsTasksOnCurrentThread() const override { return true; } 82 bool RunsTasksOnCurrentThread() const override { return true; }
83 83
84 std::string GetThreadName() const override { return std::string(); }
85
84 int NumTasksPosted() const { 86 int NumTasksPosted() const {
85 base::AutoLock auto_lock(lock_); 87 base::AutoLock auto_lock(lock_);
86 return count_; 88 return count_;
87 } 89 }
88 90
89 private: 91 private:
90 ~TestTaskCounter() override {} 92 ~TestTaskCounter() override {}
91 93
92 mutable base::Lock lock_; 94 mutable base::Lock lock_;
93 int count_; 95 int count_;
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
237 test_helper_->Sender()->Send(new WebSocketMsg_NotifyFailure(1, "")); 239 test_helper_->Sender()->Send(new WebSocketMsg_NotifyFailure(1, ""));
238 test_helper_->Sender()->Send(new TestMsg_QuitRunLoop()); 240 test_helper_->Sender()->Send(new TestMsg_QuitRunLoop());
239 241
240 test_helper_->GetMessageLoop()->Run(); 242 test_helper_->GetMessageLoop()->Run();
241 243
242 EXPECT_EQ(0, test_task_counter_->NumTasksPosted()); 244 EXPECT_EQ(0, test_task_counter_->NumTasksPosted());
243 } 245 }
244 246
245 } // namespace 247 } // namespace
246 } // namespace content 248 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698