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]>
1 file changed
tree: b2d67a2b2398b10f95c2d0f4ee811b575fc7863b
  1. dev-keys/
  2. src/
  3. tests/
  4. utils/
  5. Makefile
  6. PRESUBMIT.cfg
  7. README.md
README.md

Camera App

Camera App is a packaged app designed to take photos and record videos.

Supported systems

Should work on any operating system, especially on Chrome OS.

Compiling and installing

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.

Automated tests

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.

Known issues

http:///crbug.com/?q=Cr%3DPlatform-Apps-Camera