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

Unified Diff: content/test/webrtc_audio_device_test.h

Issue 9655018: Make AudioParameters a class instead of a struct (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix copyright years Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/DEPS ('k') | content/test/webrtc_audio_device_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/webrtc_audio_device_test.h
diff --git a/content/test/webrtc_audio_device_test.h b/content/test/webrtc_audio_device_test.h
index 8b93e83e02ffbdfb3eb365de28287f28ec3d5b54..bd82c87f2c4427303c7061f3b077b1ed8a763d05 100644
--- a/content/test/webrtc_audio_device_test.h
+++ b/content/test/webrtc_audio_device_test.h
@@ -14,6 +14,7 @@
#include "base/message_loop.h"
#include "content/browser/renderer_host/media/mock_media_observer.h"
#include "content/renderer/mock_content_renderer_client.h"
+#include "media/base/channel_layout.h"
#include "ipc/ipc_channel.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/webrtc/common_types.h"
@@ -108,10 +109,10 @@ class WebRTCAutoDelete {
class AudioUtilInterface {
public:
virtual ~AudioUtilInterface() {}
- virtual double GetAudioHardwareSampleRate() = 0;
- virtual double GetAudioInputHardwareSampleRate(
+ virtual int GetAudioHardwareSampleRate() = 0;
+ virtual int GetAudioInputHardwareSampleRate(
const std::string& device_id) = 0;
- virtual uint32 GetAudioInputHardwareChannelCount(
+ virtual ChannelLayout GetAudioInputHardwareChannelLayout(
const std::string& device_id) = 0;
};
@@ -139,9 +140,9 @@ class WebRTCAudioDeviceTest
void CreateChannel(const char* name);
void DestroyChannel();
- void OnGetHardwareSampleRate(double* sample_rate);
- void OnGetHardwareInputSampleRate(double* sample_rate);
- void OnGetHardwareInputChannelCount(uint32* channels);
+ void OnGetHardwareSampleRate(int* sample_rate);
+ void OnGetHardwareInputSampleRate(int* sample_rate);
+ void OnGetHardwareInputChannelLayout(ChannelLayout* channels);
// IPC::Channel::Listener implementation.
virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
« no previous file with comments | « content/test/DEPS ('k') | content/test/webrtc_audio_device_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698