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

Unified Diff: media/audio/mock_audio_manager.h

Issue 66183002: Replace MessageLoopProxy with SingleThreadTaskRunner for the rest of media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix win and audio tests Created 6 years, 11 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/mock_audio_manager.h
diff --git a/media/audio/mock_audio_manager.h b/media/audio/mock_audio_manager.h
index 2d71fe8493f8d2ff01912aa17540de7b71e76b70..0cd79e74139e8f440c8ae475be72bbb03d8ca96e 100644
--- a/media/audio/mock_audio_manager.h
+++ b/media/audio/mock_audio_manager.h
@@ -21,7 +21,8 @@ namespace media {
// synchronization purposes).
class MockAudioManager : public media::AudioManager {
public:
- explicit MockAudioManager(base::MessageLoopProxy* message_loop_proxy);
+ explicit MockAudioManager(
+ const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
virtual bool HasAudioOutputDevices() OVERRIDE;
@@ -51,8 +52,9 @@ class MockAudioManager : public media::AudioManager {
const media::AudioParameters& params,
const std::string& device_id) OVERRIDE;
- virtual scoped_refptr<base::MessageLoopProxy> GetMessageLoop() OVERRIDE;
- virtual scoped_refptr<base::MessageLoopProxy> GetWorkerLoop() OVERRIDE;
+ virtual scoped_refptr<base::SingleThreadTaskRunner> GetTaskRunner() OVERRIDE;
+ virtual scoped_refptr<base::SingleThreadTaskRunner> GetWorkerTaskRunner()
+ OVERRIDE;
virtual void AddOutputDeviceChangeListener(
AudioDeviceListener* listener) OVERRIDE;
@@ -76,7 +78,7 @@ class MockAudioManager : public media::AudioManager {
virtual ~MockAudioManager();
private:
- scoped_refptr<base::MessageLoopProxy> message_loop_proxy_;
+ scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
DISALLOW_COPY_AND_ASSIGN(MockAudioManager);
};
« 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