commit | 43956505d853dfc833b98f6916ef6348166f8d8d | [log] [tgz] |
---|---|---|
author | Sanjay Chouksey <sanjayc@google.com> | Sat Apr 11 00:18:47 2020 +0000 |
committer | CQ bot account: commit-bot@chromium.org <commit-bot@chromium.org> | Sat Apr 11 00:18:47 2020 +0000 |
tree | d2eb771b3846397ff17215e4cce9a7456150a237 | |
parent | 0f7e41aac3ef318d3799e21aac1c111b01c47e23 [diff] |
[ermine] Refactor AppModel for unittest This change adds a unittest for AppModel, the main respository of application level state in Ermine. The AppModel class is refactored to be able to take mock depedencies injected into its constructor. - minor renamings and tweaks. - tighten logic to confirm to expected behavior, with test coverage. Bug: 49908 Testing: Adds a unittest for almost 100% coverage on AppModel class. Change-Id: I953c7418b42872f225663cb23d250b2f3f66e4f0 Reviewed-on: https://fuchsia-review.googlesource.com/c/experiences/+/379582 Commit-Queue: Sanjay Chouksey <sanjayc@google.com> Reviewed-by: Chase Latta <chaselatta@google.com> Reviewed-by: Yeonhee Lee <yhlee@google.com>
This is a companion repository to Fuchsia and contains code that either implements or supports user facing code for the Fuchsia platform. The code provides a majority of the user interface for the Workstation product as well as a small set of examples, tests, and benchmarks.
This repository is a “source petal” included in the Fuchsia Platform Source Tree (FPST) checkout. Code in this repository must be built with Fuchsia in order to be functional, see (the guide)[https://fuchsia.dev/fuchsia-src/development/source_code] for instructions on getting the source.
Hardware support should be considered experimental. However, NUC's and Pixelbooks are known to work best. For details on hardware setup see: (Install Fuchsia on a Device)[https://fuchsia.dev/fuchsia-src/development/hardware/paving]
Once you have functional checkout you can (configure a build)[https://fuchsia.dev/fuchsia-src/development/build/fx#configure-a-build] targeting Workstation:
fx set workstation.<board> # For options run: `fx list-boards` fx build
See Fuchsia's (build and pave instructions)[https://fuchsia.dev/fuchsia-src/development/build/build_and_pave_quickstart] for detailed instructions.
Once built, standard Fuchsia workflows for paving, running code, and testing apply. See: (fx workflows)[https://fuchsia.dev/fuchsia-src/development/build/fx] for detailed instructions.