| 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 "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 30 matching lines...) Expand all Loading... |
| 41 int stop_audio_device_counter() const { return stop_audio_device_counter_; } | 41 int stop_audio_device_counter() const { return stop_audio_device_counter_; } |
| 42 int stop_video_device_counter() const { return stop_video_device_counter_; } | 42 int stop_video_device_counter() const { return stop_video_device_counter_; } |
| 43 | 43 |
| 44 const std::string& stream_label() const { return stream_label_;} | 44 const std::string& stream_label() const { return stream_label_;} |
| 45 const StreamDeviceInfoArray& audio_input_array() const { | 45 const StreamDeviceInfoArray& audio_input_array() const { |
| 46 return audio_input_array_; | 46 return audio_input_array_; |
| 47 } | 47 } |
| 48 const StreamDeviceInfoArray& video_array() const { return video_array_; } | 48 const StreamDeviceInfoArray& video_array() const { return video_array_; } |
| 49 | 49 |
| 50 private: | 50 private: |
| 51 void AddAudioInputDeviceToArray(bool matched_output); | 51 void AddAudioInputDeviceToArray(bool matched_output, |
| 52 void AddVideoDeviceToArray(bool facing_user); | 52 const std::string& device_id); |
| 53 void AddVideoDeviceToArray(bool facing_user, const std::string& device_id); |
| 53 | 54 |
| 54 int audio_input_request_id_; | 55 int audio_input_request_id_; |
| 55 base::WeakPtr<MediaStreamDispatcherEventHandler> event_handler_; | 56 base::WeakPtr<MediaStreamDispatcherEventHandler> event_handler_; |
| 56 int request_stream_counter_; | 57 int request_stream_counter_; |
| 57 int stop_audio_device_counter_; | 58 int stop_audio_device_counter_; |
| 58 int stop_video_device_counter_; | 59 int stop_video_device_counter_; |
| 59 | 60 |
| 60 std::string stream_label_; | 61 std::string stream_label_; |
| 61 int session_id_; | 62 int session_id_; |
| 62 bool test_same_id_; | 63 bool test_same_id_; |
| 63 StreamDeviceInfoArray audio_input_array_; | 64 StreamDeviceInfoArray audio_input_array_; |
| 64 StreamDeviceInfoArray video_array_; | 65 StreamDeviceInfoArray video_array_; |
| 65 | 66 |
| 66 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher); | 67 DISALLOW_COPY_AND_ASSIGN(MockMediaStreamDispatcher); |
| 67 }; | 68 }; |
| 68 | 69 |
| 69 } // namespace content | 70 } // namespace content |
| 70 | 71 |
| 71 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ | 72 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_DISPATCHER_H_ |
| OLD | NEW |