summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2018-07-03 12:05:30 -0400
committerJoel Fischer <joeljfischer@gmail.com>2018-07-03 12:05:30 -0400
commitf45823d195a6d501caf2f4f9f0a05982c6d26289 (patch)
treec3d79cca6769ba309f514cafee4c9513775288c1
parenta86c9ed06fbd3874059475cac5e5b52f575fbc76 (diff)
downloadsdl_ios-feature/issue_708_progress_bar_seek.tar.gz
-rw-r--r--SmartDeviceLinkTests/DevAPISpecs/SDLNotificationDispatcherSpec.m1
-rw-r--r--SmartDeviceLinkTests/RPCSpecs/RequestSpecs/SDLSetMediaClockTimerSpec.m8
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());
});
});