summaryrefslogtreecommitdiffstats
path: root/content/test/webrtc_audio_device_test.h
diff options
context:
space:
mode:
Diffstat (limited to 'content/test/webrtc_audio_device_test.h')
-rw-r--r--content/test/webrtc_audio_device_test.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/content/test/webrtc_audio_device_test.h b/content/test/webrtc_audio_device_test.h
index 646c7c7..0c3779c 100644
--- a/content/test/webrtc_audio_device_test.h
+++ b/content/test/webrtc_audio_device_test.h
@@ -6,6 +6,8 @@
#define CONTENT_TEST_WEBRTC_AUDIO_DEVICE_TEST_H_
#pragma once
+#include <string>
+
#include "base/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
@@ -21,6 +23,12 @@ class AudioRendererHost;
class RenderThreadImpl;
class WebRTCMockRenderProcess;
+namespace base {
+namespace win {
+class ScopedCOMInitializer;
+}
+}
+
namespace content {
class ContentRendererClient;
class ResourceContext;
@@ -93,6 +101,7 @@ class WebRTCAutoDelete {
// when the audio code queries for hardware capabilities on the IO thread.
class AudioUtilInterface {
public:
+ virtual ~AudioUtilInterface() {}
virtual double GetAudioHardwareSampleRate() = 0;
virtual double GetAudioInputHardwareSampleRate() = 0;
};
@@ -170,6 +179,8 @@ class WebRTCAudioDeviceTest
scoped_ptr<content::TestBrowserThread> ui_thread_;
// Initialized on our IO thread to satisfy BrowserThread::IO checks.
scoped_ptr<content::TestBrowserThread> io_thread_;
+ // COM initialization on the IO thread for Windows.
+ scoped_ptr<base::win::ScopedCOMInitializer> initialize_com_;
};
// A very basic implementation of webrtc::Transport that acts as a transport