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

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

Issue 1966043006: Revert of MediaStream audio: Refactor 3 separate "glue" implementations into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
Index: content/renderer/media/mock_audio_device_factory.cc
diff --git a/content/renderer/media/mock_audio_device_factory.cc b/content/renderer/media/mock_audio_device_factory.cc
deleted file mode 100644
index 80303c50f629fa60183e4c3a556d7a2e72f12331..0000000000000000000000000000000000000000
--- a/content/renderer/media/mock_audio_device_factory.cc
+++ /dev/null
@@ -1,28 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "content/renderer/media/mock_audio_device_factory.h"
-
-namespace content {
-
-MockCapturerSource::MockCapturerSource() {}
-
-MockCapturerSource::~MockCapturerSource() {}
-
-void MockCapturerSource::SetVolume(double volume) {}
-
-MockAudioDeviceFactory::MockAudioDeviceFactory()
- : AudioDeviceFactory(), mock_capturer_source_(new MockCapturerSource()),
- did_create_once_(false) {}
-
-MockAudioDeviceFactory::~MockAudioDeviceFactory() {}
-
-scoped_refptr<media::AudioCapturerSource>
-MockAudioDeviceFactory::CreateAudioCapturerSource(int render_frame_id) {
- CHECK(!did_create_once_);
- did_create_once_ = true;
- return scoped_refptr<media::AudioCapturerSource>(mock_capturer_source_);
-}
-
-} // namespace content
« no previous file with comments | « content/renderer/media/mock_audio_device_factory.h ('k') | content/renderer/media/mock_media_stream_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698