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

Side by Side Diff: content/browser/renderer_host/media/mock_media_observer.h

Issue 183743021: Implement MediaCaptureDevices. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: try again Created 6 years, 9 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 unified diff | Download patch
OLDNEW
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"
11 #include "content/public/browser/media_observer.h" 11 #include "content/public/browser/media_observer.h"
12 #include "media/audio/audio_parameters.h" 12 #include "media/audio/audio_parameters.h"
13 #include "media/base/media_log_event.h" 13 #include "media/base/media_log_event.h"
14 #include "testing/gmock/include/gmock/gmock.h" 14 #include "testing/gmock/include/gmock/gmock.h"
15 15
16 namespace content { 16 namespace content {
17 17
18 class MockMediaObserver : public MediaObserver { 18 class MockMediaObserver : public MediaObserver {
19 public: 19 public:
20 MockMediaObserver(); 20 MockMediaObserver();
21 virtual ~MockMediaObserver(); 21 virtual ~MockMediaObserver();
22 22
23 MOCK_METHOD1(OnAudioCaptureDevicesChanged,
24 void(const MediaStreamDevices& devices));
25 MOCK_METHOD1(OnVideoCaptureDevicesChanged,
26 void(const MediaStreamDevices& devices));
27 MOCK_METHOD6(OnMediaRequestStateChanged, 23 MOCK_METHOD6(OnMediaRequestStateChanged,
28 void(int render_process_id, int render_view_id, 24 void(int render_process_id, int render_view_id,
29 int page_request_id, const GURL& security_origin, 25 int page_request_id, const GURL& security_origin,
30 const MediaStreamDevice& device, 26 const MediaStreamDevice& device,
31 const MediaRequestState state)); 27 const MediaRequestState state));
32 }; 28 };
33 29
34 } // namespace content 30 } // namespace content
35 31
36 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ 32 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/media/media_stream_manager.cc ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698