|
|
@ -79,9 +79,11 @@ LinkInterface* LinkManager::createLink(LinkConfiguration* config) |
|
|
|
case LinkConfiguration::TypeUdp: |
|
|
|
case LinkConfiguration::TypeUdp: |
|
|
|
pLink = new UDPLink(dynamic_cast<UDPConfiguration*>(config)); |
|
|
|
pLink = new UDPLink(dynamic_cast<UDPConfiguration*>(config)); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
#ifdef UNITTEST_BUILD |
|
|
|
case LinkConfiguration::TypeMock: |
|
|
|
case LinkConfiguration::TypeMock: |
|
|
|
pLink = new MockLink(dynamic_cast<MockConfiguration*>(config)); |
|
|
|
pLink = new MockLink(dynamic_cast<MockConfiguration*>(config)); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|
if(pLink) { |
|
|
|
if(pLink) { |
|
|
|
addLink(pLink); |
|
|
|
addLink(pLink); |
|
|
@ -373,10 +375,12 @@ void LinkManager::loadLinkConfigurationList() |
|
|
|
pLink = (LinkConfiguration*)new UDPConfiguration(name); |
|
|
|
pLink = (LinkConfiguration*)new UDPConfiguration(name); |
|
|
|
pLink->setPreferred(preferred); |
|
|
|
pLink->setPreferred(preferred); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
#ifdef UNITTEST_BUILD |
|
|
|
case LinkConfiguration::TypeMock: |
|
|
|
case LinkConfiguration::TypeMock: |
|
|
|
pLink = (LinkConfiguration*)new MockConfiguration(name); |
|
|
|
pLink = (LinkConfiguration*)new MockConfiguration(name); |
|
|
|
pLink->setPreferred(false); |
|
|
|
pLink->setPreferred(false); |
|
|
|
break; |
|
|
|
break; |
|
|
|
|
|
|
|
#endif |
|
|
|
} |
|
|
|
} |
|
|
|
if(pLink) { |
|
|
|
if(pLink) { |
|
|
|
// Have the instance load its own values
|
|
|
|
// Have the instance load its own values
|
|
|
|