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_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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 | 579 |
580 int FakeShillManagerClient::GetInteractiveDelay() const { | 580 int FakeShillManagerClient::GetInteractiveDelay() const { |
581 return interactive_delay_; | 581 return interactive_delay_; |
582 } | 582 } |
583 | 583 |
584 void FakeShillManagerClient::SetBestServiceToConnect( | 584 void FakeShillManagerClient::SetBestServiceToConnect( |
585 const std::string& service_path) { | 585 const std::string& service_path) { |
586 best_service_ = service_path; | 586 best_service_ = service_path; |
587 } | 587 } |
588 | 588 |
| 589 void FakeShillManagerClient::SetNetworkThrottlingStatus( |
| 590 bool enabled, |
| 591 uint32_t upload_rate_kbits, |
| 592 uint32_t download_rate_kbits, |
| 593 const base::Closure& callback, |
| 594 const ErrorCallback& error_callback) {} |
| 595 |
589 void FakeShillManagerClient::SetupDefaultEnvironment() { | 596 void FakeShillManagerClient::SetupDefaultEnvironment() { |
590 // Bail out from setup if there is no message loop. This will be the common | 597 // Bail out from setup if there is no message loop. This will be the common |
591 // case for tests that are not testing Shill. | 598 // case for tests that are not testing Shill. |
592 if (!base::ThreadTaskRunnerHandle::IsSet()) | 599 if (!base::ThreadTaskRunnerHandle::IsSet()) |
593 return; | 600 return; |
594 | 601 |
595 DBusThreadManager* dbus_manager = DBusThreadManager::Get(); | 602 DBusThreadManager* dbus_manager = DBusThreadManager::Get(); |
596 ShillServiceClient::TestInterface* services = | 603 ShillServiceClient::TestInterface* services = |
597 dbus_manager->GetShillServiceClient()->GetTestInterface(); | 604 dbus_manager->GetShillServiceClient()->GetTestInterface(); |
598 DCHECK(services); | 605 DCHECK(services); |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1228 LOG(WARNING) << "Invalid state: " << state << " for " << type; | 1235 LOG(WARNING) << "Invalid state: " << state << " for " << type; |
1229 result = shill::kStateIdle; | 1236 result = shill::kStateIdle; |
1230 } | 1237 } |
1231 } | 1238 } |
1232 VLOG(1) << "Initial state for: " << type << " = " << result | 1239 VLOG(1) << "Initial state for: " << type << " = " << result |
1233 << " Enabled: " << *enabled; | 1240 << " Enabled: " << *enabled; |
1234 return result; | 1241 return result; |
1235 } | 1242 } |
1236 | 1243 |
1237 } // namespace chromeos | 1244 } // namespace chromeos |
OLD | NEW |