Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(147)

Side by Side Diff: chromeos/dbus/fake_shill_manager_client.cc

Issue 2592383003: MD Settings: Switch cr_network_icon to use svg icons (Closed)
Patch Set: Rebase Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chromeos/dbus/fake_shill_manager_client.h" 5 #include "chromeos/dbus/fake_shill_manager_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
826 shill::kTypeCellular, 826 shill::kTypeCellular,
827 state, 827 state,
828 add_to_visible); 828 add_to_visible);
829 base::StringValue technology_value(cellular_technology_); 829 base::StringValue technology_value(cellular_technology_);
830 devices->SetDeviceProperty("/device/cellular1", 830 devices->SetDeviceProperty("/device/cellular1",
831 shill::kTechnologyFamilyProperty, 831 shill::kTechnologyFamilyProperty,
832 technology_value); 832 technology_value);
833 services->SetServiceProperty(kCellularServicePath, 833 services->SetServiceProperty(kCellularServicePath,
834 shill::kNetworkTechnologyProperty, 834 shill::kNetworkTechnologyProperty,
835 technology_value); 835 technology_value);
836 base::FundamentalValue strength_value(50);
837 services->SetServiceProperty(
838 kCellularServicePath, shill::kSignalStrengthProperty, strength_value);
836 839
837 if (activated) { 840 if (activated) {
838 services->SetServiceProperty( 841 services->SetServiceProperty(
839 kCellularServicePath, 842 kCellularServicePath,
840 shill::kActivationStateProperty, 843 shill::kActivationStateProperty,
841 base::StringValue(shill::kActivationStateActivated)); 844 base::StringValue(shill::kActivationStateActivated));
842 services->SetServiceProperty(kCellularServicePath, 845 services->SetServiceProperty(kCellularServicePath,
843 shill::kConnectableProperty, 846 shill::kConnectableProperty,
844 base::FundamentalValue(true)); 847 base::FundamentalValue(true));
845 } else { 848 } else {
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
1235 LOG(WARNING) << "Invalid state: " << state << " for " << type; 1238 LOG(WARNING) << "Invalid state: " << state << " for " << type;
1236 result = shill::kStateIdle; 1239 result = shill::kStateIdle;
1237 } 1240 }
1238 } 1241 }
1239 VLOG(1) << "Initial state for: " << type << " = " << result 1242 VLOG(1) << "Initial state for: " << type << " = " << result
1240 << " Enabled: " << *enabled; 1243 << " Enabled: " << *enabled;
1241 return result; 1244 return result;
1242 } 1245 }
1243 1246
1244 } // namespace chromeos 1247 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698