summaryrefslogtreecommitdiff
path: root/SmartDeviceLinkTests/ProtocolSpecs
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2019-05-14 11:59:55 -0400
committerJoel Fischer <joeljfischer@gmail.com>2019-05-14 11:59:55 -0400
commit8464d356a5cc404068101dc4b116a9ae9ad12a8b (patch)
treeaae6e48f907abf421610b4fe182c58124090922f /SmartDeviceLinkTests/ProtocolSpecs
parent0fc61791bce71e76fb8ff0b6b3f2ddfc124bb40e (diff)
downloadsdl_ios-8464d356a5cc404068101dc4b116a9ae9ad12a8b.tar.gz
Fix the unit tests
Diffstat (limited to 'SmartDeviceLinkTests/ProtocolSpecs')
-rw-r--r--SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m8
1 files changed, 7 insertions, 1 deletions
diff --git a/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m b/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m
index a087dc86f..579658c79 100644
--- a/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m
+++ b/SmartDeviceLinkTests/ProtocolSpecs/MessageSpecs/SDLProtocolSpec.m
@@ -215,7 +215,10 @@ describe(@"SendRPCRequest Tests", ^ {
context(@"During V1 session", ^ {
it(@"Should send the correct data", ^ {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[[[[mockRequest stub] andReturn:dictionaryV1] ignoringNonObjectArgs] serializeAsDictionary:1];
+#pragma clang diagnostic pop
SDLProtocol* testProtocol = [[SDLProtocol alloc] init];
SDLV1ProtocolHeader *testHeader = [[SDLV1ProtocolHeader alloc] init];
@@ -252,9 +255,12 @@ describe(@"SendRPCRequest Tests", ^ {
context(@"During V2 session", ^ {
it(@"Should send the correct data bulk data when bulk data is available", ^ {
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wdeprecated-declarations"
[[[[mockRequest stub] andReturn:dictionaryV2] ignoringNonObjectArgs] serializeAsDictionary:2];
+#pragma clang diagnostic pop
[[[mockRequest stub] andReturn:@0x98765] correlationID];
- [[[mockRequest stub] andReturn:@"DeleteCommand"] getFunctionName];
+ [[[mockRequest stub] andReturn:@"DeleteCommand"] name];
[[[mockRequest stub] andReturn:[NSData dataWithBytes:"COMMAND" length:strlen("COMMAND")]] bulkData];
SDLProtocol* testProtocol = [[SDLProtocol alloc] init];