summaryrefslogtreecommitdiffstats
path: root/content/common/media
diff options
context:
space:
mode:
authorwjia@chromium.org <wjia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-05 20:33:03 +0000
committerwjia@chromium.org <wjia@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-05 20:33:03 +0000
commit8c6844fc33ef1d2fc49b57e4b2187c1855d271cb (patch)
tree1441c349a07eb48fd8fa76871d0ed6276e9aa05e /content/common/media
parent015a0830d770bad838d50c4a86293e43ace61168 (diff)
downloadchromium_src-8c6844fc33ef1d2fc49b57e4b2187c1855d271cb.zip
chromium_src-8c6844fc33ef1d2fc49b57e4b2187c1855d271cb.tar.gz
chromium_src-8c6844fc33ef1d2fc49b57e4b2187c1855d271cb.tar.bz2
Add more tests for VideoCaptureImpl.
VideoCapture events are defined more restrictly now: Without error, StartCapture will result in one and only one OnStarted event for each client, one and only one OnDeviceInfoReceived event for master client, at least one OnDeviceInfoReceived event for regular client. Without error, StopCapture will result in one and only one OnStopped/OnRemoved event pair for each client. In case of error, all clients receive OnError/OnRemoved event pair. After OnRemoved event is sent to client, VideoCaptureImpl will never call that client. BUG=none TEST=trybots Review URL: http://codereview.chromium.org/8138013 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104167 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/common/media')
-rw-r--r--content/common/media/video_capture_messages.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/content/common/media/video_capture_messages.h b/content/common/media/video_capture_messages.h
index 00fe046..0a5e0e7 100644
--- a/content/common/media/video_capture_messages.h
+++ b/content/common/media/video_capture_messages.h
@@ -2,6 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "base/shared_memory.h"
#include "content/common/common_param_traits.h"
#include "ipc/ipc_message_macros.h"
#include "media/video/capture/video_capture.h"