mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 17:35:34 +08:00
refs #675 default URL for bootstrap file
* CApplication now has member function isUnitTest * bootstrap URL has hardcoded default URL when running as unit test * unit tests are automatically marked as "running in dev. environment"
This commit is contained in:
@@ -86,7 +86,8 @@ namespace BlackCore
|
||||
Laucher,
|
||||
PilotClientCore,
|
||||
PilotClientGui,
|
||||
MappingTool
|
||||
MappingTool,
|
||||
UnitTest
|
||||
};
|
||||
|
||||
//! Similar to \sa QCoreApplication::instance() returns the single instance
|
||||
@@ -110,6 +111,9 @@ namespace BlackCore
|
||||
//! swift application running
|
||||
SwiftApplication getSwiftApplication() const;
|
||||
|
||||
//! Unit test?
|
||||
bool isUnitTest() const;
|
||||
|
||||
//! Global setup
|
||||
//! \threadsafe
|
||||
BlackCore::Data::CGlobalSetup getGlobalSetup() const;
|
||||
@@ -397,6 +401,7 @@ namespace BlackCore
|
||||
bool m_useWebData = false; //!< use web data
|
||||
bool m_signalStartup = true; //!< signal startup automatically
|
||||
bool m_devEnv = false; //!< dev. environment
|
||||
bool m_unitTest = false; //!< is UNIT test
|
||||
};
|
||||
} // namespace
|
||||
|
||||
|
||||
Reference in New Issue
Block a user