commit | f86f97621b974ac4f3ec28054eb843d44baee575 | [log] [tgz] |
---|---|---|
author | Gabriel Kerneis <kerneis@google.com> | Thu Nov 22 15:39:04 2018 +0100 |
committer | Gabriel Kerneis <kerneis@google.com> | Fri Nov 23 16:08:33 2018 +0100 |
tree | 85d7fbc961cf2ddbd3ea8f176f69ee3f157b2981 | |
parent | e4b2ae963141e423e59c0866705e86b90d88bae7 [diff] |
[ledger] Use valid object digests in storage implementation tests Some tests in bin/ledger/storage/impl use fake (but coincidentally valid) object digests. This breaks them when we change the encoding of object digests, because the code in storage implementation contains validation of object digests in various places. - Switch BTreeUtilsTest, DiffTest, TreeNodeTest and PageDbTest to use valid digests created with MakeObjectDigest from storage_test_utils instead of fake ones. - Make fake digests generated by FakePageStorage harder to confuse with real digests (to ensure external clients of the fake don't rely on the digest format). - Also include a couple drive-by fixes to FakePageStorage and FakeDb. Test: ledger_unittests (in particular those listed above, which failed with the hardened fake digests) Change-Id: Ief24bf591e5d463cc3ca99c80ae27826b2f5412c Bug: LE-648
Peridot is a framework for composed, intelligent and distributed user experiences.
Applications not explicitly designed to interoperate (and possibly implemented in different programming languages) are ephemerally downloaded and dynamically composed to run in a shared context. The framework manages application lifecycle, resources and view hierarchy; and well as context and suggestion infrastructure.
State of Peridot experiences is transparently synchronized across user devices using a distributed offline-first storage system.