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

Side by Side Diff: webrtc/modules/audio_coding/acm2/rent_a_codec_unittest.cc

Issue 1785173002: Replace scoped_ptr with unique_ptr in webrtc/modules/ (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@up8
Patch Set: Created 4 years, 9 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 /* 1 /*
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include <memory>
12
11 #include "testing/gtest/include/gtest/gtest.h" 13 #include "testing/gtest/include/gtest/gtest.h"
12 #include "webrtc/base/arraysize.h" 14 #include "webrtc/base/arraysize.h"
13 #include "webrtc/modules/audio_coding/codecs/mock/mock_audio_encoder.h" 15 #include "webrtc/modules/audio_coding/codecs/mock/mock_audio_encoder.h"
14 #include "webrtc/modules/audio_coding/acm2/rent_a_codec.h" 16 #include "webrtc/modules/audio_coding/acm2/rent_a_codec.h"
15 17
16 namespace webrtc { 18 namespace webrtc {
17 namespace acm2 { 19 namespace acm2 {
18 20
19 using ::testing::Return; 21 using ::testing::Return;
20 22
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 #if GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID) 225 #if GTEST_HAS_DEATH_TEST && !defined(WEBRTC_ANDROID)
224 TEST(RentACodecTest, RentEncoderStackWithoutSpeechEncoder) { 226 TEST(RentACodecTest, RentEncoderStackWithoutSpeechEncoder) {
225 RentACodec::StackParameters sp; 227 RentACodec::StackParameters sp;
226 EXPECT_EQ(nullptr, sp.speech_encoder); 228 EXPECT_EQ(nullptr, sp.speech_encoder);
227 EXPECT_DEATH(RentACodec().RentEncoderStack(&sp), ""); 229 EXPECT_DEATH(RentACodec().RentEncoderStack(&sp), "");
228 } 230 }
229 #endif 231 #endif
230 232
231 } // namespace acm2 233 } // namespace acm2
232 } // namespace webrtc 234 } // namespace webrtc
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698