mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-18 04:19:55 +01:00
Fix unit tests
This commit is contained in:
parent
b8ee548eb4
commit
dc49c098df
@ -207,7 +207,11 @@ TEST_F(Mpris1Test, GetsStatus) {
|
||||
status = mpris_->player()->GetStatus();
|
||||
EXPECT_EQ(0, status.random);
|
||||
|
||||
sequence_->SetShuffleMode(PlaylistSequence::Shuffle_Album);
|
||||
sequence_->SetShuffleMode(PlaylistSequence::Shuffle_InsideAlbum);
|
||||
status = mpris_->player()->GetStatus();
|
||||
EXPECT_EQ(1, status.random);
|
||||
|
||||
sequence_->SetShuffleMode(PlaylistSequence::Shuffle_Albums);
|
||||
status = mpris_->player()->GetStatus();
|
||||
EXPECT_EQ(1, status.random);
|
||||
|
||||
@ -233,7 +237,12 @@ TEST_F(Mpris1Test, HandlesShuffleModeChanged) {
|
||||
sequence_->SetShuffleMode(PlaylistSequence::Shuffle_All);
|
||||
ASSERT_EQ(0, spy.count());
|
||||
|
||||
sequence_->SetShuffleMode(PlaylistSequence::Shuffle_Album);
|
||||
sequence_->SetShuffleMode(PlaylistSequence::Shuffle_InsideAlbum);
|
||||
ASSERT_EQ(1, spy.count());
|
||||
EXPECT_EQ(1, spy[0][0].value<DBusStatus>().random);
|
||||
spy.clear();
|
||||
|
||||
sequence_->SetShuffleMode(PlaylistSequence::Shuffle_Albums);
|
||||
ASSERT_EQ(1, spy.count());
|
||||
EXPECT_EQ(1, spy[0][0].value<DBusStatus>().random);
|
||||
spy.clear();
|
||||
|
Loading…
Reference in New Issue
Block a user