Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(498)

Issue 267743003: Refactor password sync integration tests (Closed)

Created:
6 years, 7 months ago by rlarocque
Modified:
6 years, 7 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org, pval...(no longer on Chromium)
Visibility:
Public.

Description

Refactor password sync integration tests Refactors the password sync integration tests so they no longer require self-notifications or access to progress markers. This will allow them to work in the future when we refactor the integration tests to no longer depend on sync internals. Introduces two new Await*() functions for passwords. One is used to wait until all profiles have matching passwords state. The other waits until a single profile matches the verifier. Together, these are enough to replace most uses of AwaitQuiescence(), AwaitCommitActivityCompletion(), and other await conditions that will not be supported in the new style of integration tests. Refactors some two client tests into multi (ie. three) client tests. These are the tests that formerly relied on AwaitCommitActivityCompletion() to ensure that certain changes were committed to the server. Using three clients allows us to set up a "canary" client that can be used to infer that items are committed based on the fact that it has received them. Removes a few redundant tests. Note to sheriffs: The TwoClientPasswordTest.Delete test may be flaky. I believe it was flaky before the refactor, and it may still be flaky now. Please disable it and assign the bug to me if it causes problems. BUG=97780, 95742 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=269198

Patch Set 1 #

Patch Set 2 : Remove logging #

Total comments: 12

Patch Set 3 : More review fixes #

Total comments: 2

Patch Set 4 : Rebase #

Patch Set 5 : Remove disable tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+197 lines, -151 lines) Patch
M chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc View 1 2 3 4 2 chunks +101 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/passwords_helper.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/passwords_helper.cc View 1 2 4 chunks +68 lines, -4 lines 0 comments Download
M chrome/browser/sync/test/integration/two_client_passwords_sync_test.cc View 1 9 chunks +24 lines, -146 lines 0 comments Download
M sync/internal_api/sync_encryption_handler_impl.cc View 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
rlarocque
Please review.
6 years, 7 months ago (2014-05-02 19:20:20 UTC) #1
Nicolas Zea
mostly LG https://codereview.chromium.org/267743003/diff/20001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc File chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc (right): https://codereview.chromium.org/267743003/diff/20001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc#newcode79 chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc:79: ASSERT_TRUE(AwaitProfileContainsSamePasswordFormsAsVerifier(2)); Hmm, given that we're calling this, ...
6 years, 7 months ago (2014-05-06 00:16:37 UTC) #2
rlarocque
https://codereview.chromium.org/267743003/diff/20001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc File chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc (right): https://codereview.chromium.org/267743003/diff/20001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc#newcode79 chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc:79: ASSERT_TRUE(AwaitProfileContainsSamePasswordFormsAsVerifier(2)); On 2014/05/06 00:16:37, Nicolas Zea wrote: > Hmm, ...
6 years, 7 months ago (2014-05-06 00:33:36 UTC) #3
Nicolas Zea
https://codereview.chromium.org/267743003/diff/20001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc File chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc (right): https://codereview.chromium.org/267743003/diff/20001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc#newcode79 chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc:79: ASSERT_TRUE(AwaitProfileContainsSamePasswordFormsAsVerifier(2)); On 2014/05/06 00:33:36, rlarocque wrote: > On 2014/05/06 ...
6 years, 7 months ago (2014-05-06 18:42:15 UTC) #4
rlarocque
Rebased and addressed some recent comments. PTAL. https://codereview.chromium.org/267743003/diff/20001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc File chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc (right): https://codereview.chromium.org/267743003/diff/20001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc#newcode79 chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc:79: ASSERT_TRUE(AwaitProfileContainsSamePasswordFormsAsVerifier(2)); On ...
6 years, 7 months ago (2014-05-06 23:40:47 UTC) #5
Nicolas Zea
https://codereview.chromium.org/267743003/diff/40001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc File chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc (right): https://codereview.chromium.org/267743003/diff/40001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc#newcode59 chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc:59: IN_PROC_BROWSER_TEST_F(MultipleClientPasswordsSyncTest, DisablePasswords) { My point is that these tests ...
6 years, 7 months ago (2014-05-06 23:46:58 UTC) #6
rlarocque
https://codereview.chromium.org/267743003/diff/40001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc File chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc (right): https://codereview.chromium.org/267743003/diff/40001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc#newcode59 chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc:59: IN_PROC_BROWSER_TEST_F(MultipleClientPasswordsSyncTest, DisablePasswords) { On 2014/05/06 23:46:58, Nicolas Zea wrote: ...
6 years, 7 months ago (2014-05-07 00:06:41 UTC) #7
Nicolas Zea
On 2014/05/07 00:06:41, rlarocque wrote: > https://codereview.chromium.org/267743003/diff/40001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc > File chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc > (right): > > https://codereview.chromium.org/267743003/diff/40001/chrome/browser/sync/test/integration/multiple_client_passwords_sync_test.cc#newcode59 ...
6 years, 7 months ago (2014-05-07 17:07:15 UTC) #8
rlarocque
On 2014/05/07 17:07:15, Nicolas Zea wrote: > On 2014/05/07 00:06:41, rlarocque wrote: > > > ...
6 years, 7 months ago (2014-05-07 17:19:01 UTC) #9
Nicolas Zea
I see. It strikes me then that this test could still succeed even if the ...
6 years, 7 months ago (2014-05-07 17:28:52 UTC) #10
rlarocque
Removed the "disable" tests.
6 years, 7 months ago (2014-05-07 23:49:32 UTC) #11
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-05-07 23:49:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/267743003/80001
6 years, 7 months ago (2014-05-07 23:53:03 UTC) #13
commit-bot: I haz the power
6 years, 7 months ago (2014-05-09 09:38:32 UTC) #14
Message was sent while issue was closed.
Change committed as 269198

Powered by Google App Engine
This is Rietveld 408576698