示例#1
0
void TestCpDeviceDv(CpStack& aCpStack, DvStack& aDvStack)
{
    Print("TestCpDeviceDv - starting\n");

    DeviceBasic* device = new DeviceBasic(aDvStack);
    CpDeviceDv* cpDevice = CpDeviceDv::New(aCpStack, device->Device());
    TestInvocation(*cpDevice);
    TestSubscription(*cpDevice);
    cpDevice->RemoveRef();
    delete device;

    Print("TestCpDeviceDv - completed\n");
}
示例#2
0
void OpenHome::TestFramework::Runner::Main(TInt /*aArgc*/, TChar* /*aArgv*/[], InitialisationParams* aInitParams)
{
    aInitParams->SetUseLoopbackNetworkInterface();
    UpnpLibrary::Initialise(aInitParams);
    UpnpLibrary::StartCombined();

    Print("TestCpDeviceDv - starting\n");

    DeviceBasic* device = new DeviceBasic;
    CpDeviceDv* cpDevice = CpDeviceDv::New(device->Device());
    TestInvocation(*cpDevice);
    TestSubscription(*cpDevice);
    cpDevice->RemoveRef();
    delete device;

    Print("TestCpDeviceDv - completed\n");
    UpnpLibrary::Close();
}