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 #pragma once | |
8 | 7 |
9 #include <string> | 8 #include <string> |
10 | 9 |
11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
12 #include "content/public/browser/media_observer.h" | 11 #include "content/public/browser/media_observer.h" |
13 #include "media/base/media_log_event.h" | 12 #include "media/base/media_log_event.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
15 | 14 |
16 class MockMediaObserver : public content::MediaObserver { | 15 class MockMediaObserver : public content::MediaObserver { |
17 public: | 16 public: |
(...skipping 12 matching lines...) Expand all Loading... |
30 void(int source, const media::MediaLogEvent& event)); | 29 void(int source, const media::MediaLogEvent& event)); |
31 MOCK_METHOD3(OnCaptureDevicesOpened, | 30 MOCK_METHOD3(OnCaptureDevicesOpened, |
32 void(int render_process_id, int render_view_id, | 31 void(int render_process_id, int render_view_id, |
33 const content::MediaStreamDevices& devices)); | 32 const content::MediaStreamDevices& devices)); |
34 MOCK_METHOD3(OnCaptureDevicesClosed, | 33 MOCK_METHOD3(OnCaptureDevicesClosed, |
35 void(int render_process_id, int render_view_id, | 34 void(int render_process_id, int render_view_id, |
36 const content::MediaStreamDevices& devices)); | 35 const content::MediaStreamDevices& devices)); |
37 }; | 36 }; |
38 | 37 |
39 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ | 38 #endif // CONTENT_BROWSER_RENDERER_HOST_MEDIA_MOCK_MEDIA_OBSERVER_H_ |
OLD | NEW |