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

Side by Side Diff: content/renderer/media/video_capture_impl_unittest.cc

Issue 83793004: Implement IPCs and VideoCapture::Client interfaces for texture capture (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: e296ac98 Win32 bits. 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 | Annotate | Revision Log
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 #include "base/message_loop/message_loop.h" 5 #include "base/message_loop/message_loop.h"
6 #include "base/run_loop.h" 6 #include "base/run_loop.h"
7 #include "content/child/child_process.h" 7 #include "content/child/child_process.h"
8 #include "content/common/media/video_capture_messages.h" 8 #include "content/common/media/video_capture_messages.h"
9 #include "content/renderer/media/video_capture_impl.h" 9 #include "content/renderer/media/video_capture_impl.h"
10 #include "media/base/bind_to_current_loop.h" 10 #include "media/base/bind_to_current_loop.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 const media::VideoCaptureParams& params) { 73 const media::VideoCaptureParams& params) {
74 OnStateChanged(VIDEO_CAPTURE_STATE_STARTED); 74 OnStateChanged(VIDEO_CAPTURE_STATE_STARTED);
75 } 75 }
76 76
77 void DevicePauseCapture(int device_id) {} 77 void DevicePauseCapture(int device_id) {}
78 78
79 void DeviceStopCapture(int device_id) { 79 void DeviceStopCapture(int device_id) {
80 OnStateChanged(VIDEO_CAPTURE_STATE_STOPPED); 80 OnStateChanged(VIDEO_CAPTURE_STATE_STOPPED);
81 } 81 }
82 82
83 void DeviceReceiveEmptyBuffer(int device_id, int buffer_id) {} 83 void DeviceReceiveEmptyBuffer(int device_id,
84 int buffer_id,
85 uint32 sync_point) {}
84 86
85 void DeviceGetSupportedFormats(int device_id, 87 void DeviceGetSupportedFormats(int device_id,
86 media::VideoCaptureSessionId session_id) { 88 media::VideoCaptureSessionId session_id) {
87 // When the mock message filter receives a request for the device 89 // When the mock message filter receives a request for the device
88 // supported formats, replies immediately with an empty format list. 90 // supported formats, replies immediately with an empty format list.
89 OnDeviceSupportedFormatsEnumerated( 91 OnDeviceSupportedFormatsEnumerated(
90 media::VideoCaptureFormats()); 92 media::VideoCaptureFormats());
91 } 93 }
92 94
93 void DeviceGetFormatsInUse(int device_id, 95 void DeviceGetFormatsInUse(int device_id,
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 base::Unretained(client.get())); 281 base::Unretained(client.get()));
280 video_capture_impl_->GetDeviceFormatsInUse(callback); 282 video_capture_impl_->GetDeviceFormatsInUse(callback);
281 video_capture_impl_->DeInit( 283 video_capture_impl_->DeInit(
282 media::BindToCurrentLoop(run_loop_.QuitClosure())); 284 media::BindToCurrentLoop(run_loop_.QuitClosure()));
283 run_loop_.Run(); 285 run_loop_.Run();
284 286
285 EXPECT_TRUE(formats_in_use.empty()); 287 EXPECT_TRUE(formats_in_use.empty());
286 } 288 }
287 289
288 } // namespace content 290 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/video_capture_impl.cc ('k') | content/renderer/media/video_capture_message_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698