diff options
-rw-r--r-- | SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m | 1 | ||||
-rw-r--r-- | SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m | 8 |
2 files changed, 8 insertions, 1 deletions
diff --git a/SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m b/SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m index fa53d0de8..390a9c024 100644 --- a/SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m +++ b/SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m @@ -52,6 +52,7 @@ describe(@"a notification dispatcher", ^{ expect(@([testDispatcher respondsToSelector:@selector(onOnHashChange:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onOnLanguageChange:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onOnLockScreenNotification:)])).to(beTruthy()); + expect([testDispatcher respondsToSelector:@selector(onOnSeekMediaClockTimer:)]).to(beTrue()); expect(@([testDispatcher respondsToSelector:@selector(onOnSyncPData:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onOnSystemRequest:)])).to(beTruthy()); expect(@([testDispatcher respondsToSelector:@selector(onOnTBTClientState:)])).to(beTruthy()); diff --git a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m index bf8243ab8..c885e98f0 100644 --- a/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m +++ b/SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m @@ -26,10 +26,12 @@ describe(@"Getter/Setter Tests", ^ { testRequest.startTime = time1; testRequest.endTime = time2; testRequest.updateMode = SDLUpdateModeCountUp; + testRequest.enableSeek = @YES; expect(testRequest.startTime).to(equal(time1)); expect(testRequest.endTime).to(equal(time2)); expect(testRequest.updateMode).to(equal(SDLUpdateModeCountUp)); + expect(testRequest.enableSeek).to(beTrue()); }); it(@"Should get correctly when initialized", ^ { @@ -37,13 +39,16 @@ describe(@"Getter/Setter Tests", ^ { @{SDLNameParameters: @{SDLNameStartTime:time1, SDLNameEndTime:time2, - SDLNameUpdateMode:SDLUpdateModeCountUp}, + SDLNameUpdateMode:SDLUpdateModeCountUp, + SDLNameEnableSeek: @YES, + }, SDLNameOperationName:SDLNameSetMediaClockTimer}} mutableCopy]; SDLSetMediaClockTimer* testRequest = [[SDLSetMediaClockTimer alloc] initWithDictionary:dict]; expect(testRequest.startTime).to(equal(time1)); expect(testRequest.endTime).to(equal(time2)); expect(testRequest.updateMode).to(equal(SDLUpdateModeCountUp)); + expect(testRequest.enableSeek).to(beTrue()); }); it(@"Should return nil if not set", ^ { @@ -52,6 +57,7 @@ describe(@"Getter/Setter Tests", ^ { expect(testRequest.startTime).to(beNil()); expect(testRequest.endTime).to(beNil()); expect(testRequest.updateMode).to(beNil()); + expect(testRequest.enableSeek).to(beNil()); }); }); |