diff options
author | stevenjb <stevenjb@chromium.org> | 2015-07-24 12:30:05 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-07-24 19:31:05 +0000 |
commit | 8715a40e1c6e2b09199ac95778490321652f13fc (patch) | |
tree | 3bce959b0683edf2a1b12e44ec001b847f1f9b4d /chromeos | |
parent | 4f489e64ce17f7775d3b56b7e7fce630ff5fb521 (diff) | |
download | chromium_src-8715a40e1c6e2b09199ac95778490321652f13fc.zip chromium_src-8715a40e1c6e2b09199ac95778490321652f13fc.tar.gz chromium_src-8715a40e1c6e2b09199ac95778490321652f13fc.tar.bz2 |
Add network-apnlist to md-settings/internet
This adds support for selecting an existing Cellular APN
or specifying a custom one.
BUG=481563
Review URL: https://codereview.chromium.org/1246993004
Cr-Commit-Position: refs/heads/master@{#340312}
Diffstat (limited to 'chromeos')
-rw-r--r-- | chromeos/dbus/fake_shill_manager_client.cc | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chromeos/dbus/fake_shill_manager_client.cc b/chromeos/dbus/fake_shill_manager_client.cc index e8ca30b..a92fae1 100644 --- a/chromeos/dbus/fake_shill_manager_client.cc +++ b/chromeos/dbus/fake_shill_manager_client.cc @@ -828,6 +828,26 @@ void FakeShillManagerClient::SetupDefaultEnvironment() { services->SetServiceProperty(kCellularServicePath, shill::kRoamingStateProperty, base::StringValue(shill_roaming_state)); + + base::DictionaryValue apn; + apn.SetStringWithoutPathExpansion(shill::kApnProperty, "testapn"); + apn.SetStringWithoutPathExpansion(shill::kApnNameProperty, "Test APN"); + apn.SetStringWithoutPathExpansion(shill::kApnLocalizedNameProperty, + "Localized Test APN"); + apn.SetStringWithoutPathExpansion(shill::kApnUsernameProperty, "User1"); + apn.SetStringWithoutPathExpansion(shill::kApnPasswordProperty, "password"); + base::DictionaryValue apn2; + apn2.SetStringWithoutPathExpansion(shill::kApnProperty, "testapn2"); + services->SetServiceProperty(kCellularServicePath, + shill::kCellularApnProperty, apn); + services->SetServiceProperty(kCellularServicePath, + shill::kCellularLastGoodApnProperty, apn); + base::ListValue apn_list; + apn_list.Append(apn.DeepCopy()); + apn_list.Append(apn2.DeepCopy()); + devices->SetDeviceProperty("/device/cellular1", + shill::kCellularApnListProperty, apn_list); + profiles->AddService(shared_profile, kCellularServicePath); } |