Commit 062eee29 authored by Eric Willigers's avatar Eric Willigers Committed by Commit Bot

WebAppBrowserTest only starts embedded_test_server() if used

Many of the browser tests in web_app_browsertest.cc
were calling embedded_test_server()->Start()
but never using that test server.

Change-Id: Ia19fcccd4fc1815fa985c8c468538aadb15b67ad
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2063563
Auto-Submit: Eric Willigers <ericwilligers@chromium.org>
Commit-Queue: Alexey Baskakov <loyso@chromium.org>
Reviewed-by: default avatarAlexey Baskakov <loyso@chromium.org>
Cr-Commit-Position: refs/heads/master@{#743857}
parent f36343f3
...@@ -217,7 +217,6 @@ IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, HasMinimalUiButtons) { ...@@ -217,7 +217,6 @@ IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, HasMinimalUiButtons) {
// Tests that desktop PWAs open links in the browser. // Tests that desktop PWAs open links in the browser.
IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, DesktopPWAsOpenLinksInApp) { IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, DesktopPWAsOpenLinksInApp) {
ASSERT_TRUE(https_server()->Start()); ASSERT_TRUE(https_server()->Start());
ASSERT_TRUE(embedded_test_server()->Start());
const GURL app_url = GetSecureAppURL(); const GURL app_url = GetSecureAppURL();
const AppId app_id = InstallPWA(app_url); const AppId app_id = InstallPWA(app_url);
...@@ -369,7 +368,6 @@ IN_PROC_BROWSER_TEST_P(WebAppTabRestoreBrowserTest, RestoreAppWindow) { ...@@ -369,7 +368,6 @@ IN_PROC_BROWSER_TEST_P(WebAppTabRestoreBrowserTest, RestoreAppWindow) {
IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, IN_PROC_BROWSER_TEST_P(WebAppBrowserTest,
LocationBarIsVisibleOffScopeOnSameOrigin) { LocationBarIsVisibleOffScopeOnSameOrigin) {
ASSERT_TRUE(https_server()->Start()); ASSERT_TRUE(https_server()->Start());
ASSERT_TRUE(embedded_test_server()->Start());
const GURL app_url = GetSecureAppURL(); const GURL app_url = GetSecureAppURL();
const AppId app_id = InstallPWA(app_url); const AppId app_id = InstallPWA(app_url);
...@@ -421,7 +419,6 @@ IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, CopyURL) { ...@@ -421,7 +419,6 @@ IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, CopyURL) {
// incognito. // incognito.
IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, PopOutDisabledInIncognito) { IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, PopOutDisabledInIncognito) {
ASSERT_TRUE(https_server()->Start()); ASSERT_TRUE(https_server()->Start());
ASSERT_TRUE(embedded_test_server()->Start());
const GURL app_url = GetSecureAppURL(); const GURL app_url = GetSecureAppURL();
const AppId app_id = InstallPWA(app_url); const AppId app_id = InstallPWA(app_url);
...@@ -440,7 +437,6 @@ IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, PopOutDisabledInIncognito) { ...@@ -440,7 +437,6 @@ IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, PopOutDisabledInIncognito) {
// Tests that PWA menus have an uninstall option. // Tests that PWA menus have an uninstall option.
IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, UninstallMenuOption) { IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, UninstallMenuOption) {
ASSERT_TRUE(https_server()->Start()); ASSERT_TRUE(https_server()->Start());
ASSERT_TRUE(embedded_test_server()->Start());
const GURL app_url = GetSecureAppURL(); const GURL app_url = GetSecureAppURL();
const AppId app_id = InstallPWA(app_url); const AppId app_id = InstallPWA(app_url);
...@@ -583,7 +579,6 @@ IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, CannotInstallOverPolicyPwa) { ...@@ -583,7 +579,6 @@ IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, CannotInstallOverPolicyPwa) {
// pages in an app's scope. // pages in an app's scope.
IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, ReparentWebAppForSecureActiveTab) { IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, ReparentWebAppForSecureActiveTab) {
ASSERT_TRUE(https_server()->Start()); ASSERT_TRUE(https_server()->Start());
ASSERT_TRUE(embedded_test_server()->Start());
const GURL app_url = GetSecureAppURL(); const GURL app_url = GetSecureAppURL();
const AppId app_id = InstallPWA(app_url); const AppId app_id = InstallPWA(app_url);
...@@ -603,7 +598,6 @@ IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, ReparentWebAppForSecureActiveTab) { ...@@ -603,7 +598,6 @@ IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, ReparentWebAppForSecureActiveTab) {
// Tests that reparenting the last browser tab doesn't close the browser window. // Tests that reparenting the last browser tab doesn't close the browser window.
IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, ReparentLastBrowserTab) { IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, ReparentLastBrowserTab) {
ASSERT_TRUE(https_server()->Start()); ASSERT_TRUE(https_server()->Start());
ASSERT_TRUE(embedded_test_server()->Start());
const GURL app_url = GetSecureAppURL(); const GURL app_url = GetSecureAppURL();
const AppId app_id = InstallPWA(app_url); const AppId app_id = InstallPWA(app_url);
...@@ -638,7 +632,6 @@ IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, InstallToShelfContainsAppName) { ...@@ -638,7 +632,6 @@ IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, InstallToShelfContainsAppName) {
// Check that no assertions are hit when showing a permission request bubble. // Check that no assertions are hit when showing a permission request bubble.
IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, PermissionBubble) { IN_PROC_BROWSER_TEST_P(WebAppBrowserTest, PermissionBubble) {
ASSERT_TRUE(https_server()->Start()); ASSERT_TRUE(https_server()->Start());
ASSERT_TRUE(embedded_test_server()->Start());
const GURL app_url = GetSecureAppURL(); const GURL app_url = GetSecureAppURL();
const AppId app_id = InstallPWA(app_url); const AppId app_id = InstallPWA(app_url);
......
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