diff options
Diffstat (limited to 'SmartDeviceLinkTests/DevAPISpecs/SDLStreamingMediaConfigurationSpec.m')
-rw-r--r-- | SmartDeviceLinkTests/DevAPISpecs/SDLStreamingMediaConfigurationSpec.m | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingMediaConfigurationSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingMediaConfigurationSpec.m index 447dac87b..56b66ea5d 100644 --- a/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingMediaConfigurationSpec.m +++ b/SmartDeviceLinkTests/DevAPISpecs/SDLStreamingMediaConfigurationSpec.m @@ -17,7 +17,7 @@ describe(@"a streaming media configuration", ^{ __block SDLStreamingEncryptionFlag testEncryptionFlag = SDLStreamingEncryptionFlagNone; __block SDLFakeStreamingManagerDataSource *testDataSource = nil; __block NSDictionary<NSString *, id> *testVideoEncoderSettings = nil; - __block UIWindow *testWindow = nil; + __block UIViewController *testViewController = nil; beforeEach(^{ testFakeSecurityManager = [[SDLFakeSecurityManager alloc] init]; @@ -25,10 +25,10 @@ describe(@"a streaming media configuration", ^{ testVideoEncoderSettings = @{ (__bridge NSString *)kVTCompressionPropertyKey_ExpectedFrameRate : @1 }; - testWindow = [[UIWindow alloc] initWithFrame:CGRectMake(0, 0, 100, 100)]; + testViewController = [[UIViewController alloc] init]; testEncryptionFlag = SDLStreamingEncryptionFlagAuthenticateAndEncrypt; - testConfig = [[SDLStreamingMediaConfiguration alloc] initWithSecurityManagers:@[testFakeSecurityManager.class] encryptionFlag:testEncryptionFlag videoSettings:testVideoEncoderSettings dataSource:testDataSource window:testWindow]; + testConfig = [[SDLStreamingMediaConfiguration alloc] initWithSecurityManagers:@[testFakeSecurityManager.class] encryptionFlag:testEncryptionFlag videoSettings:testVideoEncoderSettings dataSource:testDataSource rootViewController:testViewController]; }); it(@"should have properly set properties", ^{ @@ -36,7 +36,7 @@ describe(@"a streaming media configuration", ^{ expect(@(testConfig.maximumDesiredEncryption)).to(equal(@(SDLStreamingEncryptionFlagAuthenticateAndEncrypt))); expect(testConfig.customVideoEncoderSettings).to(equal(testVideoEncoderSettings)); expect(testConfig.dataSource).to(equal(testDataSource)); - expect(testConfig.window).to(equal(testWindow)); + expect(testConfig.rootViewController).to(equal(testViewController)); }); }); @@ -50,7 +50,7 @@ describe(@"a streaming media configuration", ^{ expect(@(testConfig.maximumDesiredEncryption)).to(equal(@(SDLStreamingEncryptionFlagNone))); expect(testConfig.customVideoEncoderSettings).to(beNil()); expect(testConfig.dataSource).to(beNil()); - expect(testConfig.window).to(beNil()); + expect(testConfig.rootViewController).to(beNil()); }); }); @@ -68,7 +68,7 @@ describe(@"a streaming media configuration", ^{ expect(@(testConfig.maximumDesiredEncryption)).to(equal(@(SDLStreamingEncryptionFlagAuthenticateAndEncrypt))); expect(testConfig.customVideoEncoderSettings).to(beNil()); expect(testConfig.dataSource).to(beNil()); - expect(testConfig.window).to(beNil()); + expect(testConfig.rootViewController).to(beNil()); }); }); }); |