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

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

Issue 1156573005: bluetooth: Browser-side implementation of getCharacteristic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-get-primary-service-initial
Patch Set: Fix histograms.xml and bad_messages.h merge conflict Created 5 years, 6 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/mock_bluetooth_adapter.h ('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 2d16e46941e7e66f60955b7194ec29eb0f692a63..b5948f651c12f07b9f7fc51f989554521614885a 100644
--- a/device/bluetooth/test/mock_bluetooth_device.h
+++ b/device/bluetooth/test/mock_bluetooth_device.h
@@ -83,15 +83,16 @@ class MockBluetoothDevice : public BluetoothDevice {
MOCK_CONST_METHOD1(GetGattService, BluetoothGattService*(const std::string&));
// BluetoothDevice manages the lifetime of its BluetoothGATTServices.
- // This methods takes ownership of the BluetoothGATTServices. This is only for
- // convenience as far as testing is concerned, and it's possible to write test
- // cases without using these functions.
+ // This method takes ownership of the MockBluetoothGATTServices. This is only
+ // for convenience as far as testing is concerned, and it's possible to write
+ // test cases without using these functions.
// Example:
// ON_CALL(*mock_device, GetGattServices))
// .WillByDefault(Invoke(*mock_device,
// &MockBluetoothDevice::GetMockServices));
void AddMockService(scoped_ptr<MockBluetoothGattService> mock_device);
std::vector<BluetoothGattService*> GetMockServices() const;
+ BluetoothGattService* GetMockService(const std::string& identifier) const;
private:
uint32 bluetooth_class_;
« no previous file with comments | « device/bluetooth/test/mock_bluetooth_adapter.h ('k') | device/bluetooth/test/mock_bluetooth_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698