Group privilege check refactoring
[platform/core/test/security-tests.git] / src / security-manager-tests / common / scoped_app_launcher.h
index 5a43149..133e7c8 100644 (file)
  */
 #pragma once
 
+#include <functional>
+
 #include <app_install_helper.h>
 #include <synchronization_pipe.h>
 
 class ScopedAppLauncher final {
 public:
-    ScopedAppLauncher(const AppInstallHelper& app);
+    explicit ScopedAppLauncher(const AppInstallHelper& app,
+                               const std::function<void(void)>& runInAppContext = []{});
     ~ScopedAppLauncher();
 
     ScopedAppLauncher(const ScopedAppLauncher&) = delete;