Change GetAddress() to GetMacAddress() in BluetoothAdapter

PiperOrigin-RevId: 834896610
This commit is contained in:
Crisrael Lucero
2025-11-20 13:49:49 -08:00
committed by Copybara-Service
parent 023db9bd33
commit dd943af8e9
20 changed files with 36 additions and 34 deletions
@@ -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();
}