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

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

Issue 10159004: Extends DBusThreadManager to connect ibus-bus. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fix 32bit build failure. Created 8 years, 7 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
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 #ifndef CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ 5 #ifndef CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_
6 #define CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ 6 #define CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chromeos/dbus/dbus_thread_manager.h" 10 #include "chromeos/dbus/dbus_thread_manager.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 class MockUpdateEngineClient; 42 class MockUpdateEngineClient;
43 43
44 // This class provides a mock DBusThreadManager with mock clients 44 // This class provides a mock DBusThreadManager with mock clients
45 // installed. You can customize the behaviors of mock clients with 45 // installed. You can customize the behaviors of mock clients with
46 // mock_foo_client() functions. 46 // mock_foo_client() functions.
47 class MockDBusThreadManager : public DBusThreadManager { 47 class MockDBusThreadManager : public DBusThreadManager {
48 public: 48 public:
49 MockDBusThreadManager(); 49 MockDBusThreadManager();
50 virtual ~MockDBusThreadManager(); 50 virtual ~MockDBusThreadManager();
51 51
52 MOCK_METHOD1(InitIBusBus, void(const std::string& ibus_address));
52 MOCK_METHOD0(GetSystemBus, dbus::Bus*(void)); 53 MOCK_METHOD0(GetSystemBus, dbus::Bus*(void));
54 MOCK_METHOD0(GetIBusBus, dbus::Bus*(void));
53 MOCK_METHOD0(GetBluetoothAdapterClient, BluetoothAdapterClient*(void)); 55 MOCK_METHOD0(GetBluetoothAdapterClient, BluetoothAdapterClient*(void));
54 MOCK_METHOD0(GetBluetoothDeviceClient, BluetoothDeviceClient*(void)); 56 MOCK_METHOD0(GetBluetoothDeviceClient, BluetoothDeviceClient*(void));
55 MOCK_METHOD0(GetBluetoothInputClient, BluetoothInputClient*(void)); 57 MOCK_METHOD0(GetBluetoothInputClient, BluetoothInputClient*(void));
56 MOCK_METHOD0(GetBluetoothManagerClient, BluetoothManagerClient*(void)); 58 MOCK_METHOD0(GetBluetoothManagerClient, BluetoothManagerClient*(void));
57 MOCK_METHOD0(GetBluetoothNodeClient, BluetoothNodeClient*(void)); 59 MOCK_METHOD0(GetBluetoothNodeClient, BluetoothNodeClient*(void));
58 MOCK_METHOD0(GetCashewClient, CashewClient*(void)); 60 MOCK_METHOD0(GetCashewClient, CashewClient*(void));
59 MOCK_METHOD0(GetCrosDisksClient, CrosDisksClient*(void)); 61 MOCK_METHOD0(GetCrosDisksClient, CrosDisksClient*(void));
60 MOCK_METHOD0(GetCryptohomeClient, CryptohomeClient*(void)); 62 MOCK_METHOD0(GetCryptohomeClient, CryptohomeClient*(void));
61 MOCK_METHOD0(GetDebugDaemonClient, DebugDaemonClient*(void)); 63 MOCK_METHOD0(GetDebugDaemonClient, DebugDaemonClient*(void));
62 MOCK_METHOD0(GetFlimflamDeviceClient, FlimflamDeviceClient*(void)); 64 MOCK_METHOD0(GetFlimflamDeviceClient, FlimflamDeviceClient*(void));
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 scoped_ptr<MockSessionManagerClient> mock_session_manager_client_; 165 scoped_ptr<MockSessionManagerClient> mock_session_manager_client_;
164 scoped_ptr<MockSpeechSynthesizerClient> mock_speech_synthesizer_client_; 166 scoped_ptr<MockSpeechSynthesizerClient> mock_speech_synthesizer_client_;
165 scoped_ptr<MockUpdateEngineClient> mock_update_engine_client_; 167 scoped_ptr<MockUpdateEngineClient> mock_update_engine_client_;
166 168
167 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManager); 169 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManager);
168 }; 170 };
169 171
170 } // namespace chromeos 172 } // namespace chromeos
171 173
172 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ 174 #endif // CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_
OLDNEW
« chromeos/dbus/dbus_thread_manager.cc ('K') | « chromeos/dbus/dbus_thread_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698