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

Side by Side Diff: media/base/mock_audio_renderer_sink.h

Issue 623263003: replace OVERRIDE and FINAL with override and final in media/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « media/base/fake_text_track_stream.h ('k') | media/base/mock_filters.h » ('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_BASE_MOCK_AUDIO_RENDERER_SINK_H_ 5 #ifndef MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_
6 #define MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_ 6 #define MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_
7 7
8 #include "media/audio/audio_parameters.h" 8 #include "media/audio/audio_parameters.h"
9 #include "media/base/audio_renderer_sink.h" 9 #include "media/base/audio_renderer_sink.h"
10 #include "testing/gmock/include/gmock/gmock.h" 10 #include "testing/gmock/include/gmock/gmock.h"
11 11
12 namespace media { 12 namespace media {
13 13
14 class MockAudioRendererSink : public AudioRendererSink { 14 class MockAudioRendererSink : public AudioRendererSink {
15 public: 15 public:
16 MockAudioRendererSink(); 16 MockAudioRendererSink();
17 17
18 MOCK_METHOD0(Start, void()); 18 MOCK_METHOD0(Start, void());
19 MOCK_METHOD0(Stop, void()); 19 MOCK_METHOD0(Stop, void());
20 MOCK_METHOD0(Pause, void()); 20 MOCK_METHOD0(Pause, void());
21 MOCK_METHOD0(Play, void()); 21 MOCK_METHOD0(Play, void());
22 MOCK_METHOD1(SetVolume, bool(double volume)); 22 MOCK_METHOD1(SetVolume, bool(double volume));
23 23
24 virtual void Initialize(const AudioParameters& params, 24 virtual void Initialize(const AudioParameters& params,
25 RenderCallback* renderer) OVERRIDE; 25 RenderCallback* renderer) override;
26 AudioRendererSink::RenderCallback* callback() { return callback_; } 26 AudioRendererSink::RenderCallback* callback() { return callback_; }
27 27
28 protected: 28 protected:
29 virtual ~MockAudioRendererSink(); 29 virtual ~MockAudioRendererSink();
30 30
31 private: 31 private:
32 RenderCallback* callback_; 32 RenderCallback* callback_;
33 33
34 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererSink); 34 DISALLOW_COPY_AND_ASSIGN(MockAudioRendererSink);
35 }; 35 };
36 36
37 } // namespace media 37 } // namespace media
38 38
39 #endif // MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_ 39 #endif // MEDIA_BASE_MOCK_AUDIO_RENDERER_SINK_H_
OLDNEW
« no previous file with comments | « media/base/fake_text_track_stream.h ('k') | media/base/mock_filters.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698