Commit d64bf40b authored by Mike Jackson's avatar Mike Jackson Committed by Commit Bot

dpwa: Remove parameterization for Manifest Update Browser Tests

Removes the parameterization for all tests in the
manifest_update_manager_browsertest.cc file, now that
kDesktopPWAsWithoutExtensions flag is always true.

Bug: 1065748
Change-Id: Iff13ff4b394a184fbd5b89b76b15475e017591e7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2453378Reviewed-by: default avatarAlan Cutter <alancutter@chromium.org>
Commit-Queue: Mike Jackson <mjackson@microsoft.com>
Cr-Commit-Position: refs/heads/master@{#814551}
parent 3823213a
...@@ -178,21 +178,11 @@ class UpdateCheckResultAwaiter { ...@@ -178,21 +178,11 @@ class UpdateCheckResultAwaiter {
} // namespace } // namespace
class ManifestUpdateManagerBrowserTest class ManifestUpdateManagerBrowserTest : public InProcessBrowserTest {
: public InProcessBrowserTest,
public ::testing::WithParamInterface<ProviderType> {
public: public:
ManifestUpdateManagerBrowserTest() { ManifestUpdateManagerBrowserTest() {
if (GetParam() == ProviderType::kWebApps) { scoped_feature_list_.InitAndEnableFeature(
scoped_feature_list_.InitWithFeatures( features::kDesktopPWAsLocalUpdating);
{features::kDesktopPWAsLocalUpdating,
features::kDesktopPWAsWithoutExtensions},
{});
} else if (GetParam() == ProviderType::kBookmarkApps) {
scoped_feature_list_.InitWithFeatures(
{features::kDesktopPWAsLocalUpdating},
{features::kDesktopPWAsWithoutExtensions});
}
} }
ManifestUpdateManagerBrowserTest(const ManifestUpdateManagerBrowserTest&) = ManifestUpdateManagerBrowserTest(const ManifestUpdateManagerBrowserTest&) =
delete; delete;
...@@ -337,10 +327,9 @@ class ManifestUpdateManagerBrowserTest ...@@ -337,10 +327,9 @@ class ManifestUpdateManagerBrowserTest
base::Optional<base::RunLoop> shortcut_run_loop_; base::Optional<base::RunLoop> shortcut_run_loop_;
base::Optional<SkColor> updated_shortcut_top_left_color_; base::Optional<SkColor> updated_shortcut_top_left_color_;
}; };
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckOutOfScopeNavigation) { CheckOutOfScopeNavigation) {
EXPECT_EQ(GetResultAfterPageLoad(GetAppURL(), nullptr), EXPECT_EQ(GetResultAfterPageLoad(GetAppURL(), nullptr),
ManifestUpdateResult::kNoAppInScope); ManifestUpdateResult::kNoAppInScope);
...@@ -353,7 +342,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -353,7 +342,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
histogram_tester_.ExpectTotalCount(kUpdateHistogramName, 0); histogram_tester_.ExpectTotalCount(kUpdateHistogramName, 0);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, CheckIsThrottled) { IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest, CheckIsThrottled) {
constexpr base::TimeDelta kDelayBetweenChecks = base::TimeDelta::FromDays(1); constexpr base::TimeDelta kDelayBetweenChecks = base::TimeDelta::FromDays(1);
base::Time time_override = base::Time::UnixEpoch(); base::Time time_override = base::Time::UnixEpoch();
SetTimeOverride(time_override); SetTimeOverride(time_override);
...@@ -388,7 +377,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, CheckIsThrottled) { ...@@ -388,7 +377,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, CheckIsThrottled) {
ManifestUpdateResult::kAppUpToDate, 3); ManifestUpdateResult::kAppUpToDate, 3);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckCancelledByWebContentsDestroyed) { CheckCancelledByWebContentsDestroyed) {
AppId app_id = InstallWebApp(); AppId app_id = InstallWebApp();
GetManifestUpdateManager(browser()).hang_update_checks_for_testing(); GetManifestUpdateManager(browser()).hang_update_checks_for_testing();
...@@ -403,7 +392,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -403,7 +392,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
kUpdateHistogramName, ManifestUpdateResult::kWebContentsDestroyed, 1); kUpdateHistogramName, ManifestUpdateResult::kWebContentsDestroyed, 1);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckCancelledByAppUninstalled) { CheckCancelledByAppUninstalled) {
AppId app_id = InstallWebApp(); AppId app_id = InstallWebApp();
GetManifestUpdateManager(browser()).hang_update_checks_for_testing(); GetManifestUpdateManager(browser()).hang_update_checks_for_testing();
...@@ -419,7 +408,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -419,7 +408,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
ManifestUpdateResult::kAppUninstalled, 1); ManifestUpdateResult::kAppUninstalled, 1);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckIgnoresWhitespaceDifferences) { CheckIgnoresWhitespaceDifferences) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -441,7 +430,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -441,7 +430,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
ManifestUpdateResult::kAppUpToDate, 1); ManifestUpdateResult::kAppUpToDate, 1);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckIgnoresNameChange) { CheckIgnoresNameChange) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -463,7 +452,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -463,7 +452,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
ManifestUpdateResult::kAppUpToDate, 1); ManifestUpdateResult::kAppUpToDate, 1);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckIgnoresShortNameChange) { CheckIgnoresShortNameChange) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -487,7 +476,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -487,7 +476,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
ManifestUpdateResult::kAppUpToDate, 1); ManifestUpdateResult::kAppUpToDate, 1);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckIgnoresStartUrlChange) { CheckIgnoresStartUrlChange) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -508,7 +497,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -508,7 +497,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
ManifestUpdateResult::kAppUpToDate, 1); ManifestUpdateResult::kAppUpToDate, 1);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckIgnoresNoManifestChange) { CheckIgnoresNoManifestChange) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -527,7 +516,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -527,7 +516,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
ManifestUpdateResult::kAppUpToDate, 1); ManifestUpdateResult::kAppUpToDate, 1);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckIgnoresInvalidManifest) { CheckIgnoresInvalidManifest) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -549,7 +538,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -549,7 +538,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
ManifestUpdateResult::kAppNotEligible, 1); ManifestUpdateResult::kAppNotEligible, 1);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckIgnoresNonLocalApps) { CheckIgnoresNonLocalApps) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -573,7 +562,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -573,7 +562,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
histogram_tester_.ExpectTotalCount(kUpdateHistogramName, 0); histogram_tester_.ExpectTotalCount(kUpdateHistogramName, 0);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckIgnoresPlaceholderApps) { CheckIgnoresPlaceholderApps) {
// Set up app URL to redirect to force placeholder app to install. // Set up app URL to redirect to force placeholder app to install.
const GURL app_url = GetAppURL(); const GURL app_url = GetAppURL();
...@@ -614,7 +603,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -614,7 +603,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
kUpdateHistogramName, ManifestUpdateResult::kAppIsPlaceholder, 1); kUpdateHistogramName, ManifestUpdateResult::kAppIsPlaceholder, 1);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckFindsThemeColorChange) { CheckFindsThemeColorChange) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -651,7 +640,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -651,7 +640,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
SkColorSetARGB(0xFF, 0x00, 0xFF, 0x00)); SkColorSetARGB(0xFF, 0x00, 0xFF, 0x00));
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, CheckKeepsSameName) { IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest, CheckKeepsSameName) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
"name": "$1", "name": "$1",
...@@ -680,7 +669,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, CheckKeepsSameName) { ...@@ -680,7 +669,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, CheckKeepsSameName) {
EXPECT_EQ(GetProvider().registrar().GetAppShortName(app_id), "App name 1"); EXPECT_EQ(GetProvider().registrar().GetAppShortName(app_id), "App name 1");
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckFindsIconUrlChange) { CheckFindsIconUrlChange) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -702,7 +691,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -702,7 +691,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
CheckShortcutInfoUpdated(app_id, kAnotherInstallableIconTopLeftColor); CheckShortcutInfoUpdated(app_id, kAnotherInstallableIconTopLeftColor);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckUpdatedPolicyAppsNotUninstallable) { CheckUpdatedPolicyAppsNotUninstallable) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -732,7 +721,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -732,7 +721,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
GetProvider().install_finalizer().CanUserUninstallFromSync(app_id)); GetProvider().install_finalizer().CanUserUninstallFromSync(app_id));
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckFindsScopeChange) { CheckFindsScopeChange) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -756,7 +745,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -756,7 +745,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
http_server_.GetURL("/")); http_server_.GetURL("/"));
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckFindsDisplayChange) { CheckFindsDisplayChange) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -780,7 +769,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -780,7 +769,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
DisplayMode::kStandalone); DisplayMode::kStandalone);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckFindsDisplayBrowserChange) { CheckFindsDisplayBrowserChange) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -827,7 +816,7 @@ class ManifestUpdateManagerBrowserTest_DisplayOverride ...@@ -827,7 +816,7 @@ class ManifestUpdateManagerBrowserTest_DisplayOverride
base::test::ScopedFeatureList scoped_feature_list_; base::test::ScopedFeatureList scoped_feature_list_;
}; };
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest_DisplayOverride,
CheckFindsDisplayOverrideChange) { CheckFindsDisplayOverrideChange) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -860,7 +849,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride, ...@@ -860,7 +849,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride,
EXPECT_EQ(DisplayMode::kMinimalUi, app_display_mode_override[1]); EXPECT_EQ(DisplayMode::kMinimalUi, app_display_mode_override[1]);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest_DisplayOverride,
CheckFindsNewDisplayOverride) { CheckFindsNewDisplayOverride) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -895,7 +884,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride, ...@@ -895,7 +884,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride,
EXPECT_EQ(DisplayMode::kStandalone, app_display_mode_override[1]); EXPECT_EQ(DisplayMode::kStandalone, app_display_mode_override[1]);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest_DisplayOverride,
CheckFindsDeletedDisplayOverride) { CheckFindsDeletedDisplayOverride) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -928,7 +917,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride, ...@@ -928,7 +917,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride,
ASSERT_EQ(0u, app_display_mode_override.size()); ASSERT_EQ(0u, app_display_mode_override.size());
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest_DisplayOverride,
CheckFindsInvalidDisplayOverride) { CheckFindsInvalidDisplayOverride) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -963,7 +952,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride, ...@@ -963,7 +952,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride,
ASSERT_EQ(0u, app_display_mode_override.size()); ASSERT_EQ(0u, app_display_mode_override.size());
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest_DisplayOverride,
CheckIgnoresDisplayOverrideInvalidChange) { CheckIgnoresDisplayOverrideInvalidChange) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -990,7 +979,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride, ...@@ -990,7 +979,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride,
ManifestUpdateResult::kAppUpToDate, 1); ManifestUpdateResult::kAppUpToDate, 1);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest_DisplayOverride,
CheckIgnoresDisplayOverrideChange) { CheckIgnoresDisplayOverrideChange) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -1017,7 +1006,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride, ...@@ -1017,7 +1006,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest_DisplayOverride,
ManifestUpdateResult::kAppUpToDate, 1); ManifestUpdateResult::kAppUpToDate, 1);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckFindsIconContentChange) { CheckFindsIconContentChange) {
constexpr char kManifest[] = R"( constexpr char kManifest[] = R"(
{ {
...@@ -1062,7 +1051,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, ...@@ -1062,7 +1051,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest,
SK_ColorBLUE); SK_ColorBLUE);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTest,
CheckIgnoresIconDownloadFail) { CheckIgnoresIconDownloadFail) {
constexpr char kManifest[] = R"( constexpr char kManifest[] = R"(
{ {
...@@ -1156,7 +1145,7 @@ class ManifestUpdateManagerSystemAppBrowserTest ...@@ -1156,7 +1145,7 @@ class ManifestUpdateManagerSystemAppBrowserTest
constexpr char constexpr char
ManifestUpdateManagerSystemAppBrowserTest::kSystemAppManifestText[]; ManifestUpdateManagerSystemAppBrowserTest::kSystemAppManifestText[];
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerSystemAppBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerSystemAppBrowserTest,
CheckUpdateSkipped) { CheckUpdateSkipped) {
system_app_->SetManifest(base::ReplaceStringPlaceholders( system_app_->SetManifest(base::ReplaceStringPlaceholders(
kSystemAppManifestText, {"#f00"}, nullptr)); kSystemAppManifestText, {"#f00"}, nullptr));
...@@ -1173,7 +1162,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerSystemAppBrowserTest, ...@@ -1173,7 +1162,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerSystemAppBrowserTest,
using ManifestUpdateManagerWebAppsBrowserTest = using ManifestUpdateManagerWebAppsBrowserTest =
ManifestUpdateManagerBrowserTest; ManifestUpdateManagerBrowserTest;
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerWebAppsBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerWebAppsBrowserTest,
CheckFindsThemeColorChangeForShadowBookmarkApp) { CheckFindsThemeColorChangeForShadowBookmarkApp) {
auto* extensions_registry = auto* extensions_registry =
extensions::ExtensionRegistry::Get(browser()->profile()); extensions::ExtensionRegistry::Get(browser()->profile());
...@@ -1218,7 +1207,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerWebAppsBrowserTest, ...@@ -1218,7 +1207,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerWebAppsBrowserTest,
SK_ColorRED); SK_ColorRED);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerWebAppsBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerWebAppsBrowserTest,
CheckFindsAddedShareTarget) { CheckFindsAddedShareTarget) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -1262,7 +1251,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerWebAppsBrowserTest, ...@@ -1262,7 +1251,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerWebAppsBrowserTest,
EXPECT_EQ(web_app->share_target()->method, apps::ShareTarget::Method::kGet); EXPECT_EQ(web_app->share_target()->method, apps::ShareTarget::Method::kGet);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerWebAppsBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerWebAppsBrowserTest,
CheckFindsShareTargetChange) { CheckFindsShareTargetChange) {
constexpr char kShareTargetManifestTemplate[] = R"( constexpr char kShareTargetManifestTemplate[] = R"(
{ {
...@@ -1296,7 +1285,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerWebAppsBrowserTest, ...@@ -1296,7 +1285,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerWebAppsBrowserTest,
EXPECT_EQ(web_app->share_target()->method, apps::ShareTarget::Method::kPost); EXPECT_EQ(web_app->share_target()->method, apps::ShareTarget::Method::kPost);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerWebAppsBrowserTest, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerWebAppsBrowserTest,
CheckFindsDeletedShareTarget) { CheckFindsDeletedShareTarget) {
constexpr char kShareTargetManifestTemplate[] = R"( constexpr char kShareTargetManifestTemplate[] = R"(
{ {
...@@ -1351,7 +1340,7 @@ class ManifestUpdateManagerBrowserTestWithShortcutsMenu ...@@ -1351,7 +1340,7 @@ class ManifestUpdateManagerBrowserTestWithShortcutsMenu
base::test::ScopedFeatureList scoped_feature_list_; base::test::ScopedFeatureList scoped_feature_list_;
}; };
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
CheckFindsShortcutsMenuUpdated) { CheckFindsShortcutsMenuUpdated) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -1376,7 +1365,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, ...@@ -1376,7 +1365,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
2u); 2u);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
CheckFindsItemNameUpdated) { CheckFindsItemNameUpdated) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -1416,7 +1405,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, ...@@ -1416,7 +1405,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
base::UTF8ToUTF16(kAnotherShortcutsItemName)); base::UTF8ToUTF16(kAnotherShortcutsItemName));
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
CheckIgnoresShortNameAndDescriptionChange) { CheckIgnoresShortNameAndDescriptionChange) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -1454,7 +1443,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, ...@@ -1454,7 +1443,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
ManifestUpdateResult::kAppUpToDate, 1); ManifestUpdateResult::kAppUpToDate, 1);
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
CheckFindsItemUrlUpdated) { CheckFindsItemUrlUpdated) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -1494,7 +1483,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, ...@@ -1494,7 +1483,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
http_server_.GetURL(kAnotherShortcutsItemUrl)); http_server_.GetURL(kAnotherShortcutsItemUrl));
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
CheckFindsShortcutIconContentChange) { CheckFindsShortcutIconContentChange) {
constexpr char kManifest[] = R"( constexpr char kManifest[] = R"(
{ {
...@@ -1555,7 +1544,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, ...@@ -1555,7 +1544,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
run_loop.Run(); run_loop.Run();
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
CheckFindsShortcutIconSrcUpdated) { CheckFindsShortcutIconSrcUpdated) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -1598,7 +1587,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, ...@@ -1598,7 +1587,7 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
http_server_.GetURL(kAnotherIconSrc)); http_server_.GetURL(kAnotherIconSrc));
} }
IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, IN_PROC_BROWSER_TEST_F(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
CheckFindsShortcutIconSizesUpdated) { CheckFindsShortcutIconSizesUpdated) {
constexpr char kManifestTemplate[] = R"( constexpr char kManifestTemplate[] = R"(
{ {
...@@ -1642,33 +1631,4 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu, ...@@ -1642,33 +1631,4 @@ IN_PROC_BROWSER_TEST_P(ManifestUpdateManagerBrowserTestWithShortcutsMenu,
kAnotherIconSize); kAnotherIconSize);
} }
INSTANTIATE_TEST_SUITE_P(All,
ManifestUpdateManagerBrowserTest,
::testing::Values(ProviderType::kBookmarkApps,
ProviderType::kWebApps),
ProviderTypeParamToString);
INSTANTIATE_TEST_SUITE_P(All,
ManifestUpdateManagerSystemAppBrowserTest,
::testing::Values(ProviderType::kBookmarkApps,
ProviderType::kWebApps),
ProviderTypeParamToString);
INSTANTIATE_TEST_SUITE_P(All,
ManifestUpdateManagerWebAppsBrowserTest,
::testing::Values(ProviderType::kWebApps),
ProviderTypeParamToString);
INSTANTIATE_TEST_SUITE_P(All,
ManifestUpdateManagerBrowserTestWithShortcutsMenu,
::testing::Values(ProviderType::kBookmarkApps,
ProviderType::kWebApps),
ProviderTypeParamToString);
// DisplayOverride is supported only for the new web apps mode
INSTANTIATE_TEST_SUITE_P(All,
ManifestUpdateManagerBrowserTest_DisplayOverride,
::testing::Values(ProviderType::kWebApps),
ProviderTypeParamToString);
} // namespace web_app } // namespace web_app
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment