using namespace SecurityManagerTest;
-ScopedAppLauncher::ScopedAppLauncher(const AppInstallHelper& app) :
+ScopedAppLauncher::ScopedAppLauncher(const AppInstallHelper& app,
+ const std::function<void(void)>& runInAppContext) :
m_uid(app.getUID()),
m_appId(app.getAppId())
{
"launcher failed");
Api::prepareAppCandidate();
Api::prepareApp(app.getAppId().c_str());
+ runInAppContext();
} catch (...) {
m_syncPipe.post();
throw;