c92c41a50f
Remove use of BUILDING_TESTSUITE from headers. Where possible, move test APIs to their own file in the test_suite dir (testApis.cxx). For some others, add them to a special list of ‘sources which depend on the build mode’. This will hopefully go away with some further refactoring.
16 lines
409 B
C++
16 lines
409 B
C++
|
|
#include "config.h"
|
|
|
|
// implement various test-only methods on classes
|
|
|
|
#include <Airports/groundnetwork.hxx>
|
|
#include <Airports/airport.hxx>
|
|
#include <Airports/xmlloader.hxx>
|
|
|
|
void FGAirport::testSuiteInjectGroundnetXML(const SGPath& path)
|
|
{
|
|
_groundNetwork.reset(new FGGroundNetwork(const_cast<FGAirport*>(this)));
|
|
XMLLoader::loadFromPath(_groundNetwork.get(), path);
|
|
_groundNetwork->init();
|
|
}
|
|
|