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 5 AUTHOR = "Chrome OS Project, chromeos-video (a] google.com" 6 NAME = "video_WebRtcCamera" 7 PURPOSE = "Test getUserMedia camera acquisition and that we get sane video" 8 CRITERIA = "This test will fail if WebRTC getUserMedia fails" 9 ATTRIBUTES = "suite:av_webcam" 10 TIME = "MEDIUM" 11 TEST_CATEGORY = "Performance" 12 TEST_CLASS = "video" 13 TEST_TYPE = "client" 14 DEPENDENCIES = "webcam" 15 BUG_TEMPLATE = { 16 "labels": ["OS-Chrome"], 17 "components": ["OS>Kernel>Video"], 18 } 19 20 DOC = """ 21 This test makes WebRTC GetUserMedia call and renders the camera's media 22 stream in a video tag. It uses the real webcam on the device. 23 24 This test will test VGA and 720p (if supported by the device) and check 25 if the gUM call succeeds. 26 27 The test also logs the number of black frames and frozen frames to perf 28 (there should not be many such frames). Those performance statistics 29 should be monitored in the perf dashboard; many frozen or black frames 30 mean that the gUM call succeeded, but the CrOS device fails to deliver 31 sane video frames. 32 """ 33 34 job.run_test("video_WebRtcCamera") 35