Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestUPnPPlayer.cpp File Reference
#include "network/upnp/UPnPPlayer.h"
#include <gtest/gtest.h>

Functions

 TEST (TestUPnPPlaybackState, NothingIsWatchedBeforeAFileStarts)
 
 TEST (TestUPnPPlaybackState, AStoppedRendererEndsTheFileItWasPlaying)
 
 TEST (TestUPnPPlaybackState, PlaybackEndsOnlyOnce)
 
 TEST (TestUPnPPlaybackState, TheStopThatStartsTheNextFileDoesNotEndPlayback)
 Opening a file stops a renderer that is already playing, and that STOPPED belongs to the file being replaced. Reading it as the end of playback advances the playlist, so the renderer is handed a file the user did not pick.
 
 TEST (TestUPnPPlaybackState, AnOpenThatFailsLeavesNothingWatched)
 An open that never reaches PLAYING leaves the previous file unwatched rather than ending it a second time.
 

Function Documentation

◆ TEST() [1/5]

TEST ( TestUPnPPlaybackState ,
AnOpenThatFailsLeavesNothingWatched  )

An open that never reaches PLAYING leaves the previous file unwatched rather than ending it a second time.

◆ TEST() [2/5]

TEST ( TestUPnPPlaybackState ,
AStoppedRendererEndsTheFileItWasPlaying  )

◆ TEST() [3/5]

TEST ( TestUPnPPlaybackState ,
NothingIsWatchedBeforeAFileStarts  )

◆ TEST() [4/5]

TEST ( TestUPnPPlaybackState ,
PlaybackEndsOnlyOnce  )

◆ TEST() [5/5]

TEST ( TestUPnPPlaybackState ,
TheStopThatStartsTheNextFileDoesNotEndPlayback  )

Opening a file stops a renderer that is already playing, and that STOPPED belongs to the file being replaced. Reading it as the end of playback advances the playlist, so the renderer is handed a file the user did not pick.