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

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

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 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/point.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 <stdint.h>
9
8 #include "base/macros.h" 10 #include "base/macros.h"
9 #include "media/audio/audio_io.h" 11 #include "media/audio/audio_io.h"
10 #include "testing/gmock/include/gmock/gmock.h" 12 #include "testing/gmock/include/gmock/gmock.h"
11 13
12 namespace media { 14 namespace media {
13 15
14 class MockAudioSourceCallback : public AudioOutputStream::AudioSourceCallback { 16 class MockAudioSourceCallback : public AudioOutputStream::AudioSourceCallback {
15 public: 17 public:
16 MockAudioSourceCallback(); 18 MockAudioSourceCallback();
17 virtual ~MockAudioSourceCallback(); 19 virtual ~MockAudioSourceCallback();
18 20
19 MOCK_METHOD3(OnMoreData, 21 MOCK_METHOD3(OnMoreData,
20 int(AudioBus* audio_bus, 22 int(AudioBus* audio_bus,
21 uint32_t total_bytes_delay, 23 uint32_t total_bytes_delay,
22 uint32_t frames_skipped)); 24 uint32_t frames_skipped));
23 MOCK_METHOD1(OnError, void(AudioOutputStream* stream)); 25 MOCK_METHOD1(OnError, void(AudioOutputStream* stream));
24 26
25 private: 27 private:
26 DISALLOW_COPY_AND_ASSIGN(MockAudioSourceCallback); 28 DISALLOW_COPY_AND_ASSIGN(MockAudioSourceCallback);
27 }; 29 };
28 30
29 } // namespace media 31 } // namespace media
30 32
31 #endif // MEDIA_AUDIO_MOCK_AUDIO_SOURCE_CALLBACK_H_ 33 #endif // MEDIA_AUDIO_MOCK_AUDIO_SOURCE_CALLBACK_H_
OLDNEW
« no previous file with comments | « media/audio/mac/audio_manager_mac.cc ('k') | media/audio/point.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698