| 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 #include "base/message_loop/message_loop.h" | 5 #include "base/message_loop/message_loop.h" |
| 6 #include "content/child/child_process.h" | 6 #include "content/child/child_process.h" |
| 7 #include "content/common/media/video_capture_messages.h" | 7 #include "content/common/media/video_capture_messages.h" |
| 8 #include "content/renderer/media/video_capture_impl.h" | 8 #include "content/renderer/media/video_capture_impl.h" |
| 9 #include "media/base/bind_to_current_loop.h" | 9 #include "media/base/bind_to_current_loop.h" |
| 10 #include "testing/gmock/include/gmock/gmock.h" | 10 #include "testing/gmock/include/gmock/gmock.h" |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 } | 73 } |
| 74 | 74 |
| 75 void DevicePauseCapture(int device_id) {} | 75 void DevicePauseCapture(int device_id) {} |
| 76 | 76 |
| 77 void DeviceStopCapture(int device_id) { | 77 void DeviceStopCapture(int device_id) { |
| 78 OnStateChanged(VIDEO_CAPTURE_STATE_STOPPED); | 78 OnStateChanged(VIDEO_CAPTURE_STATE_STOPPED); |
| 79 } | 79 } |
| 80 | 80 |
| 81 void DeviceReceiveEmptyBuffer(int device_id, | 81 void DeviceReceiveEmptyBuffer(int device_id, |
| 82 int buffer_id, | 82 int buffer_id, |
| 83 uint32 sync_point) {} | 83 const std::vector<uint32>& sync_points) {} |
| 84 | 84 |
| 85 void DeviceGetSupportedFormats(int device_id, | 85 void DeviceGetSupportedFormats(int device_id, |
| 86 media::VideoCaptureSessionId session_id) { | 86 media::VideoCaptureSessionId session_id) { |
| 87 // When the mock message filter receives a request for the device | 87 // When the mock message filter receives a request for the device |
| 88 // supported formats, replies immediately with an empty format list. | 88 // supported formats, replies immediately with an empty format list. |
| 89 OnDeviceSupportedFormatsEnumerated( | 89 OnDeviceSupportedFormatsEnumerated( |
| 90 media::VideoCaptureFormats()); | 90 media::VideoCaptureFormats()); |
| 91 } | 91 } |
| 92 | 92 |
| 93 void DeviceGetFormatsInUse(int device_id, | 93 void DeviceGetFormatsInUse(int device_id, |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 271 StartCapture(1, params_large_); | 271 StartCapture(1, params_large_); |
| 272 StopCapture(0); | 272 StopCapture(0); |
| 273 StopCapture(1); | 273 StopCapture(1); |
| 274 DeInit(); | 274 DeInit(); |
| 275 DCHECK(video_capture_impl_->capture_params().requested_format | 275 DCHECK(video_capture_impl_->capture_params().requested_format |
| 276 .frame_size == | 276 .frame_size == |
| 277 params_small_.requested_format.frame_size); | 277 params_small_.requested_format.frame_size); |
| 278 } | 278 } |
| 279 | 279 |
| 280 } // namespace content | 280 } // namespace content |
| OLD | NEW |