Commit bc6b6a7f authored by Xinghui Lu's avatar Xinghui Lu Committed by Commit Bot

Fix render tests testRenderDifferentSignedInStates*

See the failure in https://crbug.com/1135290#c1. Explicitly enable
the SAFE_BROWSING_SECURITY_SECTION_UI flag to show "Privacy and
security".

Bug: 1135290
Change-Id: I28d4656e8df987d79312dad2e00d67f861465c3a
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2450665Reviewed-by: default avatarNatalie Chouinard <chouinard@chromium.org>
Commit-Queue: Xinghui Lu <xinghuilu@chromium.org>
Cr-Commit-Position: refs/heads/master@{#814784}
parent f6b313db
...@@ -149,6 +149,7 @@ public class MainSettingsFragmentTest { ...@@ -149,6 +149,7 @@ public class MainSettingsFragmentTest {
@Test @Test
@LargeTest @LargeTest
@Feature({"RenderTest"}) @Feature({"RenderTest"})
@EnableFeatures({ChromeFeatureList.SAFE_BROWSING_SECURITY_SECTION_UI})
@DisableFeatures({ChromeFeatureList.SAFETY_CHECK_ANDROID}) @DisableFeatures({ChromeFeatureList.SAFETY_CHECK_ANDROID})
public void testRenderDifferentSignedInStates() throws IOException { public void testRenderDifferentSignedInStates() throws IOException {
launchSettingsActivity(); launchSettingsActivity();
...@@ -166,8 +167,10 @@ public class MainSettingsFragmentTest { ...@@ -166,8 +167,10 @@ public class MainSettingsFragmentTest {
@Test @Test
@LargeTest @LargeTest
@Feature({"RenderTest"}) @Feature({"RenderTest"})
@EnableFeatures({ChromeFeatureList.SAFETY_CHECK_ANDROID}) @EnableFeatures({ChromeFeatureList.SAFETY_CHECK_ANDROID,
public void testRenderDifferentSignedInStatesWithSafetyCheck() throws IOException { ChromeFeatureList.SAFE_BROWSING_SECURITY_SECTION_UI})
public void
testRenderDifferentSignedInStatesWithSafetyCheck() throws IOException {
launchSettingsActivity(); launchSettingsActivity();
View view = mSettingsActivityTestRule.getActivity() View view = mSettingsActivityTestRule.getActivity()
.findViewById(android.R.id.content) .findViewById(android.R.id.content)
......
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