Make the destructor of AudioCodingModule public.
This allows the type to be used with a scoped_ptr. Remove all calls to
the deprecated Destroy() from tests.
R=turaj@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/2200006
git-svn-id: http://webrtc.googlecode.com/svn/trunk@4731 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/audio_coding/main/test/TwoWayCommunication.h b/webrtc/modules/audio_coding/main/test/TwoWayCommunication.h
index abe0d9b..fe0ed2a 100644
--- a/webrtc/modules/audio_coding/main/test/TwoWayCommunication.h
+++ b/webrtc/modules/audio_coding/main/test/TwoWayCommunication.h
@@ -11,6 +11,7 @@
#ifndef TWO_WAY_COMMUNICATION_H
#define TWO_WAY_COMMUNICATION_H
+#include "webrtc/system_wrappers/interface/scoped_ptr.h"
#include "ACMTest.h"
#include "Channel.h"
#include "PCMFile.h"
@@ -30,11 +31,11 @@
void SetUp();
void SetUpAutotest();
- AudioCodingModule* _acmA;
- AudioCodingModule* _acmB;
+ scoped_ptr<AudioCodingModule> _acmA;
+ scoped_ptr<AudioCodingModule> _acmB;
- AudioCodingModule* _acmRefA;
- AudioCodingModule* _acmRefB;
+ scoped_ptr<AudioCodingModule> _acmRefA;
+ scoped_ptr<AudioCodingModule> _acmRefB;
Channel* _channel_A2B;
Channel* _channel_B2A;