summaryrefslogtreecommitdiff
path: root/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m
diff options
context:
space:
mode:
Diffstat (limited to 'SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m')
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m17
1 files changed, 16 insertions, 1 deletions
diff --git a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m
index 9f64d4af8..cae7e6ab4 100644
--- a/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m
+++ b/SmartDeviceLinkTests/RPCSpecs/StructSpecs/SDLHMICapabilitiesSpec.m
@@ -17,6 +17,7 @@ describe(@"SDLHMICapabilities struct", ^{
__block NSNumber *somePhoneCallState = @NO;
__block NSNumber *someNavigationState = @YES;
__block NSNumber *someVideoStreamState = @NO;
+ __block NSNumber *someRemoteControlState = @YES;
context(@"When initialized with properties", ^{
beforeEach(^{
@@ -24,6 +25,7 @@ describe(@"SDLHMICapabilities struct", ^{
testStruct.phoneCall = somePhoneCallState;
testStruct.navigation = someNavigationState;
testStruct.videoStreaming = someVideoStreamState;
+ testStruct.remoteControl = someRemoteControlState;
});
it(@"should properly set phone call", ^{
@@ -37,6 +39,10 @@ describe(@"SDLHMICapabilities struct", ^{
it(@"should properly set video streaming", ^{
expect(testStruct.videoStreaming).to(equal(someVideoStreamState));
});
+
+ it(@"should properly set remote control", ^{
+ expect(testStruct.remoteControl).to(equal(someRemoteControlState));
+ });
});
context(@"When initialized with a dictionary", ^{
@@ -44,7 +50,8 @@ describe(@"SDLHMICapabilities struct", ^{
NSDictionary<NSString *, NSNumber *> *structInitDict = @{
SDLRPCParameterNameNavigation: someNavigationState,
SDLRPCParameterNamePhoneCall: somePhoneCallState,
- SDLRPCParameterNameVideoStreaming: someVideoStreamState
+ SDLRPCParameterNameVideoStreaming: someVideoStreamState,
+ SDLRPCParameterNameRemoteControl: someRemoteControlState
};
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
@@ -63,6 +70,10 @@ describe(@"SDLHMICapabilities struct", ^{
it(@"should properly set video streaming", ^{
expect(testStruct.videoStreaming).to(equal(someVideoStreamState));
});
+
+ it(@"should properly set remote control", ^{
+ expect(testStruct.remoteControl).to(equal(someRemoteControlState));
+ });
});
context(@"When not initialized", ^{
@@ -81,6 +92,10 @@ describe(@"SDLHMICapabilities struct", ^{
it(@"video streaming should be nil", ^{
expect(testStruct.videoStreaming).to(beNil());
});
+
+ it(@"remote control should be nil", ^{
+ expect(testStruct.remoteControl).to(beNil());
+ });
});
});