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 | |
596 void FakeShillManagerClient::SetupDefaultEnvironment() { | 589 void FakeShillManagerClient::SetupDefaultEnvironment() { |
597 // Bail out from setup if there is no message loop. This will be the common | 590 // Bail out from setup if there is no message loop. This will be the common |
598 // case for tests that are not testing Shill. | 591 // case for tests that are not testing Shill. |
599 if (!base::ThreadTaskRunnerHandle::IsSet()) | 592 if (!base::ThreadTaskRunnerHandle::IsSet()) |
600 return; | 593 return; |
601 | 594 |
602 DBusThreadManager* dbus_manager = DBusThreadManager::Get(); | 595 DBusThreadManager* dbus_manager = DBusThreadManager::Get(); |
603 ShillServiceClient::TestInterface* services = | 596 ShillServiceClient::TestInterface* services = |
604 dbus_manager->GetShillServiceClient()->GetTestInterface(); | 597 dbus_manager->GetShillServiceClient()->GetTestInterface(); |
605 DCHECK(services); | 598 DCHECK(services); |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1235 LOG(WARNING) << "Invalid state: " << state << " for " << type; | 1228 LOG(WARNING) << "Invalid state: " << state << " for " << type; |
1236 result = shill::kStateIdle; | 1229 result = shill::kStateIdle; |
1237 } | 1230 } |
1238 } | 1231 } |
1239 VLOG(1) << "Initial state for: " << type << " = " << result | 1232 VLOG(1) << "Initial state for: " << type << " = " << result |
1240 << " Enabled: " << *enabled; | 1233 << " Enabled: " << *enabled; |
1241 return result; | 1234 return result; |
1242 } | 1235 } |
1243 | 1236 |
1244 } // namespace chromeos | 1237 } // namespace chromeos |
OLD | NEW |