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

Unified Diff: content/browser/renderer_host/media/mock_media_observer.h

Issue 12153002: Move chrome://media-internals to content. This allows us to hide implementation details from the pu… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/media/mock_media_observer.h
===================================================================
--- content/browser/renderer_host/media/mock_media_observer.h (revision 179909)
+++ content/browser/renderer_host/media/mock_media_observer.h (working copy)
@@ -8,6 +8,7 @@
#include <string>
#include "base/basictypes.h"
+#include "content/browser/media/media_internals.h"
#include "content/public/browser/media_observer.h"
#include "media/base/media_log_event.h"
#include "testing/gmock/include/gmock/gmock.h"
@@ -19,16 +20,6 @@
MockMediaObserver();
virtual ~MockMediaObserver();
- MOCK_METHOD2(OnDeleteAudioStream,
- void(void* host, int stream_id));
- MOCK_METHOD3(OnSetAudioStreamPlaying,
- void(void* host, int stream_id, bool playing));
- MOCK_METHOD3(OnSetAudioStreamStatus,
- void(void* host, int stream_id, const std::string& status));
- MOCK_METHOD3(OnSetAudioStreamVolume,
- void(void* host, int stream_id, double volume));
- MOCK_METHOD2(OnMediaEvent,
- void(int source, const media::MediaLogEvent& event));
MOCK_METHOD3(OnCaptureDevicesOpened,
void(int render_process_id, int render_view_id,
const MediaStreamDevices& devices));
@@ -45,6 +36,23 @@
const MediaRequestState state));
};
+class MockMediaInternals : public MediaInternals {
scherkus (not reviewing) 2013/02/01 02:05:17 hmmmm I wonder how useful these mocks object are..
jam 2013/02/01 02:18:22 i strongly dislike gmock :)
+ public:
+ MockMediaInternals();
+ virtual ~MockMediaInternals();
+
+ MOCK_METHOD2(OnDeleteAudioStream,
+ void(void* host, int stream_id));
+ MOCK_METHOD3(OnSetAudioStreamPlaying,
+ void(void* host, int stream_id, bool playing));
+ MOCK_METHOD3(OnSetAudioStreamStatus,
+ void(void* host, int stream_id, const std::string& status));
+ MOCK_METHOD3(OnSetAudioStreamVolume,
+ void(void* host, int stream_id, double volume));
+ MOCK_METHOD2(OnMediaEvent,
+ void(int source, const media::MediaLogEvent& event));
+};
+
} // namespace content
#endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698