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

Unified Diff: webrtc/modules/audio_processing/audio_processing_impl_locking_unittest.cc

Issue 1469013002: Move ThreadWrapper to ProcessThread in base. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: removed comment Created 5 years, 1 month 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: webrtc/modules/audio_processing/audio_processing_impl_locking_unittest.cc
diff --git a/webrtc/modules/audio_processing/audio_processing_impl_locking_unittest.cc b/webrtc/modules/audio_processing/audio_processing_impl_locking_unittest.cc
index d1dabee6363baca814b5727375bba0335ccb97c5..bccccf49ef1b02e41700314faa0a4d978245690d 100644
--- a/webrtc/modules/audio_processing/audio_processing_impl_locking_unittest.cc
+++ b/webrtc/modules/audio_processing/audio_processing_impl_locking_unittest.cc
@@ -16,12 +16,12 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/base/array_view.h"
#include "webrtc/base/criticalsection.h"
+#include "webrtc/base/platform_thread.h"
#include "webrtc/config.h"
#include "webrtc/modules/audio_processing/test/test_utils.h"
#include "webrtc/modules/include/module_common_types.h"
#include "webrtc/system_wrappers/include/event_wrapper.h"
#include "webrtc/system_wrappers/include/sleep.h"
-#include "webrtc/system_wrappers/include/thread_wrapper.h"
#include "webrtc/test/random.h"
namespace webrtc {
@@ -456,9 +456,9 @@ class AudioProcessingImplLockTest
const rtc::scoped_ptr<EventWrapper> test_complete_;
// Thread related variables.
- rtc::scoped_ptr<ThreadWrapper> render_thread_;
- rtc::scoped_ptr<ThreadWrapper> capture_thread_;
- rtc::scoped_ptr<ThreadWrapper> stats_thread_;
+ rtc::scoped_ptr<PlatformThread> render_thread_;
+ rtc::scoped_ptr<PlatformThread> capture_thread_;
+ rtc::scoped_ptr<PlatformThread> stats_thread_;
mutable test::Random rand_gen_;
rtc::scoped_ptr<AudioProcessing> apm_;
@@ -472,14 +472,15 @@ class AudioProcessingImplLockTest
AudioProcessingImplLockTest::AudioProcessingImplLockTest()
: test_complete_(EventWrapper::Create()),
- render_thread_(ThreadWrapper::CreateThread(RenderProcessorThreadFunc,
- this,
- "render")),
- capture_thread_(ThreadWrapper::CreateThread(CaptureProcessorThreadFunc,
+ render_thread_(PlatformThread::CreateThread(RenderProcessorThreadFunc,
this,
- "capture")),
- stats_thread_(
- ThreadWrapper::CreateThread(StatsProcessorThreadFunc, this, "stats")),
+ "render")),
+ capture_thread_(PlatformThread::CreateThread(CaptureProcessorThreadFunc,
+ this,
+ "capture")),
+ stats_thread_(PlatformThread::CreateThread(StatsProcessorThreadFunc,
+ this,
+ "stats")),
rand_gen_(42U),
apm_(AudioProcessingImpl::Create()),
render_thread_state_(kMaxFrameSize,
« no previous file with comments | « webrtc/modules/audio_device/win/audio_device_wave_win.cc ('k') | webrtc/modules/rtp_rtcp/test/BWEStandAlone/MatlabPlot.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698