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

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

Issue 181413006: Replace misc. network stub flags with more flexible ones (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chromeos/dbus/fake_dbus_thread_manager.h ('k') | chromeos/dbus/fake_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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_dbus_thread_manager.h" 5 #include "chromeos/dbus/fake_dbus_thread_manager.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "chromeos/chromeos_switches.h" 8 #include "chromeos/chromeos_switches.h"
9 #include "chromeos/dbus/cras_audio_client_stub_impl.h" 9 #include "chromeos/dbus/cras_audio_client_stub_impl.h"
10 #include "chromeos/dbus/cros_disks_client.h" 10 #include "chromeos/dbus/cros_disks_client.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 SetShillDeviceClient( 110 SetShillDeviceClient(
111 scoped_ptr<ShillDeviceClient>(new FakeShillDeviceClient)); 111 scoped_ptr<ShillDeviceClient>(new FakeShillDeviceClient));
112 SetShillIPConfigClient( 112 SetShillIPConfigClient(
113 scoped_ptr<ShillIPConfigClient>(new FakeShillIPConfigClient)); 113 scoped_ptr<ShillIPConfigClient>(new FakeShillIPConfigClient));
114 SetShillServiceClient( 114 SetShillServiceClient(
115 scoped_ptr<ShillServiceClient>(new FakeShillServiceClient)); 115 scoped_ptr<ShillServiceClient>(new FakeShillServiceClient));
116 SetShillProfileClient( 116 SetShillProfileClient(
117 scoped_ptr<ShillProfileClient>(new FakeShillProfileClient)); 117 scoped_ptr<ShillProfileClient>(new FakeShillProfileClient));
118 } 118 }
119 119
120 void FakeDBusThreadManager::SetupDefaultEnvironment() {
121 ShillManagerClient::TestInterface* manager =
122 shill_manager_client_->GetTestInterface();
123 if (manager)
124 manager->SetupDefaultEnvironment();
125 }
126
120 void FakeDBusThreadManager::SetBluetoothAdapterClient( 127 void FakeDBusThreadManager::SetBluetoothAdapterClient(
121 scoped_ptr<BluetoothAdapterClient> client) { 128 scoped_ptr<BluetoothAdapterClient> client) {
122 bluetooth_adapter_client_ = client.Pass(); 129 bluetooth_adapter_client_ = client.Pass();
123 } 130 }
124 131
125 void FakeDBusThreadManager::SetBluetoothAgentManagerClient( 132 void FakeDBusThreadManager::SetBluetoothAgentManagerClient(
126 scoped_ptr<BluetoothAgentManagerClient> client) { 133 scoped_ptr<BluetoothAgentManagerClient> client) {
127 bluetooth_agent_manager_client_ = client.Pass(); 134 bluetooth_agent_manager_client_ = client.Pass();
128 } 135 }
129 136
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 418
412 SystemClockClient* FakeDBusThreadManager::GetSystemClockClient() { 419 SystemClockClient* FakeDBusThreadManager::GetSystemClockClient() {
413 return system_clock_client_.get(); 420 return system_clock_client_.get();
414 } 421 }
415 422
416 UpdateEngineClient* FakeDBusThreadManager::GetUpdateEngineClient() { 423 UpdateEngineClient* FakeDBusThreadManager::GetUpdateEngineClient() {
417 return update_engine_client_.get(); 424 return update_engine_client_.get();
418 } 425 }
419 426
420 } // namespace chromeos 427 } // namespace chromeos
OLDNEW
« no previous file with comments | « chromeos/dbus/fake_dbus_thread_manager.h ('k') | chromeos/dbus/fake_shill_manager_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698