From 57d7989623f1e6e738a0949be5b6749408de7a6a Mon Sep 17 00:00:00 2001 From: David Sansome Date: Mon, 30 May 2011 18:56:42 +0000 Subject: [PATCH] Fix the library backend test after r3339 broke it --- tests/librarybackend_test.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/librarybackend_test.cpp b/tests/librarybackend_test.cpp index 441346773..5ce410d2b 100644 --- a/tests/librarybackend_test.cpp +++ b/tests/librarybackend_test.cpp @@ -157,7 +157,7 @@ class SingleSong : public LibraryBackendTest { EXPECT_EQ(0, deleted_spy.count()); ASSERT_EQ(1, added_spy.count()); - SongList list = added_spy[0][0].value(); + SongList list = *(reinterpret_cast(added_spy[0][0].data())); ASSERT_EQ(1, list.count()); EXPECT_EQ(song_.title(), list[0].title()); EXPECT_EQ(song_.artist(), list[0].artist()); @@ -261,8 +261,8 @@ TEST_F(SingleSong, UpdateSong) { ASSERT_EQ(1, added_spy.size()); ASSERT_EQ(1, deleted_spy.size()); - SongList songs_added = added_spy[0][0].value(); - SongList songs_deleted = deleted_spy[0][0].value(); + SongList songs_added = *(reinterpret_cast(added_spy[0][0].data())); + SongList songs_deleted = *(reinterpret_cast(deleted_spy[0][0].data())); ASSERT_EQ(1, songs_added.size()); ASSERT_EQ(1, songs_deleted.size()); EXPECT_EQ("Title", songs_deleted[0].title()); @@ -283,7 +283,7 @@ TEST_F(SingleSong, DeleteSongs) { ASSERT_EQ(1, deleted_spy.size()); - SongList songs_deleted = deleted_spy[0][0].value(); + SongList songs_deleted = *(reinterpret_cast(deleted_spy[0][0].data())); ASSERT_EQ(1, songs_deleted.size()); EXPECT_EQ("Title", songs_deleted[0].title()); EXPECT_EQ(1, songs_deleted[0].id());