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

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: minor cleanup 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
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 f111b9dde1e4ca3529572fc9ac5fc9fb13c2180f..6027c7b1f99fd90da8eb736a30951f998f54d127 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 {
@@ -88,8 +88,10 @@ class MockBluetoothDevice : public BluetoothDevice {
void(const GattConnectionCallback& callback,
const ConnectErrorCallback& error_callback));
- 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());
@@ -102,8 +104,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_;

Powered by Google App Engine
This is Rietveld 408576698