Remove unneeded noRetainObjectArgs

PiperOrigin-RevId: 537896949
This commit is contained in:
Dave MacLachlan
2023-06-05 09:25:58 -07:00
committed by Copybara-Service
parent 2e0a8f1df5
commit 1d68d2fe10
2 changed files with 4 additions and 4 deletions
@@ -87,14 +87,14 @@ static void FireTimer(void) {
- (void)setUp {
_peripheralUUID = [NSUUID UUID];
_serviceUUID = [CBUUID UUIDWithNSUUID:[NSUUID UUID]];
_centralManagerMock = [OCMStrictClassMock([GNSCentralManager class]) noRetainObjectArgs];
_centralManagerMock = OCMStrictClassMock([GNSCentralManager class]);
OCMStub([_centralManagerMock socketServiceUUID]).andReturn(_serviceUUID);
_cbCentralManagerState = CBCentralManagerStatePoweredOn;
OCMStub([_centralManagerMock cbCentralManagerState])
.andDo(^(NSInvocation *invocation) {
[invocation setReturnValue:&_cbCentralManagerState];
});
_peripheralMock = [OCMStrictClassMock([CBPeripheral class]) noRetainObjectArgs];
_peripheralMock = OCMStrictClassMock([CBPeripheral class]);
OCMStub([_peripheralMock identifier]).andReturn(_peripheralUUID);
_peripheralState = CBPeripheralStateDisconnected;
OCMStub([_peripheralMock state])
@@ -32,9 +32,9 @@
_centralPeerMock = OCMStrictClassMock([CBCentral class]);
NSUUID *identifier = [NSUUID UUID];
OCMStub([_centralPeerMock identifier]).andReturn(identifier);
_socketOwner = [OCMStrictProtocolMock(@protocol(GNSSocketOwner)) noRetainObjectArgs];
_socketOwner = OCMStrictProtocolMock(@protocol(GNSSocketOwner));
_socket = [[GNSSocket alloc] initWithOwner:_socketOwner centralPeer:_centralPeerMock];
_socketDelegate = [OCMStrictProtocolMock(@protocol(GNSSocketDelegate)) noRetainObjectArgs];
_socketDelegate = OCMStrictProtocolMock(@protocol(GNSSocketDelegate));
_socket.delegate = _socketDelegate;
XCTAssertFalse(_socket.connected);
}