#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/web_applications/web_app_browsertest_base.h"
#include "chrome/browser/web_applications/web_app_command_scheduler.h"
#include "chrome/browser/web_applications/web_app_provider.h"
#include "chrome/common/chrome_features.h"
#include "chrome/test/base/chrome_test_utils.h"
#include "content/public/browser/web_contents.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/test_navigation_observer.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace web_app {
class NavigateAndTriggerInstallDialogCommandTest
: public WebAppBrowserTestBase,
public testing::WithParamInterface<bool> { … };
IN_PROC_BROWSER_TEST_P(NavigateAndTriggerInstallDialogCommandTest,
OpensTheUrlInANewBrowserTab) { … }
IN_PROC_BROWSER_TEST_P(NavigateAndTriggerInstallDialogCommandTest,
TerminatesIfTabIsClosed) { … }
IN_PROC_BROWSER_TEST_P(NavigateAndTriggerInstallDialogCommandTest,
DoesNotTriggerDialogIfNotWebApp) { … }
IN_PROC_BROWSER_TEST_P(NavigateAndTriggerInstallDialogCommandTest,
DoesNotTriggerDialogIfAlreadyInstalled) { … }
IN_PROC_BROWSER_TEST_P(NavigateAndTriggerInstallDialogCommandTest,
CanTriggerWebAppDialog) { … }
INSTANTIATE_TEST_SUITE_P(…);
}