Commit 39a45b5e authored by David Bertoni's avatar David Bertoni Committed by Commit Bot

[Extensions] Enable more Management tests for Service Workers.

Some tests were not being run as a Service Worker-based
extension for the related parameterized case.

Bug: 1093066
Change-Id: Ic7771a8b272cba593da1680dc1218d770d600283
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2458884Reviewed-by: default avatarIstiaque Ahmed <lazyboy@chromium.org>
Commit-Queue: David Bertoni <dbertoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#817326}
parent b8126b30
......@@ -133,8 +133,8 @@ IN_PROC_BROWSER_TEST_P(ExtensionManagementApiTestWithBackgroundType,
ExtensionTestMessageListener app_launched_listener("app_launched", false);
ASSERT_TRUE(
LoadExtension(test_data_dir_.AppendASCII("management/packaged_app")));
ASSERT_TRUE(
LoadExtension(test_data_dir_.AppendASCII("management/launch_app")));
ASSERT_TRUE(LoadExtensionWithParamFlags(
test_data_dir_.AppendASCII("management/launch_app")));
ASSERT_TRUE(app_launched_listener.WaitUntilSatisfied());
// Should still see 0 apps launched from the API in the histogram.
......@@ -154,8 +154,8 @@ IN_PROC_BROWSER_TEST_P(ExtensionManagementApiTestWithBackgroundType,
ExtensionTestMessageListener app_launched_listener("app_launched", false);
ASSERT_TRUE(
LoadExtension(test_data_dir_.AppendASCII("management/packaged_app")));
ASSERT_TRUE(
LoadExtension(test_data_dir_.AppendASCII("management/launch_app")));
ASSERT_TRUE(LoadExtensionWithParamFlags(
test_data_dir_.AppendASCII("management/launch_app")));
ASSERT_TRUE(app_launched_listener.WaitUntilSatisfied());
// Should see 1 app launched from the highlights app in the histogram.
......@@ -171,7 +171,7 @@ IN_PROC_BROWSER_TEST_P(ExtensionManagementApiTestWithBackgroundType,
ExtensionTestMessageListener listener1("success", false);
ASSERT_TRUE(LoadExtension(
test_data_dir_.AppendASCII("management/packaged_app")));
ASSERT_TRUE(LoadExtension(
ASSERT_TRUE(LoadExtensionWithParamFlags(
test_data_dir_.AppendASCII("management/launch_app_from_background")));
ASSERT_TRUE(listener1.WaitUntilSatisfied());
}
......
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