commit | afe636676760df31a8db2f4b77bfd19faae52782 | [log] [tgz] |
---|---|---|
author | Prathmesh Prabhu <pprabhu@chromium.org> | Tue May 20 11:03:58 2014 -0700 |
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | Thu May 22 08:12:28 2014 +0000 |
tree | 8564819f0ef8ce4f63fd3c5cc07263ee3dc6eae8 | |
parent | 34c08639f3105c41e7b1dbdbb0240d2686652591 [diff] |
shill: cellular: Migrate |ParseScanResult| to use MobileOperatorInfo. |CellularCapabilityUniversal::ParseScanResult| and |CellularCapabilityGSM::ParseScanResult| were the last uses of |mobile_provider_db|. This CL migrates these function to use the new |MobileOperatorInfo| objects. With this, we no longer depend on mobile_provider_db. BUG=chromium:371630 TEST=- Test a user initiated scan request works correctly on e362, Gobi3K UMTS. - Test that user initiated scan works correctly when the operator name is not available from the modem. This situation can be simulated as follows: $ run_pseudomodem.py & $ connectivity show devices Verify that the 'Cellular.FoundNetworks' is absent from /device/pseudomodem0 $ dbus-send --system --dest=org.freedesktop.ModemManager1 \ /org/freedesktop/ModemManager1/SIM/0 \ org.freedesktop.DBus.Properties.Set \ string:'org.freedesktop.ModemManager1.Sim' \ string:'OperatorName' variant:string:'' $ dbus-send --system --dest=org.freedesktop.ModemManager1 \ /org/freedesktop/ModemManager1/Modem/0 \ org.freedesktop.DBus.Properties.Set \ string:'org.freedesktop.ModemManager1.Modem.Modem3gpp' \ string:'OperatorName' variant:string:'' $ dbus-send --system --dest=org.chromium.flimflam \ /device/pseudomodem0 org.chromium.flimflam.Device.ProposeScan Verify that the 'Cellular.FoundNetworks' is present and has the 'long_name' populated. Change-Id: I340217acb700eb1c8253c88c1b75851880033160 Reviewed-on: https://chromium-review.googlesource.com/200681 Reviewed-by: Thieu Le <thieule@chromium.org> Commit-Queue: Prathmesh Prabhu <pprabhu@chromium.org> Tested-by: Prathmesh Prabhu <pprabhu@chromium.org>