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

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

Issue 481193003: Remove AudioBuffersState usage in Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix audio muter build buster. Created 6 years, 2 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 | Annotate | Revision Log
« no previous file with comments | « media/audio/mac/audio_auhal_mac.cc ('k') | media/audio/pulse/pulse_output.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SOURCE_CALLBACK_H_ 5 #ifndef MEDIA_AUDIO_MOCK_AUDIO_SOURCE_CALLBACK_H_
6 #define MEDIA_AUDIO_MOCK_AUDIO_SOURCE_CALLBACK_H_ 6 #define MEDIA_AUDIO_MOCK_AUDIO_SOURCE_CALLBACK_H_
7 7
8 #include "media/audio/audio_io.h" 8 #include "media/audio/audio_io.h"
9 #include "testing/gmock/include/gmock/gmock.h" 9 #include "testing/gmock/include/gmock/gmock.h"
10 10
11 namespace media { 11 namespace media {
12 12
13 class MockAudioSourceCallback : public AudioOutputStream::AudioSourceCallback { 13 class MockAudioSourceCallback : public AudioOutputStream::AudioSourceCallback {
14 public: 14 public:
15 MockAudioSourceCallback(); 15 MockAudioSourceCallback();
16 virtual ~MockAudioSourceCallback(); 16 virtual ~MockAudioSourceCallback();
17 17
18 MOCK_METHOD2(OnMoreData, int(AudioBus* audio_bus, 18 MOCK_METHOD2(OnMoreData, int(AudioBus* audio_bus,
19 AudioBuffersState buffers_state)); 19 uint32 total_bytes_delay));
20 MOCK_METHOD1(OnError, void(AudioOutputStream* stream)); 20 MOCK_METHOD1(OnError, void(AudioOutputStream* stream));
21 21
22 private: 22 private:
23 DISALLOW_COPY_AND_ASSIGN(MockAudioSourceCallback); 23 DISALLOW_COPY_AND_ASSIGN(MockAudioSourceCallback);
24 }; 24 };
25 25
26 } // namespace media 26 } // namespace media
27 27
28 #endif // MEDIA_AUDIO_MOCK_AUDIO_SOURCE_CALLBACK_H_ 28 #endif // MEDIA_AUDIO_MOCK_AUDIO_SOURCE_CALLBACK_H_
OLDNEW
« no previous file with comments | « media/audio/mac/audio_auhal_mac.cc ('k') | media/audio/pulse/pulse_output.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698