summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2019-09-18 12:16:05 -0400
committerJoel Fischer <joeljfischer@gmail.com>2019-09-18 12:16:05 -0400
commit74c03e41607c976698216c881d34696f56ca9a47 (patch)
tree61bac62d4b45ca726ccca508a579c94cf45827fd
parent0d1ffd85343ec87200434dddd48c2d33577d640e (diff)
downloadsdl_ios-74c03e41607c976698216c881d34696f56ca9a47.tar.gz
Additional test fixes
-rw-r--r--SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m4
-rw-r--r--SmartDeviceLinkTests/DevAPISpecs/SDLStreamingVideoLifecycleManagerSpec.m10
2 files changed, 6 insertions, 8 deletions
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m
index db6217e02..4066e2583 100644
--- a/SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m
+++ b/SmartDeviceLinkTests/DevAPISpecs/SDLMenuManagerSpec.m
@@ -149,7 +149,7 @@ describe(@"menu manager", ^{
});
});
- describe(@"Notificaiton Responses", ^{
+ describe(@"Notification Responses", ^{
it(@"should set display capabilities when SDLDidReceiveSetDisplayLayoutResponse is received", ^{
testDisplayCapabilities = [[SDLDisplayCapabilities alloc] init];
@@ -157,7 +157,7 @@ describe(@"menu manager", ^{
testSetDisplayLayoutResponse.success = @YES;
testSetDisplayLayoutResponse.displayCapabilities = testDisplayCapabilities;
- SDLRPCResponseNotification *notification = [[SDLRPCResponseNotification alloc] initWithName:SDLDidReceiveRegisterAppInterfaceResponse object:self rpcResponse:testSetDisplayLayoutResponse];
+ SDLRPCResponseNotification *notification = [[SDLRPCResponseNotification alloc] initWithName:SDLDidReceiveSetDisplayLayoutRequest object:self rpcResponse:testSetDisplayLayoutResponse];
[[NSNotificationCenter defaultCenter] postNotification:notification];
expect(testManager.displayCapabilities).to(equal(testDisplayCapabilities));
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingVideoLifecycleManagerSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingVideoLifecycleManagerSpec.m
index 919886604..5a01c0c29 100644
--- a/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingVideoLifecycleManagerSpec.m
+++ b/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingVideoLifecycleManagerSpec.m
@@ -551,14 +551,8 @@ describe(@"the streaming video manager", ^{
beforeEach(^{
- preferredResolutionLow = [[SDLImageResolution alloc] initWithWidth:10 height:10];
- preferredResolutionHigh = [[SDLImageResolution alloc] initWithWidth:100 height:100];
- streamingLifecycleManager.preferredResolutions = @[preferredResolutionLow, preferredResolutionHigh];
-
testVideoStartServicePayload = [[SDLControlFramePayloadVideoStartServiceAck alloc] initWithMTU:testMTU height:SDLControlFrameInt32NotFound width:SDLControlFrameInt32NotFound protocol:nil codec:nil];
testVideoMessage = [[SDLV2ProtocolMessage alloc] initWithHeader:testVideoHeader andPayload:testVideoStartServicePayload.data];
-
- expect(@(CGSizeEqualToSize(streamingLifecycleManager.screenSize, CGSizeZero))).to(beTrue());
});
context(@"If the data source is nil", ^{
@@ -575,6 +569,10 @@ describe(@"the streaming video manager", ^{
context(@"If the preferred resolution was set in the data source", ^{
beforeEach(^{
+ preferredResolutionLow = [[SDLImageResolution alloc] initWithWidth:10 height:10];
+ preferredResolutionHigh = [[SDLImageResolution alloc] initWithWidth:100 height:100];
+ streamingLifecycleManager.preferredResolutions = @[preferredResolutionLow, preferredResolutionHigh];
+
streamingLifecycleManager.dataSource = testDataSource;
[streamingLifecycleManager handleProtocolStartServiceACKMessage:testVideoMessage];
});