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

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

Issue 10095004: Add FlimflamDeviceClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 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
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/mock_dbus_thread_manager.h" 5 #include "chromeos/dbus/mock_dbus_thread_manager.h"
6 6
7 #include "chromeos/dbus/mock_bluetooth_adapter_client.h" 7 #include "chromeos/dbus/mock_bluetooth_adapter_client.h"
8 #include "chromeos/dbus/mock_bluetooth_device_client.h" 8 #include "chromeos/dbus/mock_bluetooth_device_client.h"
9 #include "chromeos/dbus/mock_bluetooth_input_client.h" 9 #include "chromeos/dbus/mock_bluetooth_input_client.h"
10 #include "chromeos/dbus/mock_bluetooth_manager_client.h" 10 #include "chromeos/dbus/mock_bluetooth_manager_client.h"
11 #include "chromeos/dbus/mock_bluetooth_node_client.h" 11 #include "chromeos/dbus/mock_bluetooth_node_client.h"
12 #include "chromeos/dbus/mock_cashew_client.h" 12 #include "chromeos/dbus/mock_cashew_client.h"
13 #include "chromeos/dbus/mock_cros_disks_client.h" 13 #include "chromeos/dbus/mock_cros_disks_client.h"
14 #include "chromeos/dbus/mock_cryptohome_client.h" 14 #include "chromeos/dbus/mock_cryptohome_client.h"
15 #include "chromeos/dbus/mock_debug_daemon_client.h" 15 #include "chromeos/dbus/mock_debug_daemon_client.h"
16 #include "chromeos/dbus/mock_flimflam_device_client.h"
16 #include "chromeos/dbus/mock_flimflam_ipconfig_client.h" 17 #include "chromeos/dbus/mock_flimflam_ipconfig_client.h"
17 #include "chromeos/dbus/mock_flimflam_manager_client.h" 18 #include "chromeos/dbus/mock_flimflam_manager_client.h"
18 #include "chromeos/dbus/mock_flimflam_network_client.h" 19 #include "chromeos/dbus/mock_flimflam_network_client.h"
19 #include "chromeos/dbus/mock_flimflam_profile_client.h" 20 #include "chromeos/dbus/mock_flimflam_profile_client.h"
20 #include "chromeos/dbus/mock_image_burner_client.h" 21 #include "chromeos/dbus/mock_image_burner_client.h"
21 #include "chromeos/dbus/mock_introspectable_client.h" 22 #include "chromeos/dbus/mock_introspectable_client.h"
22 #include "chromeos/dbus/mock_power_manager_client.h" 23 #include "chromeos/dbus/mock_power_manager_client.h"
23 #include "chromeos/dbus/mock_session_manager_client.h" 24 #include "chromeos/dbus/mock_session_manager_client.h"
24 #include "chromeos/dbus/mock_speech_synthesizer_client.h" 25 #include "chromeos/dbus/mock_speech_synthesizer_client.h"
25 #include "chromeos/dbus/mock_update_engine_client.h" 26 #include "chromeos/dbus/mock_update_engine_client.h"
26 27
27 using ::testing::AnyNumber; 28 using ::testing::AnyNumber;
28 using ::testing::Return; 29 using ::testing::Return;
29 using ::testing::_; 30 using ::testing::_;
30 31
31 namespace chromeos { 32 namespace chromeos {
32 33
33 MockDBusThreadManager::MockDBusThreadManager() 34 MockDBusThreadManager::MockDBusThreadManager()
34 : mock_bluetooth_adapter_client_(new MockBluetoothAdapterClient), 35 : mock_bluetooth_adapter_client_(new MockBluetoothAdapterClient),
35 mock_bluetooth_device_client_(new MockBluetoothDeviceClient), 36 mock_bluetooth_device_client_(new MockBluetoothDeviceClient),
36 mock_bluetooth_input_client_(new MockBluetoothInputClient), 37 mock_bluetooth_input_client_(new MockBluetoothInputClient),
37 mock_bluetooth_manager_client_(new MockBluetoothManagerClient), 38 mock_bluetooth_manager_client_(new MockBluetoothManagerClient),
38 mock_bluetooth_node_client_(new MockBluetoothNodeClient), 39 mock_bluetooth_node_client_(new MockBluetoothNodeClient),
39 mock_cashew_client_(new MockCashewClient), 40 mock_cashew_client_(new MockCashewClient),
40 mock_cros_disks_client_(new MockCrosDisksClient), 41 mock_cros_disks_client_(new MockCrosDisksClient),
41 mock_cryptohome_client_(new MockCryptohomeClient), 42 mock_cryptohome_client_(new MockCryptohomeClient),
42 mock_debugdaemon_client_(new MockDebugDaemonClient), 43 mock_debugdaemon_client_(new MockDebugDaemonClient),
44 mock_flimflam_device_client_(new MockFlimflamDeviceClient),
43 mock_flimflam_ipconfig_client_(new MockFlimflamIPConfigClient), 45 mock_flimflam_ipconfig_client_(new MockFlimflamIPConfigClient),
44 mock_flimflam_manager_client_(new MockFlimflamManagerClient), 46 mock_flimflam_manager_client_(new MockFlimflamManagerClient),
45 mock_flimflam_network_client_(new MockFlimflamNetworkClient), 47 mock_flimflam_network_client_(new MockFlimflamNetworkClient),
46 mock_flimflam_profile_client_(new MockFlimflamProfileClient), 48 mock_flimflam_profile_client_(new MockFlimflamProfileClient),
47 mock_image_burner_client_(new MockImageBurnerClient), 49 mock_image_burner_client_(new MockImageBurnerClient),
48 mock_introspectable_client_(new MockIntrospectableClient), 50 mock_introspectable_client_(new MockIntrospectableClient),
49 mock_power_manager_client_(new MockPowerManagerClient), 51 mock_power_manager_client_(new MockPowerManagerClient),
50 mock_session_manager_client_(new MockSessionManagerClient), 52 mock_session_manager_client_(new MockSessionManagerClient),
51 mock_speech_synthesizer_client_(new MockSpeechSynthesizerClient), 53 mock_speech_synthesizer_client_(new MockSpeechSynthesizerClient),
52 mock_update_engine_client_(new MockUpdateEngineClient) { 54 mock_update_engine_client_(new MockUpdateEngineClient) {
53 EXPECT_CALL(*this, GetBluetoothAdapterClient()) 55 EXPECT_CALL(*this, GetBluetoothAdapterClient())
54 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get())); 56 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get()));
55 EXPECT_CALL(*this, GetBluetoothDeviceClient()) 57 EXPECT_CALL(*this, GetBluetoothDeviceClient())
56 .WillRepeatedly(Return(mock_bluetooth_device_client_.get())); 58 .WillRepeatedly(Return(mock_bluetooth_device_client_.get()));
57 EXPECT_CALL(*this, GetBluetoothInputClient()) 59 EXPECT_CALL(*this, GetBluetoothInputClient())
58 .WillRepeatedly(Return(mock_bluetooth_input_client_.get())); 60 .WillRepeatedly(Return(mock_bluetooth_input_client_.get()));
59 EXPECT_CALL(*this, GetBluetoothManagerClient()) 61 EXPECT_CALL(*this, GetBluetoothManagerClient())
60 .WillRepeatedly(Return(mock_bluetooth_manager_client())); 62 .WillRepeatedly(Return(mock_bluetooth_manager_client()));
61 EXPECT_CALL(*this, GetBluetoothNodeClient()) 63 EXPECT_CALL(*this, GetBluetoothNodeClient())
62 .WillRepeatedly(Return(mock_bluetooth_node_client_.get())); 64 .WillRepeatedly(Return(mock_bluetooth_node_client_.get()));
63 EXPECT_CALL(*this, GetCashewClient()) 65 EXPECT_CALL(*this, GetCashewClient())
64 .WillRepeatedly(Return(mock_cashew_client())); 66 .WillRepeatedly(Return(mock_cashew_client()));
65 EXPECT_CALL(*this, GetCrosDisksClient()) 67 EXPECT_CALL(*this, GetCrosDisksClient())
66 .WillRepeatedly(Return(mock_cros_disks_client())); 68 .WillRepeatedly(Return(mock_cros_disks_client()));
67 EXPECT_CALL(*this, GetCryptohomeClient()) 69 EXPECT_CALL(*this, GetCryptohomeClient())
68 .WillRepeatedly(Return(mock_cryptohome_client())); 70 .WillRepeatedly(Return(mock_cryptohome_client()));
69 EXPECT_CALL(*this, GetDebugDaemonClient()) 71 EXPECT_CALL(*this, GetDebugDaemonClient())
70 .WillRepeatedly(Return(mock_debugdaemon_client())); 72 .WillRepeatedly(Return(mock_debugdaemon_client()));
73 EXPECT_CALL(*this, GetFlimflamDeviceClient())
74 .WillRepeatedly(Return(mock_flimflam_device_client()));
71 EXPECT_CALL(*this, GetFlimflamIPConfigClient()) 75 EXPECT_CALL(*this, GetFlimflamIPConfigClient())
72 .WillRepeatedly(Return(mock_flimflam_ipconfig_client())); 76 .WillRepeatedly(Return(mock_flimflam_ipconfig_client()));
73 EXPECT_CALL(*this, GetFlimflamManagerClient()) 77 EXPECT_CALL(*this, GetFlimflamManagerClient())
74 .WillRepeatedly(Return(mock_flimflam_manager_client())); 78 .WillRepeatedly(Return(mock_flimflam_manager_client()));
75 EXPECT_CALL(*this, GetFlimflamNetworkClient()) 79 EXPECT_CALL(*this, GetFlimflamNetworkClient())
76 .WillRepeatedly(Return(mock_flimflam_network_client())); 80 .WillRepeatedly(Return(mock_flimflam_network_client()));
77 EXPECT_CALL(*this, GetFlimflamProfileClient()) 81 EXPECT_CALL(*this, GetFlimflamProfileClient())
78 .WillRepeatedly(Return(mock_flimflam_profile_client())); 82 .WillRepeatedly(Return(mock_flimflam_profile_client()));
79 EXPECT_CALL(*this, GetImageBurnerClient()) 83 EXPECT_CALL(*this, GetImageBurnerClient())
80 .WillRepeatedly(Return(mock_image_burner_client())); 84 .WillRepeatedly(Return(mock_image_burner_client()));
(...skipping 27 matching lines...) Expand all
108 .Times(AnyNumber()); 112 .Times(AnyNumber());
109 113
110 // Called from DiskMountManager::Initialize(), ChromeBrowserMainPartsChromeos. 114 // Called from DiskMountManager::Initialize(), ChromeBrowserMainPartsChromeos.
111 EXPECT_CALL(*mock_cros_disks_client_.get(), SetUpConnections(_, _)) 115 EXPECT_CALL(*mock_cros_disks_client_.get(), SetUpConnections(_, _))
112 .Times(AnyNumber()); 116 .Times(AnyNumber());
113 } 117 }
114 118
115 MockDBusThreadManager::~MockDBusThreadManager() {} 119 MockDBusThreadManager::~MockDBusThreadManager() {}
116 120
117 } // namespace chromeos 121 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698