Cast: Stop logging kVideoFrameSentToEncoder and rename a couple events.
[chromium-blink-merge.git] / media / audio / mock_audio_source_callback.h
blobcbd3850775dbfa3025eaeb6c96435c9fafc102e3
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
3 // found in the LICENSE file.
5 #ifndef MEDIA_AUDIO_MOCK_AUDIO_SOURCE_CALLBACK_H_
6 #define MEDIA_AUDIO_MOCK_AUDIO_SOURCE_CALLBACK_H_
8 #include "media/audio/audio_io.h"
9 #include "testing/gmock/include/gmock/gmock.h"
11 namespace media {
13 class MockAudioSourceCallback : public AudioOutputStream::AudioSourceCallback {
14 public:
15 MockAudioSourceCallback();
16 virtual ~MockAudioSourceCallback();
18 MOCK_METHOD2(OnMoreData, int(AudioBus* audio_bus,
19 AudioBuffersState buffers_state));
20 MOCK_METHOD3(OnMoreIOData, int(AudioBus* source,
21 AudioBus* dest,
22 AudioBuffersState buffers_state));
23 MOCK_METHOD1(OnError, void(AudioOutputStream* stream));
25 private:
26 DISALLOW_COPY_AND_ASSIGN(MockAudioSourceCallback);
29 } // namespace media
31 #endif // MEDIA_AUDIO_MOCK_AUDIO_SOURCE_CALLBACK_H_