diff options
author | Joel Fischer <joeljfischer@gmail.com> | 2019-09-18 11:16:35 -0400 |
---|---|---|
committer | Joel Fischer <joeljfischer@gmail.com> | 2019-09-18 11:16:35 -0400 |
commit | 606e269cd39a377b331c7c4c74b8d6d03af3711c (patch) | |
tree | 3f8c1a19b34ac1325b667156cd56e749feb444bf | |
parent | 17ce8824b60d5198ce38dae3dba4a6982d131715 (diff) | |
download | sdl_ios-606e269cd39a377b331c7c4c74b8d6d03af3711c.tar.gz |
Fixing test errors
-rw-r--r-- | SmartDeviceLinkTests/DevAPISpecs/SDLStreamingVideoLifecycleManagerSpec.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingVideoLifecycleManagerSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingVideoLifecycleManagerSpec.m index 4e37a74c4..919886604 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(beTrue()); + 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(beTrue()); + 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)); }); @@ -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)).to(beTrue()); + expect(@(CGSizeEqualToSize(streamingLifecycleManager.screenSize, preferredFormat))).to(beTrue()); expect(streamingLifecycleManager.dataSource).toNot(beNil()); }); }); |