aboutsummaryrefslogtreecommitdiff
path: root/src/commands/cloud_command_proxy_unittest.cc
AgeCommit message (Collapse)Author
2016-03-01Applied clang-formatVitaly Buka
git clang-format -f weave/master~100 --style=file Change-Id: I94c111e81a59172c6e1ebb5d330f2d563fe43c15 Reviewed-on: https://weave-review.googlesource.com/2795 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-23Move mock_component_manager.h into test/ dirVitaly Buka
Change-Id: I4c3f95174a7fa83d9fc04fc75a89e4f908bb615a Reviewed-on: https://weave-review.googlesource.com/2707 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2016-02-01Add a unit tests for deleting CloudCommandProxy along with CommandInstanceAlex Vakulenko
When CommandInstance is deleted, it should trigger destruction of associated CloudCommandProxy. Add a unit test to confirm this is the case. BUG: 25707196 Change-Id: I95cadf60e99302d236f1bc67782b7315efcec6d6 Reviewed-on: https://weave-review.googlesource.com/2427 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2016-01-22Remove domain from weave::ErrorVitaly Buka
We don't filter out errors by domain in libweave. BUG:26071451 Change-Id: I2114450aca1c8ede71cc45f19bd8e71d3464cb73 Reviewed-on: https://weave-review.googlesource.com/2289 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2015-12-16ReformatVitaly Buka
Change-Id: Ia98499f9ada220151b24ecb8b60b02524d700bc4 Reviewed-on: https://weave-review.googlesource.com/1967 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2015-12-07Switch to use ComponentManager for traits/componentsAlex Vakulenko
Removed the old StateManager, CommandManager and related classes and switched over to using ComponentManager for all device trait and component definitions as well as device state. Change-Id: I99b99a935ba217703d31aa523a3124cca0fa3e90 Reviewed-on: https://weave-review.googlesource.com/1788 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2015-12-04Add "component" property to command instanceAlex Vakulenko
When sending commands, we'll use "component" to route the command to the target component it was designated for. As a temporary stop-gap, use "device" as the component name before we have full implementation of component/trait schema model. Also removed CommandDictionary from CommandInstance::FromJson since the validation will be done outside of JSON parsing code in the future Component Manager class. BUG: 25841719 Change-Id: I5c649c257fb48ecaaedc1ced84931009f94c2bb3 Reviewed-on: https://weave-review.googlesource.com/1764 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2015-12-01Remove CommandDefinition classAlex Vakulenko
In preparation for traits support, remove CommandDefinition class and incorporate the missing functionality into CommandDictionary. BUG: 25841719 Change-Id: Iead48aa0503e9de6061c4c1588b0b930dd82c8d0 Reviewed-on: https://weave-review.googlesource.com/1680 Reviewed-by: Alex Vakulenko <avakulenko@google.com>
2015-11-25Remove object schema type systemAlex Vakulenko
Since libweave no longer semantically parses command/state definitions and validates commands and states, there is no need for this extra code. BUG: 25841230 Change-Id: I53dfab20db8c97b621c07fe234a7b3c6da7325bb Reviewed-on: https://weave-review.googlesource.com/1660 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2015-11-24Remove object schema parsing in CommandDefinitionAlex Vakulenko
The only thing we now care about in CommandDefinition is the "minimalRole" field. Everything else is a black-box which we just forward to the server without any semantic parsing. Also completely removed command visibility support since it no longer applies to trait/component model. BUG: 25841230 Change-Id: Ie8fff57ffada289caa7876c2a53150bb116fd65b Reviewed-on: https://weave-review.googlesource.com/1617 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
2015-11-02Remove the unneeded libweave directoryPaul Westbrook
Change-Id: I30fd8c5626cf83da6415ffa14a2019ef43be9916 Reviewed-on: https://weave-review.googlesource.com/1450 Reviewed-by: Paul Westbrook <pwestbro@google.com>