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

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

Issue 1780333007: AudioManagerBase: Create and run the audio thread lazily. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: fixed media unittests on mac 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 unified diff | Download patch
« no previous file with comments | « media/audio/mac/audio_manager_mac.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 "media/audio/audio_manager.h" 9 #include "media/audio/audio_manager.h"
10 10
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 const std::string& device_id) override; 43 const std::string& device_id) override;
44 44
45 media::AudioOutputStream* MakeAudioOutputStreamProxy( 45 media::AudioOutputStream* MakeAudioOutputStreamProxy(
46 const media::AudioParameters& params, 46 const media::AudioParameters& params,
47 const std::string& device_id) override; 47 const std::string& device_id) override;
48 48
49 media::AudioInputStream* MakeAudioInputStream( 49 media::AudioInputStream* MakeAudioInputStream(
50 const media::AudioParameters& params, 50 const media::AudioParameters& params,
51 const std::string& device_id) override; 51 const std::string& device_id) override;
52 52
53 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() const override; 53 scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() override;
54 scoped_refptr<base::SingleThreadTaskRunner> GetWorkerTaskRunner() override; 54 scoped_refptr<base::SingleThreadTaskRunner> GetWorkerTaskRunner() override;
55 55
56 void AddOutputDeviceChangeListener(AudioDeviceListener* listener) override; 56 void AddOutputDeviceChangeListener(AudioDeviceListener* listener) override;
57 void RemoveOutputDeviceChangeListener(AudioDeviceListener* listener) override; 57 void RemoveOutputDeviceChangeListener(AudioDeviceListener* listener) override;
58 58
59 AudioParameters GetDefaultOutputStreamParameters() override; 59 AudioParameters GetDefaultOutputStreamParameters() override;
60 AudioParameters GetOutputStreamParameters( 60 AudioParameters GetOutputStreamParameters(
61 const std::string& device_id) override; 61 const std::string& device_id) override;
62 AudioParameters GetInputStreamParameters( 62 AudioParameters GetInputStreamParameters(
63 const std::string& device_id) override; 63 const std::string& device_id) override;
64 std::string GetAssociatedOutputDeviceID( 64 std::string GetAssociatedOutputDeviceID(
65 const std::string& input_device_id) override; 65 const std::string& input_device_id) override;
66 66
67 scoped_ptr<AudioLog> CreateAudioLog( 67 scoped_ptr<AudioLog> CreateAudioLog(
68 AudioLogFactory::AudioComponent component) override; 68 AudioLogFactory::AudioComponent component) override;
69 69
70 protected: 70 protected:
71 ~MockAudioManager() override; 71 ~MockAudioManager() override;
72 72
73 private: 73 private:
74 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 74 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
75 75
76 DISALLOW_COPY_AND_ASSIGN(MockAudioManager); 76 DISALLOW_COPY_AND_ASSIGN(MockAudioManager);
77 }; 77 };
78 78
79 } // namespace media. 79 } // namespace media.
80 80
81 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_ 81 #endif // MEDIA_AUDIO_MOCK_AUDIO_MANAGER_H_
OLDNEW
« no previous file with comments | « media/audio/mac/audio_manager_mac.cc ('k') | media/audio/mock_audio_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698