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

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

Issue 2582703003: Audio output debug recording. (Closed)
Patch Set: Code review. Created 3 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 unified diff | Download patch
« no previous file with comments | « media/audio/audio_output_resampler.cc ('k') | media/audio/mock_audio_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_MOCK_AUDIO_MANAGER_H_ 5 #ifndef MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_
6 #define MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ 6 #define MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/sequenced_task_runner_helpers.h" 9 #include "base/sequenced_task_runner_helpers.h"
10 #include "media/audio/audio_manager.h" 10 #include "media/audio/audio_manager.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 AudioParameters GetOutputStreamParameters( 62 AudioParameters GetOutputStreamParameters(
63 const std::string& device_id) override; 63 const std::string& device_id) override;
64 AudioParameters GetInputStreamParameters( 64 AudioParameters GetInputStreamParameters(
65 const std::string& device_id) override; 65 const std::string& device_id) override;
66 std::string GetAssociatedOutputDeviceID( 66 std::string GetAssociatedOutputDeviceID(
67 const std::string& input_device_id) override; 67 const std::string& input_device_id) override;
68 68
69 std::unique_ptr<AudioLog> CreateAudioLog( 69 std::unique_ptr<AudioLog> CreateAudioLog(
70 AudioLogFactory::AudioComponent component) override; 70 AudioLogFactory::AudioComponent component) override;
71 71
72 void InitializeOutputDebugRecording(
73 scoped_refptr<base::SingleThreadTaskRunner> file_task_runner) override;
74 void EnableOutputDebugRecording(
75 const base::FilePath& base_file_name) override;
76 void DisableOutputDebugRecording() override;
77
72 const char* GetName() override; 78 const char* GetName() override;
73 79
74 // Setters to emulate desired in-test behavior. 80 // Setters to emulate desired in-test behavior.
75 void SetInputStreamParameters(const AudioParameters& input_params); 81 void SetInputStreamParameters(const AudioParameters& input_params);
76 void SetHasInputDevices(bool has_input_devices); 82 void SetHasInputDevices(bool has_input_devices);
77 83
78 protected: 84 protected:
79 ~MockAudioManager() override; 85 ~MockAudioManager() override;
80 86
81 private: 87 private:
82 friend class base::DeleteHelper<MockAudioManager>; 88 friend class base::DeleteHelper<MockAudioManager>;
83 AudioParameters input_params_; 89 AudioParameters input_params_;
84 bool has_input_devices_ = true; 90 bool has_input_devices_ = true;
85 91
86 DISALLOW_COPY_AND_ASSIGN(MockAudioManager); 92 DISALLOW_COPY_AND_ASSIGN(MockAudioManager);
87 }; 93 };
88 94
89 } // namespace media. 95 } // namespace media.
90 96
91 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ 97 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_
OLDNEW
« no previous file with comments | « media/audio/audio_output_resampler.cc ('k') | media/audio/mock_audio_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698