summaryrefslogtreecommitdiff
path: root/test/shuffler_test.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2022-12-29 01:47:32 +0100
committerCarl Hetherington <cth@carlh.net>2022-12-29 01:47:32 +0100
commitce73eaf7875a9a3326afcd839ad85eb95879c160 (patch)
treec4cff45a7bada9aebf48b6e51c5dffe086045e20 /test/shuffler_test.cc
parent0f772d68ef7fb32002538ce9ca7c9764d0d7135b (diff)
Cleanup: test tidying.
Diffstat (limited to 'test/shuffler_test.cc')
-rw-r--r--test/shuffler_test.cc29
1 files changed, 26 insertions, 3 deletions
diff --git a/test/shuffler_test.cc b/test/shuffler_test.cc
index d1c5b8533..2099a0923 100644
--- a/test/shuffler_test.cc
+++ b/test/shuffler_test.cc
@@ -1,9 +1,32 @@
-#include "lib/shuffler.h"
-#include "lib/piece.h"
+/*
+ Copyright (C) 2020-2021 Carl Hetherington <cth@carlh.net>
+
+ This file is part of DCP-o-matic.
+
+ DCP-o-matic is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ DCP-o-matic is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with DCP-o-matic. If not, see <http://www.gnu.org/licenses/>.
+
+*/
+
+
#include "lib/content_video.h"
+#include "lib/piece.h"
+#include "lib/shuffler.h"
#include <boost/test/unit_test.hpp>
+
using std::list;
+using std::make_shared;
using std::shared_ptr;
using std::weak_ptr;
using boost::optional;
@@ -15,7 +38,7 @@ using namespace boost::placeholders;
static void
push (Shuffler& s, int frame, Eyes eyes)
{
- shared_ptr<Piece> piece (new Piece (shared_ptr<Content>(), shared_ptr<Decoder>(), FrameRateChange(24, 24)));
+ auto piece = make_shared<Piece>(shared_ptr<Content>(), shared_ptr<Decoder>(), FrameRateChange(24, 24));
ContentVideo cv;
cv.frame = frame;
cv.eyes = eyes;