diff options
author | Muller, Alexander (A.) <amulle19@ford.com> | 2016-03-16 11:40:13 -0700 |
---|---|---|
committer | Muller, Alexander (A.) <amulle19@ford.com> | 2016-03-16 11:40:13 -0700 |
commit | af7c6c2b2a9115a6f72417401d920ccc687e116b (patch) | |
tree | 58838fa14862bc1d625e8055cd34d7412b2e55d4 | |
parent | 00ecf79981903768791f40001c7025c485fe038c (diff) | |
download | sdl_ios-af7c6c2b2a9115a6f72417401d920ccc687e116b.tar.gz |
Added ignoring of warning for usage of deprecated methods in spec tests.
-rw-r--r-- | SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m index 81046ebfd..373575a4d 100644 --- a/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m +++ b/SmartDeviceLink-iOS/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m @@ -317,8 +317,11 @@ describe(@"SendHeartbeat Tests", ^ { expect(dataSent).to(equal([NSData dataWithBytes:testHeader length:8])); }] sendData:[OCMArg any]]; testProtocol.transport = transportMock; - + +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" [testProtocol sendHeartbeat]; +#pragma clang diagnostic pop expect(@(verified)).toEventually(beTruthy()); }); @@ -344,7 +347,10 @@ describe(@"SendHeartbeat Tests", ^ { }] sendData:[OCMArg any]]; testProtocol.transport = transportMock; +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wdeprecated-declarations" [testProtocol sendHeartbeat]; +#pragma clang diagnostic pop expect(@(verified)).toEventually(beTruthy()); }); |