#include <unit_tests/common/smoke_utils.h>
+#include <string>
+#include <vector>
+#include <utility>
+
#include "wgt/wgt_installer.h"
#include "hybrid/hybrid_installer.h"
const bf::path kSmokePackagesDirectory =
"/usr/share/wgt-backend-ut/test_samples/smoke/";
+bool ValidatePackage(const std::string& pkgid,
+ const std::vector<std::string>& appids,
+ const TestParameters& params) {
+ Apps apps;
+ for (const auto& appid : appids) {
+ apps.push_back(std::make_pair(appid, appid));
+ }
+ return ValidatePackage(pkgid, apps, params);
+}
+
+bool ValidateExternalPackage(const std::string& pkgid,
+ const std::vector<std::string>& appids,
+ const TestParameters& params) {
+ Apps apps;
+ for (const auto& appid : appids) {
+ apps.push_back(std::make_pair(appid, appid));
+ }
+ return ValidateExternalPackage(pkgid, apps, params);
+}
+
+bool ValidateExtendedPackage(const std::string& pkgid,
+ const std::vector<std::string>& appids,
+ const TestParameters& params) {
+ Apps apps;
+ for (const auto& appid : appids) {
+ apps.push_back(std::make_pair(appid, appid));
+ }
+ return ValidateExtendedPackage(pkgid, apps, params);
+}
+
WgtBackendInterface::AppQueryInterfacePtr
WgtBackendInterface::CreateQueryInterface() const {
return AppQueryInterfacePtr(new wgt::WgtAppQueryInterface());
#include <unit_tests/common/smoke_utils.h>
#include <memory>
+#include <string>
+#include <vector>
#include "wgt/wgt_app_query_interface.h"
namespace smoke_test {
+bool ValidatePackage(const std::string& pkgid,
+ const std::vector<std::string>& appids,
+ const TestParameters& params);
+
+bool ValidateExternalPackage(const std::string& pkgid,
+ const std::vector<std::string>& appids,
+ const TestParameters& params);
+
+bool ValidateExtendedPackage(const std::string& pkgid,
+ const std::vector<std::string>& appids,
+ const TestParameters& params);
+
extern const bf::path kSmokePackagesDirectory;
class WgtBackendInterface: public BackendInterface {