Commit 06097ef3 authored by Kyle Milka's avatar Kyle Milka Committed by Commit Bot

Add SharingHub to fieldtrial testing config

Bug: 1009124
Change-Id: I0d15bfdff9fe26177297ba3fe799567ec595d2ed
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2327646Reviewed-by: default avatarEric Willigers <ericwilligers@chromium.org>
Reviewed-by: default avatarSteven Holte <holte@chromium.org>
Commit-Queue: Kyle Milka <kmilka@chromium.org>
Cr-Commit-Position: refs/heads/master@{#801495}
parent 1523ac2b
...@@ -25,12 +25,14 @@ import org.chromium.base.test.util.CommandLineFlags; ...@@ -25,12 +25,14 @@ import org.chromium.base.test.util.CommandLineFlags;
import org.chromium.base.test.util.Feature; import org.chromium.base.test.util.Feature;
import org.chromium.base.test.util.MinAndroidSdkLevel; import org.chromium.base.test.util.MinAndroidSdkLevel;
import org.chromium.chrome.browser.app.ChromeActivity; import org.chromium.chrome.browser.app.ChromeActivity;
import org.chromium.chrome.browser.flags.ChromeFeatureList;
import org.chromium.chrome.browser.flags.ChromeSwitches; import org.chromium.chrome.browser.flags.ChromeSwitches;
import org.chromium.chrome.browser.share.ShareHelper; import org.chromium.chrome.browser.share.ShareHelper;
import org.chromium.chrome.browser.tab.EmptyTabObserver; import org.chromium.chrome.browser.tab.EmptyTabObserver;
import org.chromium.chrome.browser.tab.Tab; import org.chromium.chrome.browser.tab.Tab;
import org.chromium.chrome.test.ChromeActivityTestRule; import org.chromium.chrome.test.ChromeActivityTestRule;
import org.chromium.chrome.test.ChromeJUnit4ClassRunner; import org.chromium.chrome.test.ChromeJUnit4ClassRunner;
import org.chromium.chrome.test.util.browser.Features;
import org.chromium.content_public.browser.test.NativeLibraryTestUtils; import org.chromium.content_public.browser.test.NativeLibraryTestUtils;
import org.chromium.content_public.browser.test.util.TouchCommon; import org.chromium.content_public.browser.test.util.TouchCommon;
import org.chromium.net.test.EmbeddedTestServer; import org.chromium.net.test.EmbeddedTestServer;
...@@ -133,6 +135,7 @@ public class WebShareTest { ...@@ -133,6 +135,7 @@ public class WebShareTest {
@Test @Test
@MediumTest @MediumTest
@Feature({"WebShare"}) @Feature({"WebShare"})
@Features.DisableFeatures(ChromeFeatureList.CHROME_SHARING_HUB)
@MinAndroidSdkLevel(Build.VERSION_CODES.LOLLIPOP_MR1) @MinAndroidSdkLevel(Build.VERSION_CODES.LOLLIPOP_MR1)
public void testWebShareCancel() throws Exception { public void testWebShareCancel() throws Exception {
// Set up ShareHelper to ignore the intent (without showing a picker). This simulates the // Set up ShareHelper to ignore the intent (without showing a picker). This simulates the
...@@ -153,6 +156,7 @@ public class WebShareTest { ...@@ -153,6 +156,7 @@ public class WebShareTest {
@Test @Test
@MediumTest @MediumTest
@Feature({"WebShare"}) @Feature({"WebShare"})
@Features.DisableFeatures(ChromeFeatureList.CHROME_SHARING_HUB)
@MinAndroidSdkLevel(Build.VERSION_CODES.LOLLIPOP_MR1) @MinAndroidSdkLevel(Build.VERSION_CODES.LOLLIPOP_MR1)
public void testWebShareSuccess() throws Exception { public void testWebShareSuccess() throws Exception {
// Set up ShareHelper to immediately succeed (without showing a picker). // Set up ShareHelper to immediately succeed (without showing a picker).
...@@ -178,6 +182,7 @@ public class WebShareTest { ...@@ -178,6 +182,7 @@ public class WebShareTest {
@Test @Test
@MediumTest @MediumTest
@Feature({"WebShare"}) @Feature({"WebShare"})
@Features.DisableFeatures(ChromeFeatureList.CHROME_SHARING_HUB)
@MinAndroidSdkLevel(Build.VERSION_CODES.LOLLIPOP_MR1) @MinAndroidSdkLevel(Build.VERSION_CODES.LOLLIPOP_MR1)
public void testWebShareOgg() throws Exception { public void testWebShareOgg() throws Exception {
// Set up ShareHelper to immediately succeed (without showing a picker). // Set up ShareHelper to immediately succeed (without showing a picker).
...@@ -203,6 +208,7 @@ public class WebShareTest { ...@@ -203,6 +208,7 @@ public class WebShareTest {
@Test @Test
@MediumTest @MediumTest
@Feature({"WebShare"}) @Feature({"WebShare"})
@Features.DisableFeatures(ChromeFeatureList.CHROME_SHARING_HUB)
@MinAndroidSdkLevel(Build.VERSION_CODES.LOLLIPOP_MR1) @MinAndroidSdkLevel(Build.VERSION_CODES.LOLLIPOP_MR1)
public void testWebShareBmp() throws Exception { public void testWebShareBmp() throws Exception {
// Set up ShareHelper to immediately succeed (without showing a picker). // Set up ShareHelper to immediately succeed (without showing a picker).
...@@ -292,6 +298,7 @@ public class WebShareTest { ...@@ -292,6 +298,7 @@ public class WebShareTest {
@Test @Test
@MediumTest @MediumTest
@Feature({"WebShare"}) @Feature({"WebShare"})
@Features.DisableFeatures(ChromeFeatureList.CHROME_SHARING_HUB)
public void testWebShareCancelPreLMR1() throws Exception { public void testWebShareCancelPreLMR1() throws Exception {
ShareHelper.setFakeIntentReceiverForTesting(new FakeIntentReceiverPreLMR1(false)); ShareHelper.setFakeIntentReceiverForTesting(new FakeIntentReceiverPreLMR1(false));
...@@ -313,6 +320,7 @@ public class WebShareTest { ...@@ -313,6 +320,7 @@ public class WebShareTest {
@Test @Test
@MediumTest @MediumTest
@Feature({"WebShare"}) @Feature({"WebShare"})
@Features.DisableFeatures(ChromeFeatureList.CHROME_SHARING_HUB)
public void testWebShareSuccessPreLMR1() throws Exception { public void testWebShareSuccessPreLMR1() throws Exception {
ShareHelper.setFakeIntentReceiverForTesting(new FakeIntentReceiverPreLMR1(true)); ShareHelper.setFakeIntentReceiverForTesting(new FakeIntentReceiverPreLMR1(true));
...@@ -334,6 +342,7 @@ public class WebShareTest { ...@@ -334,6 +342,7 @@ public class WebShareTest {
@Test @Test
@MediumTest @MediumTest
@Feature({"WebShare"}) @Feature({"WebShare"})
@Features.DisableFeatures(ChromeFeatureList.CHROME_SHARING_HUB)
public void testWebShareOggPreLMR1() throws Exception { public void testWebShareOggPreLMR1() throws Exception {
ShareHelper.setFakeIntentReceiverForTesting(new FakeIntentReceiverPreLMR1(true)); ShareHelper.setFakeIntentReceiverForTesting(new FakeIntentReceiverPreLMR1(true));
...@@ -356,6 +365,7 @@ public class WebShareTest { ...@@ -356,6 +365,7 @@ public class WebShareTest {
@Test @Test
@MediumTest @MediumTest
@Feature({"WebShare"}) @Feature({"WebShare"})
@Features.DisableFeatures(ChromeFeatureList.CHROME_SHARING_HUB)
public void testWebShareCsvPreLMR1() throws Exception { public void testWebShareCsvPreLMR1() throws Exception {
ShareHelper.setFakeIntentReceiverForTesting(new FakeIntentReceiverPreLMR1(true)); ShareHelper.setFakeIntentReceiverForTesting(new FakeIntentReceiverPreLMR1(true));
......
...@@ -1220,6 +1220,22 @@ ...@@ -1220,6 +1220,22 @@
] ]
} }
], ],
"ChromeSharingHubClank": [
{
"platforms": [
"android"
],
"experiments": [
{
"name": "Enabled",
"enable_features": [
"ChromeShareQRCode",
"ChromeSharingHub"
]
}
]
}
],
"ChromeSmartSelection": [ "ChromeSmartSelection": [
{ {
"platforms": [ "platforms": [
......
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