Commit 92de5fbe authored by Daniel Rubery's avatar Daniel Rubery Committed by Commit Bot

Fix PasswordProtectionServiceTest.TestWebContentsDestroyed

When testing, I had disabled the whitelist checks. But this test
doesn't actually do anything if the whitelist matches, so don't
match the whitelist.

Change-Id: I1e28b4deea59206dac3a2f99ccbc8aba8944fd99
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1787160
Auto-Submit: Daniel Rubery <drubery@chromium.org>
Reviewed-by: default avatarVarun Khaneja <vakh@chromium.org>
Commit-Queue: Daniel Rubery <drubery@chromium.org>
Cr-Commit-Position: refs/heads/master@{#693867}
parent 75b8a52c
...@@ -1342,7 +1342,7 @@ TEST_P(PasswordProtectionServiceTest, TestRequestCancelNotOnTimeout) { ...@@ -1342,7 +1342,7 @@ TEST_P(PasswordProtectionServiceTest, TestRequestCancelNotOnTimeout) {
TEST_P(PasswordProtectionServiceTest, TestWebContentsDestroyed) { TEST_P(PasswordProtectionServiceTest, TestWebContentsDestroyed) {
content::WebContents* web_contents = GetWebContents(); content::WebContents* web_contents = GetWebContents();
InitializeAndStartPasswordOnFocusRequest( InitializeAndStartPasswordOnFocusRequest(
true /* match whitelist */, 10000 /* timeout in ms */, web_contents); false /* match whitelist */, 10000 /* timeout in ms */, web_contents);
delete web_contents; delete web_contents;
task_environment_.FastForwardUntilNoTasksRemain(); task_environment_.FastForwardUntilNoTasksRemain();
} }
......
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