wifi_sync: add ability to convert WifiCredential to onc properties
commit80674e39108f7c132716a5c8c9a9056ec4716d1e
authorquiche <quiche@chromium.org>
Sat, 10 Jan 2015 01:21:47 +0000 (9 17:21 -0800)
committerCommit bot <commit-bot@chromium.org>
Sat, 10 Jan 2015 01:22:45 +0000 (10 01:22 +0000)
tree355a8fc977cabb66d619376f31cf62fa59b30219
parent8c03af4290db10990cb4a0bb37cd2dbd4ea41605
wifi_sync: add ability to convert WifiCredential to onc properties

There will be a couple of places where we need to convert from
a WifiCredential, to a DictionaryValue of ONC properties. So let's
put the conversion code someplace where it can be re-used.

The two places we'll need to convert a WifiCredential to ONC
properties will be WifiConfigDelegate and sync integration tests.
Both will need ONC properties to create a network in the
platform-specific network configuration for ChromeOS.

BUG=chromium:431435
TEST=components_unittests --gtest_filter="Wifi*"

Review URL: https://codereview.chromium.org/809803005

Cr-Commit-Position: refs/heads/master@{#310930}
components/components_tests.gyp
components/wifi_sync/BUILD.gn
components/wifi_sync/network_state_helper_chromeos.cc
components/wifi_sync/wifi_credential.cc
components/wifi_sync/wifi_credential.h
components/wifi_sync/wifi_credential_unittest.cc [new file with mode: 0644]