commit | 0a3a3a575fb049f01d947e85d82835f379429303 | [log] [tgz] |
---|---|---|
author | Ben Chan <benchan@chromium.org> | Wed Jul 10 11:34:07 2013 -0700 |
committer | ChromeBot <chrome-bot@google.com> | Thu Jul 11 04:26:08 2013 -0700 |
tree | 6b1001022424cad516524afc5490ac44a7cc116a | |
parent | 856b8848e200a30006502c90f567923135454cf4 [diff] |
shill: Generalize and extend DBusProperties to support more DBus types. This CL modifies DBusProperties as follows: 1. Refactor code in DBusProperties::Get* methods into a template GetValue() method. 2. Add new DBusProperties::Get* methods for the following DBus types: int16, int64, uint8, uint64, double, dict<string, variant> 3. Refactor unit tests for DBusProperties::Get* into typed tests and add additional test coverage. 4. Change the DBusProperties::ConvertKeyValueStoreToMap method to also support vector<string>. BUG=chromium:259019 TEST=Build and run unit tests. Change-Id: I714572746116d79ba140da85e205fb3d3e6e2f55 Reviewed-on: https://gerrit.chromium.org/gerrit/61446 Reviewed-by: mukesh agrawal <quiche@chromium.org> Commit-Queue: Ben Chan <benchan@chromium.org> Tested-by: Ben Chan <benchan@chromium.org>