#include "content_video.h"
#include <boost/signals2.hpp>
+struct shuffler_test5;
+
class Piece;
class Shuffler
typedef std::pair<boost::weak_ptr<Piece>, ContentVideo> Store;
private:
+ friend struct ::shuffler_test5;
+
std::list<Store> _store;
boost::optional<ContentVideo> _last;
static int const _max_size;
check (0, EYES_LEFT, __LINE__);
/* More lefts should be kept in the shuffler in the hope that some rights arrive */
- for (int i = 0; i < 8; ++i) {
+ for (int i = 0; i < s._max_size; ++i) {
push (s, i + 1, EYES_LEFT);
}
BOOST_CHECK (pending_cv.empty ());
/* If enough lefts come the shuffler should conclude that there's no rights and start
giving out the lefts.
*/
- push (s, 9, EYES_LEFT);
+ push (s, s._max_size + 1, EYES_LEFT);
check (1, EYES_LEFT, __LINE__);
}