Clean duplicated code. BUG=None TEST=Tested by clicking toggle-device. Change-Id: I3ef66b4ef7baba5e58abf7ab7b31ef9960e96fb3 Reviewed-on: https://chromium-review.googlesource.com/c/1245502 Reviewed-by: Heng-ruey Hsu <[email protected]> Tested-by: yuli <[email protected]>
Camera App is a packaged app designed to take photos and record videos.
Should work on any operating system, especially on Chrome OS.
To compile run “make all”, then drag the camera.crx package from the build directory to Chrome. Note, that currently building on Linux only is supported. However, the crx packages should work on any other operating system without problems.
To perform automated tests on Linux, run “make run-tests”. Note, that these tests are experimental. The script must be able to execute sudo without a password.
The automated tests run chromium with a testing package of the Camera app. The Camera app communicates with the python test runner via web sockets. Note, that you will need a usb web camera to be plugged in. Embedded notebook cameras may also work, depending on the model.