| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_BASE_FAKE_OUTPUT_DEVICE_H_ | |
| 6 #define MEDIA_BASE_FAKE_OUTPUT_DEVICE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "media/base/output_device.h" | |
| 12 | |
| 13 namespace media { | |
| 14 | |
| 15 class FakeOutputDevice : public OutputDevice { | |
| 16 public: | |
| 17 FakeOutputDevice(); | |
| 18 explicit FakeOutputDevice(OutputDeviceStatus status); | |
| 19 ~FakeOutputDevice() override; | |
| 20 | |
| 21 // OutputDevice implementation. | |
| 22 void SwitchOutputDevice(const std::string& device_id, | |
| 23 const url::Origin& security_origin, | |
| 24 const SwitchOutputDeviceCB& callback) override; | |
| 25 AudioParameters GetOutputParameters() override; | |
| 26 OutputDeviceStatus GetDeviceStatus() override; | |
| 27 | |
| 28 private: | |
| 29 OutputDeviceStatus device_status_; | |
| 30 DISALLOW_COPY_AND_ASSIGN(FakeOutputDevice); | |
| 31 }; | |
| 32 | |
| 33 } // namespace media | |
| 34 | |
| 35 #endif // MEDIA_BASE_FAKE_OUTPUT_DEVICE_H_ | |
| OLD | NEW |