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

Unified Diff: device/bluetooth/test/mock_bluetooth_device.h

Issue 1898643002: Refactor device::BluetoothGattXXX classes to split into remote/local. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « device/bluetooth/test/bluetooth_test_win.cc ('k') | device/bluetooth/test/mock_bluetooth_device.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/bluetooth/test/mock_bluetooth_device.h
diff --git a/device/bluetooth/test/mock_bluetooth_device.h b/device/bluetooth/test/mock_bluetooth_device.h
index 4c52a24623bbca0c36d503baf9b6584cb283465f..f6e79ec5309353508ce49753971546b59a9ab62e 100644
--- a/device/bluetooth/test/mock_bluetooth_device.h
+++ b/device/bluetooth/test/mock_bluetooth_device.h
@@ -19,7 +19,7 @@
namespace device {
-class BluetoothGattService;
+class BluetoothRemoteGattService;
class MockBluetoothAdapter;
class MockBluetoothDevice : public BluetoothDevice {
@@ -91,8 +91,10 @@ class MockBluetoothDevice : public BluetoothDevice {
MOCK_METHOD1(SetGattServicesDiscoveryComplete, void(bool));
MOCK_CONST_METHOD0(IsGattServicesDiscoveryComplete, bool());
- MOCK_CONST_METHOD0(GetGattServices, std::vector<BluetoothGattService*>());
- MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&));
+ MOCK_CONST_METHOD0(GetGattServices,
+ std::vector<BluetoothRemoteGattService*>());
+ MOCK_CONST_METHOD1(GetGattService,
+ BluetoothRemoteGattService*(const std::string&));
MOCK_METHOD0(CreateGattConnectionImpl, void());
MOCK_METHOD0(DisconnectGatt, void());
@@ -105,8 +107,9 @@ class MockBluetoothDevice : public BluetoothDevice {
// .WillByDefault(Invoke(*mock_device,
// &MockBluetoothDevice::GetMockServices));
void AddMockService(std::unique_ptr<MockBluetoothGattService> mock_device);
- std::vector<BluetoothGattService*> GetMockServices() const;
- BluetoothGattService* GetMockService(const std::string& identifier) const;
+ std::vector<BluetoothRemoteGattService*> GetMockServices() const;
+ BluetoothRemoteGattService* GetMockService(
+ const std::string& identifier) const;
private:
uint32_t bluetooth_class_;
« no previous file with comments | « device/bluetooth/test/bluetooth_test_win.cc ('k') | device/bluetooth/test/mock_bluetooth_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698