OLD | NEW |
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_service_client.h" | 5 #include "chromeos/dbus/fake_shill_service_client.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/stl_util.h" | 10 #include "base/stl_util.h" |
(...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
372 properties->SetWithoutPathExpansion( | 372 properties->SetWithoutPathExpansion( |
373 shill::kIPConfigProperty, | 373 shill::kIPConfigProperty, |
374 new base::StringValue(ipconfig_path)); | 374 new base::StringValue(ipconfig_path)); |
375 } | 375 } |
376 if (type == shill::kTypeWifi) { | 376 if (type == shill::kTypeWifi) { |
377 properties->SetWithoutPathExpansion( | 377 properties->SetWithoutPathExpansion( |
378 shill::kSecurityProperty, | 378 shill::kSecurityProperty, |
379 new base::StringValue(shill::kSecurityNone)); | 379 new base::StringValue(shill::kSecurityNone)); |
380 } | 380 } |
381 | 381 |
382 DBusThreadManager::Get()->GetShillManagerClient()->GetTestInterface()-> | 382 CallSortManagerServices(); |
383 SortManagerServices(); | |
384 | 383 |
385 if (!profile_path.empty()) { | 384 if (!profile_path.empty()) { |
386 DBusThreadManager::Get()->GetShillProfileClient()->GetTestInterface()-> | 385 DBusThreadManager::Get()->GetShillProfileClient()->GetTestInterface()-> |
387 UpdateService(profile_path, service_path); | 386 UpdateService(profile_path, service_path); |
388 } | 387 } |
389 } | 388 } |
390 | 389 |
391 void FakeShillServiceClient::RemoveService(const std::string& service_path) { | 390 void FakeShillServiceClient::RemoveService(const std::string& service_path) { |
392 DBusThreadManager::Get()->GetShillManagerClient()->GetTestInterface()-> | 391 DBusThreadManager::Get()->GetShillManagerClient()->GetTestInterface()-> |
393 RemoveManagerService(service_path, true); | 392 RemoveManagerService(service_path, true); |
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
610 base::StringValue(shill::kErrorBadPassphrase))); | 609 base::StringValue(shill::kErrorBadPassphrase))); |
611 } else { | 610 } else { |
612 // Set Online. | 611 // Set Online. |
613 SetServiceProperty(service_path, | 612 SetServiceProperty(service_path, |
614 shill::kStateProperty, | 613 shill::kStateProperty, |
615 base::StringValue(shill::kStateOnline)); | 614 base::StringValue(shill::kStateOnline)); |
616 } | 615 } |
617 } | 616 } |
618 | 617 |
619 } // namespace chromeos | 618 } // namespace chromeos |
OLD | NEW |