~ari-tczew/ubuntu/natty/clementine/lp-747113

« back to all changes in this revision

Viewing changes to tests/songloader_test.cpp

  • Committer: Artur Rona
  • Date: 2011-04-04 20:05:33 UTC
  • Revision ID: ari-tczew@ubuntu.com-20110404200533-6aclzasj5pp8t1hq
* New upstream release. (LP: #747113)
* Drop all patches, have been applied upstream.
* Update debian/copyright.
* Refresh description in debian/control in order to avoid lintian error.
* Bump debhelper to 8.

Show diffs side-by-side

added added

removed removed

Lines of Context:
53
53
    library_.reset(new MockLibraryBackend);
54
54
    loader_.reset(new SongLoader(library_.get()));
55
55
    loader_->set_timeout(20000);
 
56
 
 
57
    // the thing we return is not really important
 
58
    EXPECT_CALL(*library_.get(), GetSongByFilename(_, _)).WillRepeatedly(Return(Song()));
56
59
  }
57
60
 
58
61
  void LoadLocalDirectory(const QString& dir);
108
111
  // Check the song got loaded
109
112
  ASSERT_EQ(1, loader_->songs().count());
110
113
  EXPECT_EQ("Title", loader_->songs()[0].title());
111
 
  EXPECT_EQ(123, loader_->songs()[0].length());
 
114
  EXPECT_EQ(123 * kNsecPerSec, loader_->songs()[0].length_nanosec());
112
115
}
113
116
 
114
117
TEST_F(SongLoaderTest, LoadLocalM3U) {