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

Unified Diff: media/base/fake_output_device.cc

Issue 1809093003: Moving SwitchOutputDevice out of OutputDevice interface, eliminating OutputDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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 | « media/base/fake_output_device.h ('k') | media/base/mock_audio_renderer_sink.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/fake_output_device.cc
diff --git a/media/base/fake_output_device.cc b/media/base/fake_output_device.cc
deleted file mode 100644
index 2f7c8e70062369dc0338ac0b8ecd65e3cc6210e4..0000000000000000000000000000000000000000
--- a/media/base/fake_output_device.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2015 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 "media/base/fake_output_device.h"
-
-#include "base/callback.h"
-
-namespace media {
-
-FakeOutputDevice::FakeOutputDevice()
- : FakeOutputDevice(OUTPUT_DEVICE_STATUS_OK) {}
-
-FakeOutputDevice::FakeOutputDevice(OutputDeviceStatus device_status)
- : device_status_(device_status) {}
-
-FakeOutputDevice::~FakeOutputDevice() {}
-
-void FakeOutputDevice::SwitchOutputDevice(
- const std::string& device_id,
- const url::Origin& security_origin,
- const SwitchOutputDeviceCB& callback) {
- callback.Run(device_status_);
-}
-
-AudioParameters FakeOutputDevice::GetOutputParameters() {
- return media::AudioParameters(
- media::AudioParameters::AUDIO_FAKE, media::CHANNEL_LAYOUT_STEREO,
- media::AudioParameters::kTelephoneSampleRate, 16, 1);
-}
-
-OutputDeviceStatus FakeOutputDevice::GetDeviceStatus() {
- return device_status_;
-}
-
-} // namespace media
« no previous file with comments | « media/base/fake_output_device.h ('k') | media/base/mock_audio_renderer_sink.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698