summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
8787492)
[Issue#] N/A
[Problem] N/A
[Cause] N/A
[Solution] build wrt-installer 'WITH_TESTS ON'
Change-Id: I2bcaa759a66b02ba79b4031ab94645bfd908a270
#include <string>
#include <algorithm>
#include <string>
#include <algorithm>
+#include <dpl/log/log.h>
#include <dpl/test/test_runner.h>
#include <dpl/wrt-dao-ro/widget_dao_read_only.h>
#include <InstallerWrapper.h>
#include <dpl/test/test_runner.h>
#include <dpl/wrt-dao-ro/widget_dao_read_only.h>
#include <InstallerWrapper.h>
tizenId) == InstallerWrapper::Success);
WrtDB::WidgetDAOReadOnly dao(DPL::FromASCIIString(tizenId));
tizenId) == InstallerWrapper::Success);
WrtDB::WidgetDAOReadOnly dao(DPL::FromASCIIString(tizenId));
- WidgetApplicationServiceList appsvcList;
- dao.getAppServiceList(appsvcList);
+ WrtDB::WidgetAppControlList appsvcList;
+ dao.getAppControlList(appsvcList);
+ LogDebug("Actual size" << appsvcList.size());
RUNNER_ASSERT_MSG(appsvcList.size() == 4, "Incorrect list size");
RUNNER_ASSERT_MSG(appsvcList.size() == 4, "Incorrect list size");
- WidgetApplicationService s;
+ WrtDB::WidgetAppControl s;
s.src = DPL::FromUTF8String("edit1.html");
s.operation = DPL::FromUTF8String("http://tizen.org/appsvc/operation/edit");
s.mime = DPL::FromUTF8String("image/jpg"); /* mime type */
s.src = DPL::FromUTF8String("edit1.html");
s.operation = DPL::FromUTF8String("http://tizen.org/appsvc/operation/edit");
s.mime = DPL::FromUTF8String("image/jpg"); /* mime type */
- s.disposition = WidgetApplicationService::Disposition::WINDOW;
+ s.disposition = WrtDB::WidgetAppControl::Disposition::WINDOW;
RUNNER_ASSERT_MSG(
std::find(appsvcList.begin(), appsvcList.end(), s) != appsvcList.end(),
"Unable to find service #");
RUNNER_ASSERT_MSG(
std::find(appsvcList.begin(), appsvcList.end(), s) != appsvcList.end(),
"Unable to find service #");
s.src = DPL::FromUTF8String("edit2.html");
s.operation = DPL::FromUTF8String("http://tizen.org/appsvc/operation/view");
s.mime = DPL::FromUTF8String("audio/ogg"); /* mime type */
s.src = DPL::FromUTF8String("edit2.html");
s.operation = DPL::FromUTF8String("http://tizen.org/appsvc/operation/view");
s.mime = DPL::FromUTF8String("audio/ogg"); /* mime type */
- s.disposition = WidgetApplicationService::Disposition::WINDOW;
+ s.disposition = WrtDB::WidgetAppControl::Disposition::WINDOW;
RUNNER_ASSERT_MSG(
std::find(appsvcList.begin(), appsvcList.end(), s) != appsvcList.end(),
"Unable to find service ##");
RUNNER_ASSERT_MSG(
std::find(appsvcList.begin(), appsvcList.end(), s) != appsvcList.end(),
"Unable to find service ##");
s.src = DPL::FromUTF8String("edit3.html");
s.operation = DPL::FromUTF8String("http://tizen.org/appsvc/operation/call");
s.mime = DPL::FromUTF8String("image/png"); /* mime type */
s.src = DPL::FromUTF8String("edit3.html");
s.operation = DPL::FromUTF8String("http://tizen.org/appsvc/operation/call");
s.mime = DPL::FromUTF8String("image/png"); /* mime type */
- s.disposition = WidgetApplicationService::Disposition::INLINE;
+ s.disposition = WrtDB::WidgetAppControl::Disposition::INLINE;
RUNNER_ASSERT_MSG(
std::find(appsvcList.begin(), appsvcList.end(), s) != appsvcList.end(),
"Unable to find service ###");
RUNNER_ASSERT_MSG(
std::find(appsvcList.begin(), appsvcList.end(), s) != appsvcList.end(),
"Unable to find service ###");
s.src = DPL::FromUTF8String("edit4.html");
s.operation = DPL::FromUTF8String("http://tizen.org/appsvc/operation/send");
s.mime = DPL::FromUTF8String("text/css"); /* mime type */
s.src = DPL::FromUTF8String("edit4.html");
s.operation = DPL::FromUTF8String("http://tizen.org/appsvc/operation/send");
s.mime = DPL::FromUTF8String("text/css"); /* mime type */
- s.disposition = WidgetApplicationService::Disposition::WINDOW;
+ s.disposition = WrtDB::WidgetAppControl::Disposition::WINDOW;
RUNNER_ASSERT_MSG(
std::find(appsvcList.begin(), appsvcList.end(), s) != appsvcList.end(),
"Unable to find service ####");
RUNNER_ASSERT_MSG(
std::find(appsvcList.begin(), appsvcList.end(), s) != appsvcList.end(),
"Unable to find service ####");