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

Unified Diff: content/renderer/media/audio_input_message_filter.cc

Issue 2531333005: Unit tests of AudioInputRendererHost. Some cleanups. (Closed)
Patch Set: Small comments describing tests. Created 4 years 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/browser/renderer_host/media/audio_input_renderer_host_unittest.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/audio_input_message_filter.cc
diff --git a/content/renderer/media/audio_input_message_filter.cc b/content/renderer/media/audio_input_message_filter.cc
index ff24d7017357148be78b5c001c5fca437efe575c..1659af3c8dc0f139eedb70dd4fe4d7286fd3e66b 100644
--- a/content/renderer/media/audio_input_message_filter.cc
+++ b/content/renderer/media/audio_input_message_filter.cc
@@ -215,6 +215,8 @@ void AudioInputMessageFilter::AudioInputIPCImpl::RecordStream() {
void AudioInputMessageFilter::AudioInputIPCImpl::SetVolume(double volume) {
DCHECK_NE(stream_id_, kStreamIDNotSet);
+ DCHECK_GE(volume, 0);
+ DCHECK_LE(volume, 1);
filter_->Send(new AudioInputHostMsg_SetVolume(stream_id_, volume));
}
« no previous file with comments | « content/browser/renderer_host/media/audio_input_renderer_host_unittest.cc ('k') | content/test/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698