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

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

Issue 8400077: chromeos: Rename functions to be PascalCase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_BROWSER_CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_
6 #define CHROME_BROWSER_CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ 6 #define CHROME_BROWSER_CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h" 10 #include "chrome/browser/chromeos/dbus/dbus_thread_manager.h"
11 #include "testing/gmock/include/gmock/gmock.h" 11 #include "testing/gmock/include/gmock/gmock.h"
12 12
13 namespace chromeos { 13 namespace chromeos {
14 14
15 class MockBluetoothManagerClient; 15 class MockBluetoothManagerClient;
16 class MockBluetoothAdapterClient; 16 class MockBluetoothAdapterClient;
17 class MockPowerManagerClient; 17 class MockPowerManagerClient;
18 class MockSensorsClient; 18 class MockSensorsClient;
19 class MockSessionManagerClient; 19 class MockSessionManagerClient;
20 class MockSpeechSynthesizerClient; 20 class MockSpeechSynthesizerClient;
21 21
22 // This class provides a mock DBusThreadManager with mock clients 22 // This class provides a mock DBusThreadManager with mock clients
23 // installed. You can customize the behaviors of mock clients with 23 // installed. You can customize the behaviors of mock clients with
24 // mock_foo_client() functions. 24 // mock_foo_client() functions.
25 class MockDBusThreadManager : public DBusThreadManager { 25 class MockDBusThreadManager : public DBusThreadManager {
26 public: 26 public:
27 MockDBusThreadManager(); 27 MockDBusThreadManager();
28 virtual ~MockDBusThreadManager(); 28 virtual ~MockDBusThreadManager();
29 29
30 MOCK_METHOD0(bluetooth_adapter_client, BluetoothAdapterClient*(void)); 30 MOCK_METHOD0(GetBluetoothAdapterClient, BluetoothAdapterClient*(void));
31 MOCK_METHOD0(bluetooth_manager_client, BluetoothManagerClient*(void)); 31 MOCK_METHOD0(GetBluetoothManagerClient, BluetoothManagerClient*(void));
32 MOCK_METHOD0(power_manager_client, PowerManagerClient*(void)); 32 MOCK_METHOD0(GetPowerManagerClient, PowerManagerClient*(void));
33 MOCK_METHOD0(sensors_client, SensorsClient*(void)); 33 MOCK_METHOD0(GetSensorsClient, SensorsClient*(void));
34 MOCK_METHOD0(session_manager_client, SessionManagerClient*(void)); 34 MOCK_METHOD0(GetSessionManagerClient, SessionManagerClient*(void));
35 MOCK_METHOD0(speech_synthesizer_client, SpeechSynthesizerClient*(void)); 35 MOCK_METHOD0(GetSpeechSynthesizerClient, SpeechSynthesizerClient*(void));
36 36
37 MockBluetoothAdapterClient* mock_bluetooth_adapter_client() { 37 MockBluetoothAdapterClient* mock_bluetooth_adapter_client() {
38 return mock_bluetooth_adapter_client_.get(); 38 return mock_bluetooth_adapter_client_.get();
39 } 39 }
40 MockBluetoothManagerClient* mock_bluetooth_manager_client() { 40 MockBluetoothManagerClient* mock_bluetooth_manager_client() {
41 return mock_bluetooth_manager_client_.get(); 41 return mock_bluetooth_manager_client_.get();
42 } 42 }
43 MockPowerManagerClient* mock_power_manager_client() { 43 MockPowerManagerClient* mock_power_manager_client() {
44 return mock_power_manager_client_.get(); 44 return mock_power_manager_client_.get();
45 } 45 }
(...skipping 14 matching lines...) Expand all
60 scoped_ptr<MockSensorsClient> mock_sensors_client_; 60 scoped_ptr<MockSensorsClient> mock_sensors_client_;
61 scoped_ptr<MockSessionManagerClient> mock_session_manager_client_; 61 scoped_ptr<MockSessionManagerClient> mock_session_manager_client_;
62 scoped_ptr<MockSpeechSynthesizerClient> mock_speech_synthesizer_client_; 62 scoped_ptr<MockSpeechSynthesizerClient> mock_speech_synthesizer_client_;
63 63
64 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManager); 64 DISALLOW_COPY_AND_ASSIGN(MockDBusThreadManager);
65 }; 65 };
66 66
67 } // namespace chromeos 67 } // namespace chromeos
68 68
69 #endif // CHROME_BROWSER_CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_ 69 #endif // CHROME_BROWSER_CHROMEOS_DBUS_MOCK_DBUS_THREAD_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/dbus/dbus_thread_manager.cc ('k') | chrome/browser/chromeos/dbus/mock_dbus_thread_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698