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

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

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
Index: device/bluetooth/test/mock_bluetooth_device.cc
diff --git a/device/bluetooth/test/mock_bluetooth_device.cc b/device/bluetooth/test/mock_bluetooth_device.cc
index a3dad77e563bc3fb3cc6e4e05a621e80b1546301..8bbf442ea56f89cbf84db71f2a5a398e6ad1c573 100644
--- a/device/bluetooth/test/mock_bluetooth_device.cc
+++ b/device/bluetooth/test/mock_bluetooth_device.cc
@@ -8,7 +8,7 @@
#include <utility>
#include "base/strings/utf_string_conversions.h"
-#include "device/bluetooth/bluetooth_gatt_service.h"
+#include "device/bluetooth/bluetooth_remote_gatt_service.h"
#include "device/bluetooth/test/mock_bluetooth_adapter.h"
namespace device {
@@ -68,18 +68,18 @@ void MockBluetoothDevice::AddMockService(
mock_services_.push_back(std::move(mock_service));
}
-std::vector<BluetoothGattService*> MockBluetoothDevice::GetMockServices()
+std::vector<BluetoothRemoteGattService*> MockBluetoothDevice::GetMockServices()
const {
- std::vector<BluetoothGattService*> services;
- for (BluetoothGattService* service : mock_services_) {
+ std::vector<BluetoothRemoteGattService*> services;
+ for (BluetoothRemoteGattService* service : mock_services_) {
services.push_back(service);
}
return services;
}
-BluetoothGattService* MockBluetoothDevice::GetMockService(
+BluetoothRemoteGattService* MockBluetoothDevice::GetMockService(
const std::string& identifier) const {
- for (BluetoothGattService* service : mock_services_) {
+ for (BluetoothRemoteGattService* service : mock_services_) {
if (service->GetIdentifier() == identifier)
return service;
}
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_device.h ('k') | device/bluetooth/test/mock_bluetooth_gatt_characteristic.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698