-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4110 from Holzhaus/mixxxmainwindow-init-refactor
Start to untangle CoreServices/MixxxMainWindow initialization
- Loading branch information
Showing
7 changed files
with
57 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#include <gtest/gtest.h> | ||
|
||
#include "coreservices.h" | ||
#include "test/mixxxtest.h" | ||
#include "util/cmdlineargs.h" | ||
|
||
class CoreServicesTest : public MixxxTest { | ||
}; | ||
|
||
// This test is disabled because it fails on CI for some unknown reason. | ||
TEST_F(CoreServicesTest, DISABLED_TestInitialization) { | ||
// Initialize the app | ||
const int argc = 1; | ||
CmdlineArgs cmdlineArgs; | ||
char progName[] = "mixxxtest"; | ||
char safeMode[] = "--safe-mode"; | ||
char* argv[] = {progName, safeMode}; | ||
cmdlineArgs.parse(argc, argv); | ||
|
||
const auto pCoreServices = std::make_unique<mixxx::CoreServices>(cmdlineArgs); | ||
pCoreServices->initialize(application()); | ||
|
||
EXPECT_NE(pCoreServices->getControllerManager(), nullptr); | ||
EXPECT_NE(pCoreServices->getEffectsManager(), nullptr); | ||
EXPECT_NE(pCoreServices->getLV2Backend(), nullptr); | ||
EXPECT_NE(pCoreServices->getLibrary(), nullptr); | ||
EXPECT_NE(pCoreServices->getPlayerManager(), nullptr); | ||
EXPECT_NE(pCoreServices->getScreensaverManager(), nullptr); | ||
EXPECT_NE(pCoreServices->getSettingsManager(), nullptr); | ||
EXPECT_NE(pCoreServices->getSoundManager(), nullptr); | ||
EXPECT_NE(pCoreServices->getVinylControlManager(), nullptr); | ||
} |