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

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: Review fix 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_image_burner_client.h" 16 #include "chrome/browser/chromeos/dbus/mock_image_burner_client.h"
16 #include "chrome/browser/chromeos/dbus/mock_introspectable_client.h" 17 #include "chrome/browser/chromeos/dbus/mock_introspectable_client.h"
17 #include "chrome/browser/chromeos/dbus/mock_power_manager_client.h" 18 #include "chrome/browser/chromeos/dbus/mock_power_manager_client.h"
18 #include "chrome/browser/chromeos/dbus/mock_session_manager_client.h" 19 #include "chrome/browser/chromeos/dbus/mock_session_manager_client.h"
19 #include "chrome/browser/chromeos/dbus/mock_speech_synthesizer_client.h" 20 #include "chrome/browser/chromeos/dbus/mock_speech_synthesizer_client.h"
20 #include "chrome/browser/chromeos/dbus/mock_update_engine_client.h" 21 #include "chrome/browser/chromeos/dbus/mock_update_engine_client.h"
21 22
22 using ::testing::AnyNumber; 23 using ::testing::AnyNumber;
23 using ::testing::Return; 24 using ::testing::Return;
24 using ::testing::_; 25 using ::testing::_;
25 26
26 namespace chromeos { 27 namespace chromeos {
27 28
28 MockDBusThreadManager::MockDBusThreadManager() 29 MockDBusThreadManager::MockDBusThreadManager()
29 : mock_bluetooth_adapter_client_(new MockBluetoothAdapterClient), 30 : mock_bluetooth_adapter_client_(new MockBluetoothAdapterClient),
30 mock_bluetooth_device_client_(new MockBluetoothDeviceClient), 31 mock_bluetooth_device_client_(new MockBluetoothDeviceClient),
31 mock_bluetooth_input_client_(new MockBluetoothInputClient), 32 mock_bluetooth_input_client_(new MockBluetoothInputClient),
32 mock_bluetooth_manager_client_(new MockBluetoothManagerClient), 33 mock_bluetooth_manager_client_(new MockBluetoothManagerClient),
33 mock_bluetooth_node_client_(new MockBluetoothNodeClient), 34 mock_bluetooth_node_client_(new MockBluetoothNodeClient),
34 mock_cashew_client_(new MockCashewClient), 35 mock_cashew_client_(new MockCashewClient),
35 mock_cros_disks_client_(new MockCrosDisksClient), 36 mock_cros_disks_client_(new MockCrosDisksClient),
36 mock_cryptohome_client_(new MockCryptohomeClient), 37 mock_cryptohome_client_(new MockCryptohomeClient),
38 mock_flimflam_ipconfig_client_(new MockFlimflamIPConfigClient),
37 mock_image_burner_client_(new MockImageBurnerClient), 39 mock_image_burner_client_(new MockImageBurnerClient),
38 mock_introspectable_client_(new MockIntrospectableClient), 40 mock_introspectable_client_(new MockIntrospectableClient),
39 mock_power_manager_client_(new MockPowerManagerClient), 41 mock_power_manager_client_(new MockPowerManagerClient),
40 mock_session_manager_client_(new MockSessionManagerClient), 42 mock_session_manager_client_(new MockSessionManagerClient),
41 mock_speech_synthesizer_client_(new MockSpeechSynthesizerClient), 43 mock_speech_synthesizer_client_(new MockSpeechSynthesizerClient),
42 mock_update_engine_client_(new MockUpdateEngineClient) { 44 mock_update_engine_client_(new MockUpdateEngineClient) {
43 EXPECT_CALL(*this, GetBluetoothAdapterClient()) 45 EXPECT_CALL(*this, GetBluetoothAdapterClient())
44 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get())); 46 .WillRepeatedly(Return(mock_bluetooth_adapter_client_.get()));
45 EXPECT_CALL(*this, GetBluetoothDeviceClient()) 47 EXPECT_CALL(*this, GetBluetoothDeviceClient())
46 .WillRepeatedly(Return(mock_bluetooth_device_client_.get())); 48 .WillRepeatedly(Return(mock_bluetooth_device_client_.get()));
47 EXPECT_CALL(*this, GetBluetoothInputClient()) 49 EXPECT_CALL(*this, GetBluetoothInputClient())
48 .WillRepeatedly(Return(mock_bluetooth_input_client_.get())); 50 .WillRepeatedly(Return(mock_bluetooth_input_client_.get()));
49 EXPECT_CALL(*this, GetBluetoothManagerClient()) 51 EXPECT_CALL(*this, GetBluetoothManagerClient())
50 .WillRepeatedly(Return(mock_bluetooth_manager_client())); 52 .WillRepeatedly(Return(mock_bluetooth_manager_client()));
51 EXPECT_CALL(*this, GetBluetoothNodeClient()) 53 EXPECT_CALL(*this, GetBluetoothNodeClient())
52 .WillRepeatedly(Return(mock_bluetooth_node_client_.get())); 54 .WillRepeatedly(Return(mock_bluetooth_node_client_.get()));
53 EXPECT_CALL(*this, GetCashewClient()) 55 EXPECT_CALL(*this, GetCashewClient())
54 .WillRepeatedly(Return(mock_cashew_client())); 56 .WillRepeatedly(Return(mock_cashew_client()));
55 EXPECT_CALL(*this, GetCrosDisksClient()) 57 EXPECT_CALL(*this, GetCrosDisksClient())
56 .WillRepeatedly(Return(mock_cros_disks_client())); 58 .WillRepeatedly(Return(mock_cros_disks_client()));
57 EXPECT_CALL(*this, GetCryptohomeClient()) 59 EXPECT_CALL(*this, GetCryptohomeClient())
58 .WillRepeatedly(Return(mock_cryptohome_client())); 60 .WillRepeatedly(Return(mock_cryptohome_client()));
61 EXPECT_CALL(*this, GetFlimflamIPConfigClient())
62 .WillRepeatedly(Return(mock_flimflam_ipconfig_client()));
59 EXPECT_CALL(*this, GetImageBurnerClient()) 63 EXPECT_CALL(*this, GetImageBurnerClient())
60 .WillRepeatedly(Return(mock_image_burner_client())); 64 .WillRepeatedly(Return(mock_image_burner_client()));
61 EXPECT_CALL(*this, GetIntrospectableClient()) 65 EXPECT_CALL(*this, GetIntrospectableClient())
62 .WillRepeatedly(Return(mock_introspectable_client())); 66 .WillRepeatedly(Return(mock_introspectable_client()));
63 EXPECT_CALL(*this, GetPowerManagerClient()) 67 EXPECT_CALL(*this, GetPowerManagerClient())
64 .WillRepeatedly(Return(mock_power_manager_client_.get())); 68 .WillRepeatedly(Return(mock_power_manager_client_.get()));
65 EXPECT_CALL(*this, GetSessionManagerClient()) 69 EXPECT_CALL(*this, GetSessionManagerClient())
66 .WillRepeatedly(Return(mock_session_manager_client_.get())); 70 .WillRepeatedly(Return(mock_session_manager_client_.get()));
67 EXPECT_CALL(*this, GetSpeechSynthesizerClient()) 71 EXPECT_CALL(*this, GetSpeechSynthesizerClient())
68 .WillRepeatedly(Return(mock_speech_synthesizer_client_.get())); 72 .WillRepeatedly(Return(mock_speech_synthesizer_client_.get()));
(...skipping 19 matching lines...) Expand all
88 .Times(AnyNumber()); 92 .Times(AnyNumber());
89 93
90 // Called from DiskMountManager::Initialize(), ChromeBrowserMainPartsChromeos. 94 // Called from DiskMountManager::Initialize(), ChromeBrowserMainPartsChromeos.
91 EXPECT_CALL(*mock_cros_disks_client_.get(), SetUpConnections(_, _)) 95 EXPECT_CALL(*mock_cros_disks_client_.get(), SetUpConnections(_, _))
92 .Times(AnyNumber()); 96 .Times(AnyNumber());
93 } 97 }
94 98
95 MockDBusThreadManager::~MockDBusThreadManager() {} 99 MockDBusThreadManager::~MockDBusThreadManager() {}
96 100
97 } // namespace chromeos 101 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698