Adds immediate migration results in progress
This commit is contained in:
2102 files changed
+17482
-15071
No files matched your search
+20
-20
@@ -36,7 +36,7 @@ AvmFtTests::~AvmFtTests()
|
||||
// ------------------------------------------------------------------------------
|
||||
bool AvmFtTests::init(int domainId, int testId, int menuId, int mountingPointId)
|
||||
{
|
||||
INFO_LOG() << "init begin";
|
||||
INFO_LOG(m_logger) << "init begin";
|
||||
|
||||
m_testId = testId;
|
||||
m_menuStructId = menuId;
|
||||
@@ -47,14 +47,14 @@ bool AvmFtTests::init(int domainId, int testId, int menuId, int mountingPointId)
|
||||
return false;
|
||||
m_ddsConnector->initPublisherSubscriber();
|
||||
|
||||
DEBUG_LOG() << "create ftc AVM";
|
||||
DEBUG_LOG(m_logger) << "create ftc AVM";
|
||||
m_ftc = AudioVideoManagement::Interface::Ftc::create(m_ddsConnector);
|
||||
DEBUG_LOG() << "init ftc AVM";
|
||||
DEBUG_LOG(m_logger) << "init ftc AVM";
|
||||
bool bRet = m_ftc->enableAll();
|
||||
DEBUG_LOG() << "init end AVM - bRet = " << bRet;
|
||||
DEBUG_LOG(m_logger) << "init end AVM - bRet = " << bRet;
|
||||
|
||||
DEBUG_LOG() << "Domain Id = " << domainId;
|
||||
DEBUG_LOG() << "Test Id = " << testId;
|
||||
DEBUG_LOG(m_logger) << "Domain Id = " << domainId;
|
||||
DEBUG_LOG(m_logger) << "Test Id = " << testId;
|
||||
|
||||
return bRet;
|
||||
}
|
||||
@@ -62,7 +62,7 @@ bool AvmFtTests::init(int domainId, int testId, int menuId, int mountingPointId)
|
||||
// ------------------------------------------------------------------------------
|
||||
void AvmFtTests::startTest()
|
||||
{
|
||||
INFO_LOG() << "startTest";
|
||||
INFO_LOG(m_logger) << "startTest";
|
||||
if (m_testId <= 1)
|
||||
QTimer::singleShot(0, this, &AvmFtTests::tryCreate);
|
||||
else if (m_testId == 2)
|
||||
@@ -74,7 +74,7 @@ void AvmFtTests::startTest()
|
||||
// ------------------------------------------------------------------------------
|
||||
void AvmFtTests::tryCreate()
|
||||
{
|
||||
INFO_LOG() << "trying to send createMenuStructRequest";
|
||||
INFO_LOG(m_logger) << "trying to send createMenuStructRequest";
|
||||
|
||||
m_menuStructId = -2;
|
||||
ModifyMenuStructRequest request;
|
||||
@@ -101,7 +101,7 @@ void AvmFtTests::tryCreate()
|
||||
|
||||
if (!m_ftc->modifyMenuStructRequest(request, this))
|
||||
{
|
||||
ERROR_LOG() << "Error requesting create data";
|
||||
ERROR_LOG(m_logger) << "Error requesting create data";
|
||||
failExit();
|
||||
}
|
||||
}
|
||||
@@ -109,7 +109,7 @@ void AvmFtTests::tryCreate()
|
||||
// ------------------------------------------------------------------------------
|
||||
void AvmFtTests::tryModify()
|
||||
{
|
||||
INFO_LOG() << "trying to send modify request for menuStructId = " << m_menuStructId;
|
||||
INFO_LOG(m_logger) << "trying to send modify request for menuStructId = " << m_menuStructId;
|
||||
ModifyMenuStructRequest request;
|
||||
request.id(m_menuStructId);
|
||||
request.name("TestGlobalMenuModify");
|
||||
@@ -134,7 +134,7 @@ void AvmFtTests::tryModify()
|
||||
|
||||
if (!m_ftc->modifyMenuStructRequest(request, this))
|
||||
{
|
||||
ERROR_LOG() << "Error requesting modify data";
|
||||
ERROR_LOG(m_logger) << "Error requesting modify data";
|
||||
failExit();
|
||||
}
|
||||
}
|
||||
@@ -142,13 +142,13 @@ void AvmFtTests::tryModify()
|
||||
// ------------------------------------------------------------------------------
|
||||
void AvmFtTests::tryDelete()
|
||||
{
|
||||
INFO_LOG() << "trying to send delete request for menuStructId = " << m_menuStructId;
|
||||
INFO_LOG(m_logger) << "trying to send delete request for menuStructId = " << m_menuStructId;
|
||||
RemoveMenuStructRequest request;
|
||||
request.id(m_menuStructId);
|
||||
|
||||
if (!m_ftc->removeMenuStructRequest(request, this))
|
||||
{
|
||||
ERROR_LOG() << "Error requesting delete data";
|
||||
ERROR_LOG(m_logger) << "Error requesting delete data";
|
||||
failExit();
|
||||
}
|
||||
}
|
||||
@@ -167,15 +167,15 @@ void AvmFtTests::createMenuStructReply(const Core::FunctionReplyObject &replyObj
|
||||
{
|
||||
if (replyObject.error())
|
||||
{
|
||||
ERROR_LOG() << "Got onCreateMenuStructReply error: " << replyObject();
|
||||
ERROR_LOG(m_logger) << "Got onCreateMenuStructReply error: " << replyObject();
|
||||
failExit();
|
||||
return;
|
||||
}
|
||||
INFO_LOG() << "Got createReply with id " << replyObject.id()
|
||||
INFO_LOG(m_logger) << "Got createReply with id " << replyObject.id()
|
||||
<< " and errorString " << replyObject.translated();
|
||||
m_menuStructId = replyObject.id();
|
||||
|
||||
DEBUG_LOG() << "m_testId = " << m_testId;
|
||||
DEBUG_LOG(m_logger) << "m_testId = " << m_testId;
|
||||
|
||||
if(m_testId == 0)
|
||||
QTimer::singleShot(0, this, &AvmFtTests::tryModify);
|
||||
@@ -188,11 +188,11 @@ void AvmFtTests::modifyMenuStructReply(const Core::FunctionReplyObject &replyObj
|
||||
{
|
||||
if (replyObject.error())
|
||||
{
|
||||
ERROR_LOG() << "Got onModifyMenuStructReply error: " << replyObject();
|
||||
ERROR_LOG(m_logger) << "Got onModifyMenuStructReply error: " << replyObject();
|
||||
failExit();
|
||||
return;
|
||||
}
|
||||
INFO_LOG() << "Got modifyRequest with id " << replyObject.id()
|
||||
INFO_LOG(m_logger) << "Got modifyRequest with id " << replyObject.id()
|
||||
<< " and errorString " << replyObject.translated();
|
||||
if(m_testId == 0)
|
||||
QTimer::singleShot(0, this, &AvmFtTests::tryDelete);
|
||||
@@ -205,11 +205,11 @@ void AvmFtTests::onRemoveMenuStructReply(const Core::FunctionReplyObject &replyO
|
||||
{
|
||||
if (replyObject.error())
|
||||
{
|
||||
ERROR_LOG() << "Got onRemoveMenuStructReply error: " << replyObject();
|
||||
ERROR_LOG(m_logger) << "Got onRemoveMenuStructReply error: " << replyObject();
|
||||
failExit();
|
||||
return;
|
||||
}
|
||||
INFO_LOG() << "Got removeReply with id " << replyObject.id()
|
||||
INFO_LOG(m_logger) << "Got removeReply with id " << replyObject.id()
|
||||
<< " and errorString " << replyObject.translated();
|
||||
QTimer::singleShot(0, qApp, &QCoreApplication::quit);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user