| 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_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ | 6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "content/renderer/media/media_stream_dispatcher.h" | 10 #include "content/renderer/media/media_stream_dispatcher.h" |
| 11 #include "googleurl/src/gurl.h" | 11 #include "googleurl/src/gurl.h" |
| 12 | 12 |
| 13 namespace content { |
| 14 |
| 13 // This class is a mock implementation of MediaStreamDispatcher. | 15 // This class is a mock implementation of MediaStreamDispatcher. |
| 14 class MockMediaStreamDispatcher : public MediaStreamDispatcher { | 16 class MockMediaStreamDispatcher : public MediaStreamDispatcher { |
| 15 public: | 17 public: |
| 16 MockMediaStreamDispatcher(); | 18 MockMediaStreamDispatcher(); |
| 17 virtual ~MockMediaStreamDispatcher(); | 19 virtual ~MockMediaStreamDispatcher(); |
| 18 | 20 |
| 19 virtual void GenerateStream( | 21 virtual void GenerateStream( |
| 20 int request_id, | 22 int request_id, |
| 21 const base::WeakPtr<MediaStreamDispatcherEventHandler>&, | 23 const base::WeakPtr<MediaStreamDispatcherEventHandler>&, |
| 22 const media_stream::StreamOptions& components, | 24 const media_stream::StreamOptions& components, |
| (...skipping 18 matching lines...) Expand all Loading... |
| 41 base::WeakPtr<MediaStreamDispatcherEventHandler> event_handler_; | 43 base::WeakPtr<MediaStreamDispatcherEventHandler> event_handler_; |
| 42 int stop_stream_counter_; | 44 int stop_stream_counter_; |
| 43 | 45 |
| 44 std::string stream_label_; | 46 std::string stream_label_; |
| 45 media_stream::StreamDeviceInfoArray audio_array_; | 47 media_stream::StreamDeviceInfoArray audio_array_; |
| 46 media_stream::StreamDeviceInfoArray video_array_; | 48 media_stream::StreamDeviceInfoArray video_array_; |
| 47 | 49 |
| 48 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher); | 50 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher); |
| 49 }; | 51 }; |
| 50 | 52 |
| 53 } // namespace content |
| 54 |
| 51 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ | 55 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ |
| OLD | NEW |