• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Copyright 2015 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5AUTHOR = "Chrome OS Project, chromeos-video@google.com"
6NAME = "video_WebRtcCamera"
7PURPOSE = "Test getUserMedia camera acquisition and that we get sane video"
8CRITERIA = "This test will fail if WebRTC getUserMedia fails"
9ATTRIBUTES = "suite:av_webcam"
10TIME = "MEDIUM"
11TEST_CATEGORY = "Performance"
12TEST_CLASS = "video"
13TEST_TYPE = "client"
14BUG_TEMPLATE = {
15    "labels": ["OS-Chrome"],
16    "components": ["OS>Kernel>Video"],
17}
18
19DOC = """
20This test makes WebRTC GetUserMedia call and renders the camera's media
21stream in a video tag. It uses the real webcam on the device.
22
23This test will test VGA and 720p (if supported by the device) and check
24if the gUM call succeeds.
25
26The test also logs the number of black frames and frozen frames to perf
27(there should not be many such frames). Those performance statistics
28should be monitored in the perf dashboard; many frozen or black frames
29mean that the gUM call succeeded, but the CrOS device fails to deliver
30sane video frames.
31"""
32
33capability='usb_camera'
34job.run_test("video_WebRtcCamera", capability=capability)
35