mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Change GetAddress() to GetMacAddress() in BluetoothAdapter
PiperOrigin-RevId: 834896610
This commit is contained in:
committed by
Copybara-Service
parent
023db9bd33
commit
dd943af8e9
@@ -62,10 +62,10 @@
|
||||
XCTAssertFalse(_adapter.SetName("TestName", true));
|
||||
}
|
||||
|
||||
- (void)testGetAddress {
|
||||
- (void)testGetMacAddress {
|
||||
// Currently hardcoded to return an empty MacAddress.
|
||||
nearby::MacAddress emptyAddress;
|
||||
XCTAssertEqual(_adapter.GetAddress(), emptyAddress);
|
||||
XCTAssertEqual(_adapter.GetMacAddress(), emptyAddress);
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
@@ -84,7 +84,7 @@ class BluetoothAdapter : public api::BluetoothAdapter {
|
||||
bool SetName(absl::string_view name, bool persist) override;
|
||||
|
||||
// Returns BT MAC address assigned to this adapter.
|
||||
MacAddress GetAddress() const override;
|
||||
MacAddress GetMacAddress() const override;
|
||||
};
|
||||
|
||||
} // namespace apple
|
||||
|
||||
@@ -64,7 +64,7 @@ bool BluetoothAdapter::SetName(absl::string_view name, bool persist) {
|
||||
}
|
||||
|
||||
// TODO(b/290385712): Implement.
|
||||
MacAddress BluetoothAdapter::GetAddress() const {
|
||||
MacAddress BluetoothAdapter::GetMacAddress() const {
|
||||
return MacAddress();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user