summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2019-09-18 10:16:26 -0400
committerJoel Fischer <joeljfischer@gmail.com>2019-09-18 10:16:26 -0400
commita166598a3ee595ceb2e73e6c00ef9fea6265781b (patch)
tree8ff9d0074e0efb60a3d597c3724836627385aacc
parentdfd6280bf7947241d92be99db11177d91da220c4 (diff)
downloadsdl_ios-a166598a3ee595ceb2e73e6c00ef9fea6265781b.tar.gz
Attempt to fix test failures
-rw-r--r--SmartDeviceLinkTests/DevAPISpecs/SDLStreamingVideoLifecycleManagerSpec.m10
1 files changed, 5 insertions, 5 deletions
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingVideoLifecycleManagerSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingVideoLifecycleManagerSpec.m
index 6dd0b2c2e..d9bce578c 100644
--- a/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingVideoLifecycleManagerSpec.m
+++ b/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingVideoLifecycleManagerSpec.m
@@ -524,7 +524,7 @@ describe(@"the streaming video manager", ^{
it(@"should have set all the right properties", ^{
expect([[SDLGlobals sharedGlobals] mtuSizeForServiceType:SDLServiceTypeVideo]).to(equal(testMTU));
- expect(CGSizeEqualToSize(streamingLifecycleManager.screenSize, CGSizeMake(testVideoWidth, testVideoHeight))).to(equal(YES));
+ expect(CGSizeEqualToSize(streamingLifecycleManager.screenSize, CGSizeMake(testVideoWidth, testVideoHeight))).to(beTrue());
expect(streamingLifecycleManager.videoEncrypted).to(equal(YES));
expect(streamingLifecycleManager.videoFormat).to(equal([[SDLVideoStreamingFormat alloc] initWithCodec:testVideoCodec protocol:testVideoProtocol]));
expect(streamingLifecycleManager.currentVideoStreamState).to(equal(SDLVideoStreamManagerStateReady));
@@ -539,7 +539,7 @@ describe(@"the streaming video manager", ^{
});
it(@"should fall back correctly", ^{
- expect(CGSizeEqualToSize(streamingLifecycleManager.screenSize, CGSizeMake(testVideoWidth, testVideoHeight))).to(equal(YES));
+ expect(CGSizeEqualToSize(streamingLifecycleManager.screenSize, CGSizeMake(testVideoWidth, testVideoHeight))).to(beTrue());
expect(streamingLifecycleManager.videoFormat).to(equal([[SDLVideoStreamingFormat alloc] initWithCodec:SDLVideoStreamingCodecH264 protocol:SDLVideoStreamingProtocolRAW]));
expect(streamingLifecycleManager.currentVideoStreamState).to(equal(SDLVideoStreamManagerStateReady));
});
@@ -558,7 +558,7 @@ describe(@"the streaming video manager", ^{
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));
+ expect(CGSizeEqualToSize(streamingLifecycleManager.screenSize, CGSizeZero)).to(beTrue());
});
context(@"If the data source is nil", ^{
@@ -568,7 +568,7 @@ describe(@"the streaming video manager", ^{
});
it(@"should not replace the existing screen resolution", ^{
- expect(CGSizeEqualToSize(streamingLifecycleManager.screenSize, CGSizeZero));
+ expect(CGSizeEqualToSize(streamingLifecycleManager.screenSize, CGSizeZero)).to(beTrue());
expect(streamingLifecycleManager.dataSource).to(beNil());
});
});
@@ -581,7 +581,7 @@ describe(@"the streaming video manager", ^{
it(@"should set the screen size using the first provided preferred resolution", ^{
CGSize preferredFormat = CGSizeMake(preferredResolutionLow.resolutionWidth.floatValue, preferredResolutionLow.resolutionHeight.floatValue);
- expect(CGSizeEqualToSize(streamingLifecycleManager.screenSize, preferredFormat));
+ expect(CGSizeEqualToSize(streamingLifecycleManager.screenSize, preferredFormat)).to(beTrue());
expect(streamingLifecycleManager.dataSource).toNot(beNil());
});
});