diff options
Diffstat (limited to 'modules/audio_processing/audio_processing_impl_unittest.cc')
-rw-r--r-- | modules/audio_processing/audio_processing_impl_unittest.cc | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/modules/audio_processing/audio_processing_impl_unittest.cc b/modules/audio_processing/audio_processing_impl_unittest.cc index ef1830357a..ca8b8b4c25 100644 --- a/modules/audio_processing/audio_processing_impl_unittest.cc +++ b/modules/audio_processing/audio_processing_impl_unittest.cc @@ -544,8 +544,7 @@ TEST(AudioProcessingImplTest, EchoControllerObservesPlayoutVolumeChange) { TEST(AudioProcessingImplTest, RenderPreProcessorBeforeEchoDetector) { // Make sure that signal changes caused by a render pre-processing sub-module // take place before any echo detector analysis. - rtc::scoped_refptr<TestEchoDetector> test_echo_detector( - new rtc::RefCountedObject<TestEchoDetector>()); + auto test_echo_detector = rtc::make_ref_counted<TestEchoDetector>(); std::unique_ptr<CustomProcessing> test_render_pre_processor( new TestRenderPreProcessor()); // Create APM injecting the test echo detector and render pre-processor. @@ -605,8 +604,7 @@ TEST(AudioProcessingImplTest, RenderPreProcessorBeforeEchoDetector) { // config should be bit-exact with running APM with said submodules disabled. // This mainly tests that SetCreateOptionalSubmodulesForTesting has an effect. TEST(ApmWithSubmodulesExcludedTest, BitexactWithDisabledModules) { - rtc::scoped_refptr<AudioProcessingImpl> apm = - new rtc::RefCountedObject<AudioProcessingImpl>(webrtc::Config()); + auto apm = rtc::make_ref_counted<AudioProcessingImpl>(webrtc::Config()); ASSERT_EQ(apm->Initialize(), AudioProcessing::kNoError); ApmSubmoduleCreationOverrides overrides; @@ -654,8 +652,7 @@ TEST(ApmWithSubmodulesExcludedTest, BitexactWithDisabledModules) { // Disable transient suppressor creation and run APM in ways that should trigger // calls to the transient suppressor API. TEST(ApmWithSubmodulesExcludedTest, ReinitializeTransientSuppressor) { - rtc::scoped_refptr<AudioProcessingImpl> apm = - new rtc::RefCountedObject<AudioProcessingImpl>(webrtc::Config()); + auto apm = rtc::make_ref_counted<AudioProcessingImpl>(webrtc::Config()); ASSERT_EQ(apm->Initialize(), kNoErr); ApmSubmoduleCreationOverrides overrides; @@ -716,8 +713,7 @@ TEST(ApmWithSubmodulesExcludedTest, ReinitializeTransientSuppressor) { // Disable transient suppressor creation and run APM in ways that should trigger // calls to the transient suppressor API. TEST(ApmWithSubmodulesExcludedTest, ToggleTransientSuppressor) { - rtc::scoped_refptr<AudioProcessingImpl> apm = - new rtc::RefCountedObject<AudioProcessingImpl>(webrtc::Config()); + auto apm = rtc::make_ref_counted<AudioProcessingImpl>(webrtc::Config()); ASSERT_EQ(apm->Initialize(), AudioProcessing::kNoError); ApmSubmoduleCreationOverrides overrides; |