From d75386c7f9a18276ef670fa96e099c3687c598f5 Mon Sep 17 00:00:00 2001 From: "armansito@chromium.org" Date: Sat, 17 Aug 2013 00:16:21 +0000 Subject: onc: Added code to specially handle Cellular.ServingOperator for cellular. Modified the code such that the Cellular.ServingOperator property of a cellular service gets translated properly into a nested dictionary. BUG=272341 R=pneubeck@chromium.org Review URL: https://codereview.chromium.org/23276002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@218126 0039d316-1c4b-4281-b951-d872f2087c98 --- chromeos/test/data/network/shill_cellular_with_state.json | 11 +++++++++++ .../network/translation_of_shill_cellular_with_state.onc | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 chromeos/test/data/network/shill_cellular_with_state.json create mode 100644 chromeos/test/data/network/translation_of_shill_cellular_with_state.onc (limited to 'chromeos/test') diff --git a/chromeos/test/data/network/shill_cellular_with_state.json b/chromeos/test/data/network/shill_cellular_with_state.json new file mode 100644 index 0000000..de1f21c --- /dev/null +++ b/chromeos/test/data/network/shill_cellular_with_state.json @@ -0,0 +1,11 @@ +{ + "Type": "cellular", + "Name": "Test Network", + "Cellular.ActivateOverNonCellularNetwork": false, + "Cellular.ActivationState": "activated", + "Cellular.ServingOperator": { + "code": "test-code", + "country": "test-country", + "name" : "test-name" + } +} diff --git a/chromeos/test/data/network/translation_of_shill_cellular_with_state.onc b/chromeos/test/data/network/translation_of_shill_cellular_with_state.onc new file mode 100644 index 0000000..77bd029 --- /dev/null +++ b/chromeos/test/data/network/translation_of_shill_cellular_with_state.onc @@ -0,0 +1,13 @@ +{ + "Type": "Cellular", + "Name": "Test Network", + "Cellular": { + "ActivateOverNonCellularNetwork": false, + "ActivationState": "activated", + "ServingOperator": { + "Code": "test-code", + "Country": "test-country", + "Name": "test-name" + } + } +} -- cgit v1.1