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

Unified Diff: content/renderer/media/webrtc_local_audio_track_unittest.cc

Issue 12741012: base: Support setting thread priorities generically. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 7 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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/media/webrtc_local_audio_track_unittest.cc
diff --git a/content/renderer/media/webrtc_local_audio_track_unittest.cc b/content/renderer/media/webrtc_local_audio_track_unittest.cc
index 7e2f4732b508d5c17937ae7eb4cf3b2919ba8476..e38063b2293c86367f99d828c19b3d8613b223e4 100644
--- a/content/renderer/media/webrtc_local_audio_track_unittest.cc
+++ b/content/renderer/media/webrtc_local_audio_track_unittest.cc
@@ -36,7 +36,7 @@ class FakeAudioThread : public base::PlatformThread::Delegate {
audio_bus_ = media::AudioBus::Create(capturer_->audio_parameters());
}
- virtual ~FakeAudioThread() { DCHECK(!thread_); }
+ virtual ~FakeAudioThread() { DCHECK(thread_.isNull()); }
// base::PlatformThread::Delegate:
virtual void ThreadMain() OVERRIDE {
@@ -57,7 +57,7 @@ class FakeAudioThread : public base::PlatformThread::Delegate {
void Start() {
base::PlatformThread::CreateWithPriority(
0, this, &thread_, base::kThreadPriority_RealtimeAudio);
- CHECK(thread_ != base::kNullThreadHandle);
+ CHECK(!thread_.isNull());
}
void Stop() {

Powered by Google App Engine
This is Rietveld 408576698