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

Side by Side Diff: content/browser/renderer_host/media/mock_media_observer.h

Issue 11573066: Add a method to tab_utils.h to find out whether a tab is playing audio. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 10 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
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 CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 16 matching lines...) Expand all
27 void(int render_process_id, int render_view_id, 27 void(int render_process_id, int render_view_id,
28 const MediaStreamDevices& devices)); 28 const MediaStreamDevices& devices));
29 MOCK_METHOD1(OnAudioCaptureDevicesChanged, 29 MOCK_METHOD1(OnAudioCaptureDevicesChanged,
30 void(const MediaStreamDevices& devices)); 30 void(const MediaStreamDevices& devices));
31 MOCK_METHOD1(OnVideoCaptureDevicesChanged, 31 MOCK_METHOD1(OnVideoCaptureDevicesChanged,
32 void(const MediaStreamDevices& devices)); 32 void(const MediaStreamDevices& devices));
33 MOCK_METHOD4(OnMediaRequestStateChanged, 33 MOCK_METHOD4(OnMediaRequestStateChanged,
34 void(int render_process_id, int render_view_id, 34 void(int render_process_id, int render_view_id,
35 const MediaStreamDevice& device, 35 const MediaStreamDevice& device,
36 const MediaRequestState state)); 36 const MediaRequestState state));
37 MOCK_METHOD4(OnAudioStreamPlayingChanged,
38 void(int render_process_id,
39 int render_view_id,
40 int stream_id,
41 bool playing));
37 }; 42 };
38 43
39 class MockMediaInternals : public MediaInternals { 44 class MockMediaInternals : public MediaInternals {
40 public: 45 public:
41 MockMediaInternals(); 46 MockMediaInternals();
42 virtual ~MockMediaInternals(); 47 virtual ~MockMediaInternals();
43 48
44 MOCK_METHOD2(OnDeleteAudioStream, 49 MOCK_METHOD2(OnDeleteAudioStream,
45 void(void* host, int stream_id)); 50 void(void* host, int stream_id));
46 MOCK_METHOD3(OnSetAudioStreamPlaying, 51 MOCK_METHOD3(OnSetAudioStreamPlaying,
47 void(void* host, int stream_id, bool playing)); 52 void(void* host, int stream_id, bool playing));
48 MOCK_METHOD3(OnSetAudioStreamStatus, 53 MOCK_METHOD3(OnSetAudioStreamStatus,
49 void(void* host, int stream_id, const std::string& status)); 54 void(void* host, int stream_id, const std::string& status));
50 MOCK_METHOD3(OnSetAudioStreamVolume, 55 MOCK_METHOD3(OnSetAudioStreamVolume,
51 void(void* host, int stream_id, double volume)); 56 void(void* host, int stream_id, double volume));
52 MOCK_METHOD2(OnMediaEvent, 57 MOCK_METHOD2(OnMediaEvent,
53 void(int source, const media::MediaLogEvent& event)); 58 void(int source, const media::MediaLogEvent& event));
54 }; 59 };
55 60
56 } // namespace content 61 } // namespace content
57 62
58 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ 63 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/audio_renderer_host.cc ('k') | content/public/browser/media_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698