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

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

Issue 9875013: Add FlimflamIPConfigClient (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and fix to append a variant in SetProperty 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 "chrome/browser/chromeos/dbus/mock_dbus_thread_manager.h" 5 #include "chrome/browser/chromeos/dbus/mock_dbus_thread_manager.h"
6 6
7 #include "chrome/browser/chromeos/dbus/mock_bluetooth_adapter_client.h" 7 #include "chrome/browser/chromeos/dbus/mock_bluetooth_adapter_client.h"
8 #include "chrome/browser/chromeos/dbus/mock_bluetooth_device_client.h" 8 #include "chrome/browser/chromeos/dbus/mock_bluetooth_device_client.h"
9 #include "chrome/browser/chromeos/dbus/mock_bluetooth_input_client.h" 9 #include "chrome/browser/chromeos/dbus/mock_bluetooth_input_client.h"
10 #include "chrome/browser/chromeos/dbus/mock_bluetooth_manager_client.h" 10 #include "chrome/browser/chromeos/dbus/mock_bluetooth_manager_client.h"
11 #include "chrome/browser/chromeos/dbus/mock_bluetooth_node_client.h" 11 #include "chrome/browser/chromeos/dbus/mock_bluetooth_node_client.h"
12 #include "chrome/browser/chromeos/dbus/mock_cashew_client.h" 12 #include "chrome/browser/chromeos/dbus/mock_cashew_client.h"
13 #include "chrome/browser/chromeos/dbus/mock_cros_disks_client.h" 13 #include "chrome/browser/chromeos/dbus/mock_cros_disks_client.h"
14 #include "chrome/browser/chromeos/dbus/mock_cryptohome_client.h" 14 #include "chrome/browser/chromeos/dbus/mock_cryptohome_client.h"
15 #include "chrome/browser/chromeos/dbus/mock_flimflam_ipconfig_client.h"
15 #include "chrome/browser/chromeos/dbus/mock_flimflam_network_client.h" 16 #include "chrome/browser/chromeos/dbus/mock_flimflam_network_client.h"
16 #include "chrome/browser/chromeos/dbus/mock_image_burner_client.h" 17 #include "chrome/browser/chromeos/dbus/mock_image_burner_client.h"
17 #include "chrome/browser/chromeos/dbus/mock_introspectable_client.h" 18 #include "chrome/browser/chromeos/dbus/mock_introspectable_client.h"
18 #include "chrome/browser/chromeos/dbus/mock_power_manager_client.h" 19 #include "chrome/browser/chromeos/dbus/mock_power_manager_client.h"
19 #include "chrome/browser/chromeos/dbus/mock_session_manager_client.h" 20 #include "chrome/browser/chromeos/dbus/mock_session_manager_client.h"
20 #include "chrome/browser/chromeos/dbus/mock_speech_synthesizer_client.h" 21 #include "chrome/browser/chromeos/dbus/mock_speech_synthesizer_client.h"
21 #include "chrome/browser/chromeos/dbus/mock_update_engine_client.h" 22 #include "chrome/browser/chromeos/dbus/mock_update_engine_client.h"
22 23
23 using ::testing::AnyNumber; 24 using ::testing::AnyNumber;
24 using ::testing::Return; 25 using ::testing::Return;
25 using ::testing::_; 26 using ::testing::_;
26 27
27 namespace chromeos { 28 namespace chromeos {
28 29
29 MockDBusThreadManager::MockDBusThreadManager() 30 MockDBusThreadManager::MockDBusThreadManager()
30 : mock_bluetooth_adapter_client_(new MockBluetoothAdapterClient), 31 : mock_bluetooth_adapter_client_(new MockBluetoothAdapterClient),
31 mock_bluetooth_device_client_(new MockBluetoothDeviceClient), 32 mock_bluetooth_device_client_(new MockBluetoothDeviceClient),
32 mock_bluetooth_input_client_(new MockBluetoothInputClient), 33 mock_bluetooth_input_client_(new MockBluetoothInputClient),
33 mock_bluetooth_manager_client_(new MockBluetoothManagerClient), 34 mock_bluetooth_manager_client_(new MockBluetoothManagerClient),
34 mock_bluetooth_node_client_(new MockBluetoothNodeClient), 35 mock_bluetooth_node_client_(new MockBluetoothNodeClient),
35 mock_cashew_client_(new MockCashewClient), 36 mock_cashew_client_(new MockCashewClient),
36 mock_cros_disks_client_(new MockCrosDisksClient), 37 mock_cros_disks_client_(new MockCrosDisksClient),
37 mock_cryptohome_client_(new MockCryptohomeClient), 38 mock_cryptohome_client_(new MockCryptohomeClient),
39 mock_flimflam_ipconfig_client_(new MockFlimflamIPConfigClient),
38 mock_flimflam_network_client_(new MockFlimflamNetworkClient), 40 mock_flimflam_network_client_(new MockFlimflamNetworkClient),
39 mock_image_burner_client_(new MockImageBurnerClient), 41 mock_image_burner_client_(new MockImageBurnerClient),
40 mock_introspectable_client_(new MockIntrospectableClient), 42 mock_introspectable_client_(new MockIntrospectableClient),
41 mock_power_manager_client_(new MockPowerManagerClient), 43 mock_power_manager_client_(new MockPowerManagerClient),
42 mock_session_manager_client_(new MockSessionManagerClient), 44 mock_session_manager_client_(new MockSessionManagerClient),
43 mock_speech_synthesizer_client_(new MockSpeechSynthesizerClient), 45 mock_speech_synthesizer_client_(new MockSpeechSynthesizerClient),
44 mock_update_engine_client_(new MockUpdateEngineClient) { 46 mock_update_engine_client_(new MockUpdateEngineClient) {
45 EXPECT_CALL(*this, GetBluetoothAdapterClient()) 47 EXPECT_CALL(*this, GetBluetoothAdapterClient())
46 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get())); 48 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get()));
47 EXPECT_CALL(*this, GetBluetoothDeviceClient()) 49 EXPECT_CALL(*this, GetBluetoothDeviceClient())
48 .WillRepeatedly(Return(mock_bluetooth_device_client_.get())); 50 .WillRepeatedly(Return(mock_bluetooth_device_client_.get()));
49 EXPECT_CALL(*this, GetBluetoothInputClient()) 51 EXPECT_CALL(*this, GetBluetoothInputClient())
50 .WillRepeatedly(Return(mock_bluetooth_input_client_.get())); 52 .WillRepeatedly(Return(mock_bluetooth_input_client_.get()));
51 EXPECT_CALL(*this, GetBluetoothManagerClient()) 53 EXPECT_CALL(*this, GetBluetoothManagerClient())
52 .WillRepeatedly(Return(mock_bluetooth_manager_client())); 54 .WillRepeatedly(Return(mock_bluetooth_manager_client()));
53 EXPECT_CALL(*this, GetBluetoothNodeClient()) 55 EXPECT_CALL(*this, GetBluetoothNodeClient())
54 .WillRepeatedly(Return(mock_bluetooth_node_client_.get())); 56 .WillRepeatedly(Return(mock_bluetooth_node_client_.get()));
55 EXPECT_CALL(*this, GetCashewClient()) 57 EXPECT_CALL(*this, GetCashewClient())
56 .WillRepeatedly(Return(mock_cashew_client())); 58 .WillRepeatedly(Return(mock_cashew_client()));
57 EXPECT_CALL(*this, GetCrosDisksClient()) 59 EXPECT_CALL(*this, GetCrosDisksClient())
58 .WillRepeatedly(Return(mock_cros_disks_client())); 60 .WillRepeatedly(Return(mock_cros_disks_client()));
59 EXPECT_CALL(*this, GetCryptohomeClient()) 61 EXPECT_CALL(*this, GetCryptohomeClient())
60 .WillRepeatedly(Return(mock_cryptohome_client())); 62 .WillRepeatedly(Return(mock_cryptohome_client()));
63 EXPECT_CALL(*this, GetFlimflamIPConfigClient())
64 .WillRepeatedly(Return(mock_flimflam_ipconfig_client()));
61 EXPECT_CALL(*this, GetFlimflamNetworkClient()) 65 EXPECT_CALL(*this, GetFlimflamNetworkClient())
62 .WillRepeatedly(Return(mock_flimflam_network_client())); 66 .WillRepeatedly(Return(mock_flimflam_network_client()));
63 EXPECT_CALL(*this, GetImageBurnerClient()) 67 EXPECT_CALL(*this, GetImageBurnerClient())
64 .WillRepeatedly(Return(mock_image_burner_client())); 68 .WillRepeatedly(Return(mock_image_burner_client()));
65 EXPECT_CALL(*this, GetIntrospectableClient()) 69 EXPECT_CALL(*this, GetIntrospectableClient())
66 .WillRepeatedly(Return(mock_introspectable_client())); 70 .WillRepeatedly(Return(mock_introspectable_client()));
67 EXPECT_CALL(*this, GetPowerManagerClient()) 71 EXPECT_CALL(*this, GetPowerManagerClient())
68 .WillRepeatedly(Return(mock_power_manager_client_.get())); 72 .WillRepeatedly(Return(mock_power_manager_client_.get()));
69 EXPECT_CALL(*this, GetSessionManagerClient()) 73 EXPECT_CALL(*this, GetSessionManagerClient())
70 .WillRepeatedly(Return(mock_session_manager_client_.get())); 74 .WillRepeatedly(Return(mock_session_manager_client_.get()));
(...skipping 21 matching lines...) Expand all
92 .Times(AnyNumber()); 96 .Times(AnyNumber());
93 97
94 // Called from DiskMountManager::Initialize(), ChromeBrowserMainPartsChromeos. 98 // Called from DiskMountManager::Initialize(), ChromeBrowserMainPartsChromeos.
95 EXPECT_CALL(*mock_cros_disks_client_.get(), SetUpConnections(_, _)) 99 EXPECT_CALL(*mock_cros_disks_client_.get(), SetUpConnections(_, _))
96 .Times(AnyNumber()); 100 .Times(AnyNumber());
97 } 101 }
98 102
99 MockDBusThreadManager::~MockDBusThreadManager() {} 103 MockDBusThreadManager::~MockDBusThreadManager() {}
100 104
101 } // namespace chromeos 105 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/dbus/mock_dbus_thread_manager.h ('k') | chrome/browser/chromeos/dbus/mock_flimflam_ipconfig_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698