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

Side by Side Diff: media/audio/fake_audio_manager.h

Issue 2582703003: Audio output debug recording. (Closed)
Patch Set: Using callbacks instead. Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ 5 #ifndef MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_
6 #define MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ 6 #define MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "media/audio/audio_manager_base.h" 11 #include "media/audio/audio_manager_base.h"
12 #include "media/audio/fake_audio_input_stream.h" 12 #include "media/audio/fake_audio_input_stream.h"
13 #include "media/audio/fake_audio_output_stream.h" 13 #include "media/audio/fake_audio_output_stream.h"
14 14
15 namespace media { 15 namespace media {
16 16
17 class MEDIA_EXPORT FakeAudioManager : public AudioManagerBase { 17 class MEDIA_EXPORT FakeAudioManager : public AudioManagerBase {
18 public: 18 public:
19 FakeAudioManager( 19 FakeAudioManager(
20 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 20 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
21 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner, 21 scoped_refptr<base::SingleThreadTaskRunner> worker_task_runner,
22 AudioLogFactory* audio_log_factory); 22 AudioLogFactory* audio_log_factory,
23 CreateAudioFileWriterCallback create_audio_file_writer_callback);
Henrik Grunell 2017/01/25 11:50:49 I will have to update loads of unit tests in conte
23 24
24 // Implementation of AudioManager. 25 // Implementation of AudioManager.
25 bool HasAudioOutputDevices() override; 26 bool HasAudioOutputDevices() override;
26 bool HasAudioInputDevices() override; 27 bool HasAudioInputDevices() override;
27 const char* GetName() override; 28 const char* GetName() override;
28 29
29 // Implementation of AudioManagerBase. 30 // Implementation of AudioManagerBase.
30 AudioOutputStream* MakeLinearOutputStream( 31 AudioOutputStream* MakeLinearOutputStream(
31 const AudioParameters& params, 32 const AudioParameters& params,
32 const LogCallback& log_callback) override; 33 const LogCallback& log_callback) override;
(...skipping 19 matching lines...) Expand all
52 const std::string& output_device_id, 53 const std::string& output_device_id,
53 const AudioParameters& input_params) override; 54 const AudioParameters& input_params) override;
54 55
55 private: 56 private:
56 DISALLOW_COPY_AND_ASSIGN(FakeAudioManager); 57 DISALLOW_COPY_AND_ASSIGN(FakeAudioManager);
57 }; 58 };
58 59
59 } // namespace media 60 } // namespace media
60 61
61 #endif // MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_ 62 #endif // MEDIA_AUDIO_FAKE_AUDIO_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698