| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "content/browser/renderer_host/media/media_observer.h" | 12 #include "content/browser/renderer_host/media/media_observer.h" |
| 13 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
| 14 | 14 |
| 15 class MockMediaObserver : public MediaObserver { | 15 class MockMediaObserver : public MediaObserver { |
| 16 public: | 16 public: |
| 17 MockMediaObserver(); | 17 MockMediaObserver(); |
| 18 virtual ~MockMediaObserver(); | 18 virtual ~MockMediaObserver(); |
| 19 | 19 |
| 20 MOCK_METHOD3(OnDeleteAudioStream, | 20 MOCK_METHOD2(OnDeleteAudioStream, |
| 21 void(void* host, int32 render_view, int stream_id)); | 21 void(void* host, int stream_id)); |
| 22 MOCK_METHOD4(OnSetAudioStreamPlaying, | 22 MOCK_METHOD3(OnSetAudioStreamPlaying, |
| 23 void(void* host, int32 render_view, int stream_id, | 23 void(void* host, int stream_id, bool playing)); |
| 24 bool playing)); | 24 MOCK_METHOD3(OnSetAudioStreamStatus, |
| 25 MOCK_METHOD4(OnSetAudioStreamStatus, | 25 void(void* host, int stream_id, const std::string& status)); |
| 26 void(void* host, int32 render_view, int stream_id, | 26 MOCK_METHOD3(OnSetAudioStreamVolume, |
| 27 const std::string& status)); | 27 void(void* host, int stream_id, double volume)); |
| 28 MOCK_METHOD4(OnSetAudioStreamVolume, | |
| 29 void(void* host, int32 render_view, int stream_id, | |
| 30 double volume)); | |
| 31 }; | 28 }; |
| 32 | 29 |
| 33 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ | 30 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ |
| OLD | NEW |