diff options
Diffstat (limited to 'src/test/autodjprocessor_test.cpp')
-rw-r--r-- | src/test/autodjprocessor_test.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/test/autodjprocessor_test.cpp b/src/test/autodjprocessor_test.cpp index ce85211060..dfb12f7e23 100644 --- a/src/test/autodjprocessor_test.cpp +++ b/src/test/autodjprocessor_test.cpp @@ -1,19 +1,21 @@ -#include <gtest/gtest.h> +#include "library/autodj/autodjprocessor.h" + #include <gmock/gmock.h> +#include <gtest/gtest.h> -#include <QString> #include <QScopedPointer> +#include <QString> -#include "test/librarytest.h" -#include "library/autodj/autodjprocessor.h" -#include "control/controlpushbutton.h" -#include "control/controlpotmeter.h" #include "control/controllinpotmeter.h" +#include "control/controlpotmeter.h" +#include "control/controlpushbutton.h" #include "engine/engine.h" -#include "mixer/playermanager.h" #include "mixer/basetrackplayer.h" -#include "track/track.h" +#include "mixer/playerinfo.h" +#include "mixer/playermanager.h" #include "sources/soundsourceproxy.h" +#include "test/librarytest.h" +#include "track/track.h" using ::testing::_; using ::testing::Return; @@ -187,6 +189,7 @@ class AutoDJProcessorTest : public LibraryTest { } pPlayerManager.reset(new MockPlayerManager()); + PlayerInfo::create(); // Setup 4 fake decks. ON_CALL(*pPlayerManager, getPlayer(QString("[Channel1]"))) @@ -210,6 +213,7 @@ class AutoDJProcessorTest : public LibraryTest { } virtual ~AutoDJProcessorTest() { + PlayerInfo::destroy(); } TrackId addTrackToCollection(const QString& trackLocation) { |