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