History log of /external/libweave/src/weave_unittest.cc
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6a1ba84d9b295dcc0c8f50b580182a665c4aa8ce 01-Feb-2016 Vitaly Buka <vitalybuka@google.com> Changed meaning of some SSID flags

Added "WiFi 2.4Ghz" support flag.
Added "WiFi 5.0Ghz" support flag.
Make "WiFi Setup" flag more aggressive, (!online && !configured).

BUG: 26570030
BUG: 25820726
BUG: 22558499

Change-Id: I6fedc6abe863ab1de40ad5b0763ece2369b61c06
Reviewed-on: https://weave-review.googlesource.com/2436
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/weave_unittest.cc
ac18fcf3e15a74d9980ea6b09d2482a86d7fdf18 15-Jan-2016 Vitaly Buka <vitalybuka@google.com> Merge: Add write callback into SaveSettings function

Saving critical settings needs confirmation.
When command alters device config, it should be set "Done" only after
settings are actually saved.

BUG:25776798
Reviewed-on: https://weave-review.googlesource.com/2199
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
(cherry picked from commit 42e508f2559e019d2fcc8f88adfd184b7a6bc3a4)

Change-Id: I693e3c17b3f2f707c8df7af29eefd48362980bce
Reviewed-on: https://weave-review.googlesource.com/2421
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/weave_unittest.cc
d1e6c4ffefd875409426388ec54cc122253a05bb 15-Jan-2016 Vitaly Buka <vitalybuka@google.com> Merge: Add |name| into LoadSettings/SaveSettings

Libweave needs to store more than one config file.

BUG:25776798

Reviewed-on: https://weave-review.googlesource.com/2198
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
(cherry picked from commit 7ecdf959f10b62f192be867c280a7885626d6b85)

Change-Id: I00ce2ef4e7d272d1a7cfaf73d1802429d4f73831
Reviewed-on: https://weave-review.googlesource.com/2420
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/weave_unittest.cc
48a8669ddc2e8d785aad9ad18a5abbf8f1224fde 22-Jan-2016 Vitaly Buka <vitalybuka@google.com> Remove domain from weave::Error

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>
/external/libweave/src/weave_unittest.cc
0a8ab9973e1fdf6b41d8f7b49529c9bd97a9071c 11-Jan-2016 Vitaly Buka <vitalybuka@google.com> Don't allow registration of registered device

Device first needs to be factory reset.

BUG: 26427523

