Skip to content

Commit

Permalink
[Signin][Android] Enable MobileIdentityConsistency in testing config
Browse files Browse the repository at this point in the history
Adds MobileIdentityConsistency to
testing/variations/fieldtrial_testing_config.json and adds explicit
@DisableFeatures to the affected tests.

Bug: 1128916, 1142467
Change-Id: I25afb6de05d2ce232f1006a8497884f9db18d52e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2489895
Commit-Queue: Boris Sazonov <bsazonov@chromium.org>
Auto-Submit: Boris Sazonov <bsazonov@chromium.org>
Reviewed-by: Robert Kaplow <rkaplow@chromium.org>
Cr-Commit-Position: refs/heads/master@{#820973}
  • Loading branch information
Boris Sazonov authored and Commit Bot committed Oct 26, 2020
1 parent c9693c9 commit 12814ab
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ public void tearDown() {
@Test
@MediumTest
@Feature({"NewTabPage", "FeedNewTabPage", "RenderTest"})
@Features.DisableFeatures(ChromeFeatureList.MOBILE_IDENTITY_CONSISTENCY)
public void testRender_FocusFakeBox() throws Exception {
ScrimCoordinator scrimCoordinator = mActivityTestRule.getActivity()
.getRootUiCoordinatorForTesting()
Expand All @@ -164,6 +165,7 @@ public void testRender_FocusFakeBox() throws Exception {
@Test
@SmallTest
@Feature({"NewTabPage", "FeedNewTabPage", "RenderTest"})
@Features.DisableFeatures(ChromeFeatureList.MOBILE_IDENTITY_CONSISTENCY)
public void testRender_SignInPromo() throws Exception {
// Scroll to the sign in promo in case it is not visible.
onView(instanceOf(RecyclerView.class))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public void testRecentlyClosedTabs() throws ExecutionException {
@Test
@LargeTest
@Feature("RenderTest")
@Features.DisableFeatures({ChromeFeatureList.MOBILE_IDENTITY_CONSISTENCY})
public void testPersonalizedSigninPromoInRecentTabsPage() throws Exception {
mAccountManagerTestRule.addAccount(mAccountManagerTestRule.createProfileDataFromName(
AccountManagerTestRule.TEST_ACCOUNT_EMAIL));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,10 @@ private void configureMockSearchEngine() {
@LargeTest
@Feature({"RenderTest"})
@EnableFeatures({ChromeFeatureList.SAFE_BROWSING_SECTION_UI})
@DisableFeatures({ChromeFeatureList.SAFETY_CHECK_ANDROID})
public void testRenderDifferentSignedInStates() throws IOException {
@DisableFeatures(
{ChromeFeatureList.SAFETY_CHECK_ANDROID, ChromeFeatureList.MOBILE_IDENTITY_CONSISTENCY})
public void
testRenderDifferentSignedInStates() throws IOException {
launchSettingsActivity();
View view = mSettingsActivityTestRule.getActivity()
.findViewById(android.R.id.content)
Expand All @@ -184,6 +186,7 @@ public void testRenderDifferentSignedInStates() throws IOException {
@Feature({"RenderTest"})
@EnableFeatures(
{ChromeFeatureList.SAFETY_CHECK_ANDROID, ChromeFeatureList.SAFE_BROWSING_SECTION_UI})
@DisableFeatures(ChromeFeatureList.MOBILE_IDENTITY_CONSISTENCY)
public void
testRenderDifferentSignedInStatesWithSafetyCheck() throws IOException {
launchSettingsActivity();
Expand All @@ -207,6 +210,7 @@ public void testRenderDifferentSignedInStates() throws IOException {
@Test
@SmallTest
@EnableFeatures({ChromeFeatureList.PASSWORD_CHECK, ChromeFeatureList.SAFETY_CHECK_ANDROID})
@DisableFeatures(ChromeFeatureList.MOBILE_IDENTITY_CONSISTENCY)
public void testStartup() {
launchSettingsActivity();

Expand Down Expand Up @@ -367,6 +371,7 @@ public void testSearchEngineDisabled() {
*/
@Test
@SmallTest
@DisableFeatures({ChromeFeatureList.MOBILE_IDENTITY_CONSISTENCY})
public void testAccountSignIn() {
launchSettingsActivity();

Expand Down
15 changes: 15 additions & 0 deletions testing/variations/fieldtrial_testing_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4372,6 +4372,21 @@
]
}
],
"MobileIdentityConsistency": [
{
"platforms": [
"android"
],
"experiments": [
{
"name": "Enabled",
"enable_features": [
"MobileIdentityConsistency"
]
}
]
}
],
"MyChromeEverywhere": [
{
"platforms": [
Expand Down

0 comments on commit 12814ab

Please sign in to comment.