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

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

Issue 2463023002: Revert of Add network throttling as an enterprise policy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted by hand Created 4 years, 1 month 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
« no previous file with comments | « chromeos/dbus/fake_shill_manager_client.h ('k') | chromeos/dbus/mock_shill_manager_client.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 568 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_shill_manager_client.h ('k') | chromeos/dbus/mock_shill_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698