Change-Id: I82102fccaaad87f125ae4d124b1c17f984b39b46
Reviewed-on: https://weave-review.googlesource.com/2169
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/weave_unittest.cc
2d24e0ea050085e91bb8282a0408561d6a17797a 10-Dec-2015 Vitaly Buka <vitalybuka@google.com> Return Root Client Authorization Token using /privet/v3/accessControl/*

RCAT is returned in /privet/v3/accessControl/claim results.
Then client needs to store token and call
/privet/v3/accessControl/confirm with original or derived token.
Depending on result of confirm call client may:
1. No error - Start using token
2. Request error - retry confirm step
3. Unknown token - claim access again
4. Already claimed error - to late, someone else claimed device

BUG=25766815, 26143922

Change-Id: I9d25004e84210142214e6eb0a23d8e3ae7b57d6a
Reviewed-on: https://weave-review.googlesource.com/1885
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/weave_unittest.cc
34668e731bb194b443bc0e6029d6d3583f08de28 15-Dec-2015 Vitaly Buka <vitalybuka@google.com> Reformat

Change-Id: Ia98499f9ada220151b24ecb8b60b02524d700bc4
Reviewed-on: https://weave-review.googlesource.com/1967
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/weave_unittest.cc
72d8d1611efb8c0dd87d466e971bea9468b7c3a1 10-Dec-2015 Vitaly Buka <vitalybuka@google.com> Upload local auth data

Code still does not reset local_auth_info_changed. For now we will
update info on every refresh of access token.

BUG:25934771
Change-Id: Iab639395b7fc8dbba57769a8a018180fc8f1b0e1
Reviewed-on: https://weave-review.googlesource.com/1828
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/weave_unittest.cc
7717d93d22d34c9974ca09bf6bde95a3caa75bcb 07-Dec-2015 Vitaly Buka <vitalybuka@google.com> Support HTTP responses with no body

Successful upsertLocalAuthInfo cloud requests returns no body and no
content type.

BUG=25766813

Change-Id: Id4deb57c8dfea04196f77c80b6f40ce62db9fa6f
Reviewed-on: https://weave-review.googlesource.com/1799
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/weave_unittest.cc
551a82bbefbfd6dc83309eec440a41ca737062b4 07-Dec-2015 Alex Vakulenko <avakulenko@google.com> Add support of Components/Traits to local privet APIs

Added support for new privet APIs /privet/v3/traits and
/privet/v3/components to obtain the full trait/component trees
as well as expanded the existing /privet/v3/checkForUpdates to
include the component/trait fingerprints.

BUG: 25917521
Change-Id: Ib753817f88f611935057ca7bd1a1bf02addfb69c
Reviewed-on: https://weave-review.googlesource.com/1791
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/weave_unittest.cc
2c7740aac024de03aafcf09ee69f157384d44038 30-Nov-2015 Alex Vakulenko <avakulenko@google.com> Remove CommandDefinition class

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>
/external/libweave/src/weave_unittest.cc
7e894da1c5fcc4fafa6cc69b612c9c14f78aed51 23-Nov-2015 Alex Vakulenko <avakulenko@google.com> Remove object schema parsing in CommandDefinition

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>
/external/libweave/src/weave_unittest.cc
88272d5b9e88dfd253c18aea4792fe57ee51696d 18-Nov-2015 Vitaly Buka <vitalybuka@google.com> Replace clouddevices with weave in documentation and tests
Removed OAuth scope parameter as optional.

BUG:25627281

Change-Id: I1b2bce5b86fd7a0be89c446b5a13cc9c49244992
Reviewed-on: https://weave-review.googlesource.com/1538
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/weave_unittest.cc
efee3a281cddd7975d4f732bf8179b1e32ce6806 18-Nov-2015 Alex Vakulenko <avakulenko@google.com> Add support for long-poll HTTP request at /privet/v3/checkForUpdates

Added state/command definition notification mechanism through a long
poll HTTP request as described in:
https://developers.google.com/cloud-devices/v1/reference/local-api/check_for_updates

BUG: 23908251
Change-Id: I5285403f35f23a310404d3324a7a255b77211264
Reviewed-on: https://weave-review.googlesource.com/1533
Reviewed-by: Vitaly Buka <vitalybuka@google.com>
/external/libweave/src/weave_unittest.cc
0d7aac840eaf1cfc14af1e5e39f3fe281d86ead5 17-Nov-2015 Vitaly Buka <vitalybuka@google.com> Replace https://www.googleapis.com/clouddevices/v1/ with
https://www.googleapis.com/weave/v1.

BUG:25627281
Change-Id: I88c00ac04c4431a1646cfdf6b16e27f72d0b878e
Reviewed-on: https://weave-review.googlesource.com/1530
Reviewed-by: Alex Vakulenko <avakulenko@google.com>
/external/libweave/src/weave_unittest.cc
65e1f21f13102b076156e2e6a07486c06f5b25d1 06-Nov-2015 Vitaly Buka <vitalybuka@google.com> Fix behavior of bootstrap manager after monitoring timeout was reached

StartMonitoring resets monitor_until_ member always.
ContinueMonitoring resets monitor_until_ only for online state as we
don't have timeout in this state.

Removed check for last_configured_ssid.empty() from
UpdateConnectionState because we should shutdown bootstrapping if device
is connected using other interface.

BUG:25463084

Change-Id: I0afd943f4a3ca797b65a51236103ea3d345828d2
Reviewed-on: https://weave-review.googlesource.com/1473
Reviewed-by: Paul Westbrook <pwestbro@google.com>
/external/libweave/src/weave_unittest.cc
5a1f600e9d7d26c36b3e22ff0dc0ae9e3b2425fc 02-Nov-2015 Paul Westbrook <pwestbro@google.com> Remove the unneeded libweave directory

Change-Id: I30fd8c5626cf83da6415ffa14a2019ef43be9916
Reviewed-on: https://weave-review.googlesource.com/1450
Reviewed-by: Paul Westbrook <pwestbro@google.com>
/external/libweave/src/weave_unittest.cc