1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
media / fuchsia / audio / fake_audio_device_enumerator.h [blame]
// Copyright 2021 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_FUCHSIA_AUDIO_FAKE_AUDIO_DEVICE_ENUMERATOR_H_
#define MEDIA_FUCHSIA_AUDIO_FAKE_AUDIO_DEVICE_ENUMERATOR_H_
#include <fuchsia/media/cpp/fidl_test_base.h>
#include <lib/vfs/cpp/pseudo_dir.h>
#include "base/fuchsia/scoped_service_binding.h"
namespace media {
class FakeAudioDeviceEnumerator final
: public fuchsia::media::testing::AudioDeviceEnumerator_TestBase {
public:
explicit FakeAudioDeviceEnumerator(vfs::PseudoDir* pseudo_dir);
~FakeAudioDeviceEnumerator() override;
FakeAudioDeviceEnumerator(const FakeAudioDeviceEnumerator&) = delete;
FakeAudioDeviceEnumerator& operator=(const FakeAudioDeviceEnumerator&) =
delete;
private:
// fuchsia::media::AudioDeviceEnumerator implementation.
void GetDevices(GetDevicesCallback callback) override;
// Not-implemented handler.
void NotImplemented_(const std::string& name) override;
base::ScopedServiceBinding<fuchsia::media::AudioDeviceEnumerator> binding_;
};
} // namespace media
#endif // MEDIA_FUCHSIA_AUDIO_FAKE_AUDIO_DEVICE_ENUMERATOR_H_