mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-16 15:36:12 -04:00
Remove unneeded noRetainObjectArgs
PiperOrigin-RevId: 537896949
This commit is contained in:
committed by
Copybara-Service
parent
2e0a8f1df5
commit
1d68d2fe10
+2
-2
@@ -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])
|
||||
|
||||
+2
-2
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user