Skip to content

Commit

Permalink
Merge pull request #1397 from smartdevicelink/bug/issue-1396-SDLSyste…
Browse files Browse the repository at this point in the history
…mCapabilityTypeSeatLocation

SystemCapabilityManager fails to support SeatLocation capability
  • Loading branch information
joeljfischer committed Sep 17, 2019
2 parents 897d491 + 3c33b35 commit 9b5a2f4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion SmartDeviceLink/SDLSystemCapabilityManager.m
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ - (void)updateCapabilityType:(SDLSystemCapabilityType)type completionHandler:(SD
* @return An array of all possible system capability types
*/
+ (NSArray<SDLSystemCapabilityType> *)sdl_systemCapabilityTypes {
return @[SDLSystemCapabilityTypeAppServices, SDLSystemCapabilityTypeNavigation, SDLSystemCapabilityTypePhoneCall, SDLSystemCapabilityTypeVideoStreaming, SDLSystemCapabilityTypeRemoteControl];
return @[SDLSystemCapabilityTypeAppServices, SDLSystemCapabilityTypeNavigation, SDLSystemCapabilityTypePhoneCall, SDLSystemCapabilityTypeVideoStreaming, SDLSystemCapabilityTypeRemoteControl, SDLSystemCapabilityTypeSeatLocation];
}

/**
Expand Down
5 changes: 4 additions & 1 deletion SmartDeviceLinkTests/SDLSystemCapabilityManagerSpec.m
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ @interface SDLSystemCapabilityManager ()
expect(testSystemCapabilityManager.videoStreamingCapability).to(beNil());
expect(testSystemCapabilityManager.remoteControlCapability).to(beNil());
expect(testSystemCapabilityManager.appServicesCapabilities).to(beNil());
expect(testSystemCapabilityManager.seatLocationCapability).to(beNil());

});

context(@"When notified of a register app interface response", ^{
Expand Down Expand Up @@ -549,7 +551,7 @@ @interface SDLSystemCapabilityManager ()
});

it(@"should send GetSystemCapability subscriptions for all known capabilities", ^{
expect(testConnectionManager.receivedRequests).to(haveCount(5));
expect(testConnectionManager.receivedRequests).to(haveCount(6));
expect(testConnectionManager.receivedRequests.lastObject).to(beAnInstanceOf([SDLGetSystemCapability class]));
});
});
Expand All @@ -576,6 +578,7 @@ @interface SDLSystemCapabilityManager ()
expect(testSystemCapabilityManager.videoStreamingCapability).to(beNil());
expect(testSystemCapabilityManager.remoteControlCapability).to(beNil());
expect(testSystemCapabilityManager.appServicesCapabilities).to(beNil());
expect(testSystemCapabilityManager.seatLocationCapability).to(beNil());
});
});
});
Expand Down

0 comments on commit 9b5a2f4

Please sign in to comment.