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

Unified Diff: webrtc/modules/audio_device/test/func_test_manager.cc

Issue 1722083002: Replace scoped_ptr with unique_ptr in webrtc/modules/audio_device/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 10 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: webrtc/modules/audio_device/test/func_test_manager.cc
diff --git a/webrtc/modules/audio_device/test/func_test_manager.cc b/webrtc/modules/audio_device/test/func_test_manager.cc
index 0a2963e9ae6fb0c4a63591e3cc3341f846ab1b6e..bb7686c6c18b44ed74d851fe04ab1e40dbd2555b 100644
--- a/webrtc/modules/audio_device/test/func_test_manager.cc
+++ b/webrtc/modules/audio_device/test/func_test_manager.cc
@@ -594,8 +594,8 @@ FuncTestManager::~FuncTestManager()
int32_t FuncTestManager::Init()
{
- EXPECT_TRUE((_processThread = ProcessThread::Create("ProcessThread")) !=
- NULL);
+ EXPECT_TRUE((_processThread = rtc::ScopedToUnique(
+ ProcessThread::Create("ProcessThread"))) != NULL);
if (_processThread == NULL)
{
return -1;
@@ -832,8 +832,8 @@ int32_t FuncTestManager::TestAudioLayerSelection()
// ==================================================
// Next, try to make fresh start with new audio layer
- EXPECT_TRUE((_processThread = ProcessThread::Create("ProcessThread")) !=
- NULL);
+ EXPECT_TRUE((_processThread = rtc::ScopedToUnique(
+ ProcessThread::Create("ProcessThread"))) != NULL);
if (_processThread == NULL)
{
return -1;
« no previous file with comments | « webrtc/modules/audio_device/test/func_test_manager.h ('k') | webrtc/modules/audio_device/win/audio_device_wave_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698