OLD | NEW |
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 10 matching lines...) Expand all Loading... |
21 virtual ~MockMediaObserver(); | 21 virtual ~MockMediaObserver(); |
22 | 22 |
23 MOCK_METHOD1(OnAudioCaptureDevicesChanged, | 23 MOCK_METHOD1(OnAudioCaptureDevicesChanged, |
24 void(const MediaStreamDevices& devices)); | 24 void(const MediaStreamDevices& devices)); |
25 MOCK_METHOD1(OnVideoCaptureDevicesChanged, | 25 MOCK_METHOD1(OnVideoCaptureDevicesChanged, |
26 void(const MediaStreamDevices& devices)); | 26 void(const MediaStreamDevices& devices)); |
27 MOCK_METHOD4(OnMediaRequestStateChanged, | 27 MOCK_METHOD4(OnMediaRequestStateChanged, |
28 void(int render_process_id, int render_view_id, | 28 void(int render_process_id, int render_view_id, |
29 const MediaStreamDevice& device, | 29 const MediaStreamDevice& device, |
30 const MediaRequestState state)); | 30 const MediaRequestState state)); |
31 MOCK_METHOD4(OnAudioStreamPlayingChanged, | 31 MOCK_METHOD6(OnAudioStreamPlayingChanged, |
32 void(int render_process_id, | 32 void(int render_process_id, |
33 int render_view_id, | 33 int render_view_id, |
34 int stream_id, | 34 int stream_id, |
35 bool playing)); | 35 bool is_playing, |
| 36 float power_dBFS, |
| 37 bool clipped)); |
36 }; | 38 }; |
37 | 39 |
38 class MockMediaInternals : public MediaInternals { | 40 class MockMediaInternals : public MediaInternals { |
39 public: | 41 public: |
40 MockMediaInternals(); | 42 MockMediaInternals(); |
41 virtual ~MockMediaInternals(); | 43 virtual ~MockMediaInternals(); |
42 | 44 |
43 MOCK_METHOD2(OnDeleteAudioStream, | 45 MOCK_METHOD2(OnDeleteAudioStream, |
44 void(void* host, int stream_id)); | 46 void(void* host, int stream_id)); |
45 MOCK_METHOD3(OnSetAudioStreamPlaying, | 47 MOCK_METHOD3(OnSetAudioStreamPlaying, |
46 void(void* host, int stream_id, bool playing)); | 48 void(void* host, int stream_id, bool playing)); |
47 MOCK_METHOD3(OnSetAudioStreamStatus, | 49 MOCK_METHOD3(OnSetAudioStreamStatus, |
48 void(void* host, int stream_id, const std::string& status)); | 50 void(void* host, int stream_id, const std::string& status)); |
49 MOCK_METHOD3(OnSetAudioStreamVolume, | 51 MOCK_METHOD3(OnSetAudioStreamVolume, |
50 void(void* host, int stream_id, double volume)); | 52 void(void* host, int stream_id, double volume)); |
51 MOCK_METHOD2(OnMediaEvent, | 53 MOCK_METHOD2(OnMediaEvent, |
52 void(int source, const media::MediaLogEvent& event)); | 54 void(int source, const media::MediaLogEvent& event)); |
53 }; | 55 }; |
54 | 56 |
55 } // namespace content | 57 } // namespace content |
56 | 58 |
57 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ | 59 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ |
OLD | NEW |