summaryrefslogtreecommitdiff
path: root/SmartDeviceLinkTests
diff options
context:
space:
mode:
authorJoel Fischer <joeljfischer@gmail.com>2017-12-12 13:47:56 -0500
committerJoel Fischer <joeljfischer@gmail.com>2017-12-12 13:47:56 -0500
commit6c45ce796e704446f4529bc13b3df5a41a0058e8 (patch)
treea11e8e1603cdcc4b678ca12ddf4e478995ddab2c /SmartDeviceLinkTests
parentde9f2cbdc696a710ff3eb72f8719a499d7f85fab (diff)
downloadsdl_ios-6c45ce796e704446f4529bc13b3df5a41a0058e8.tar.gz
Fix audio streaming test cases
Diffstat (limited to 'SmartDeviceLinkTests')
-rw-r--r--SmartDeviceLinkTests/SDLStreamingMediaLifecycleManagerSpec.m12
1 files changed, 6 insertions, 6 deletions
diff --git a/SmartDeviceLinkTests/SDLStreamingMediaLifecycleManagerSpec.m b/SmartDeviceLinkTests/SDLStreamingMediaLifecycleManagerSpec.m
index 9a322cbb5..75c0518c4 100644
--- a/SmartDeviceLinkTests/SDLStreamingMediaLifecycleManagerSpec.m
+++ b/SmartDeviceLinkTests/SDLStreamingMediaLifecycleManagerSpec.m
@@ -208,8 +208,8 @@ describe(@"the streaming media manager", ^{
sendNotificationForHMILevel(SDLHMILevelNone);
});
- it(@"should close only the video stream", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamStateReady));
+ it(@"should close both streams", ^{
+ expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamStateShuttingDown));
expect(streamingLifecycleManager.currentVideoStreamState).to(equal(SDLVideoStreamStateShuttingDown));
});
});
@@ -273,8 +273,8 @@ describe(@"the streaming media manager", ^{
sendNotificationForHMILevel(SDLHMILevelNone);
});
- it(@"should close only the video stream", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamStateReady));
+ it(@"should close both streams", ^{
+ expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamStateShuttingDown));
expect(streamingLifecycleManager.currentVideoStreamState).to(equal(SDLVideoStreamStateShuttingDown));
});
});
@@ -330,8 +330,8 @@ describe(@"the streaming media manager", ^{
sendNotificationForHMILevel(SDLHMILevelNone);
});
- it(@"should only start the audio stream", ^{
- expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamStateStarting));
+ it(@"should not start either stream", ^{
+ expect(streamingLifecycleManager.currentAudioStreamState).to(equal(SDLAudioStreamStateStopped));
expect(streamingLifecycleManager.currentVideoStreamState).to(equal(SDLVideoStreamStateStopped));
});
});