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_METHOD5(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_in_dbfs)); |
36 }; | 37 }; |
37 | 38 |
38 class MockMediaInternals : public MediaInternals { | 39 class MockMediaInternals : public MediaInternals { |
39 public: | 40 public: |
40 MockMediaInternals(); | 41 MockMediaInternals(); |
41 virtual ~MockMediaInternals(); | 42 virtual ~MockMediaInternals(); |
42 | 43 |
43 MOCK_METHOD2(OnDeleteAudioStream, | 44 MOCK_METHOD2(OnDeleteAudioStream, |
44 void(void* host, int stream_id)); | 45 void(void* host, int stream_id)); |
45 MOCK_METHOD3(OnSetAudioStreamPlaying, | 46 MOCK_METHOD3(OnSetAudioStreamPlaying, |
46 void(void* host, int stream_id, bool playing)); | 47 void(void* host, int stream_id, bool playing)); |
47 MOCK_METHOD3(OnSetAudioStreamStatus, | 48 MOCK_METHOD3(OnSetAudioStreamStatus, |
48 void(void* host, int stream_id, const std::string& status)); | 49 void(void* host, int stream_id, const std::string& status)); |
49 MOCK_METHOD3(OnSetAudioStreamVolume, | 50 MOCK_METHOD3(OnSetAudioStreamVolume, |
50 void(void* host, int stream_id, double volume)); | 51 void(void* host, int stream_id, double volume)); |
51 MOCK_METHOD2(OnMediaEvent, | 52 MOCK_METHOD2(OnMediaEvent, |
52 void(int source, const media::MediaLogEvent& event)); | 53 void(int source, const media::MediaLogEvent& event)); |
53 }; | 54 }; |
54 | 55 |
55 } // namespace content | 56 } // namespace content |
56 | 57 |
57 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ | 58 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ |
OLD | NEW |