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

Issue 2716413003: Initial clear server data impl (Closed)

Created:
3 years, 9 months ago by wylieb
Modified:
3 years, 9 months ago
Reviewers:
skym, pavely
CC:
chromium-reviews, sync-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Initial clear server data impl. When we run integration tests, we need accounts with a clean slate. This CL clears out the data on sync servers for the given test account, and restarts sync. This operation doesn't require read/writing any data to the account, and thus passphrase decryption is by-passed (Some tests have the side-effect of setting a decryption passphrase that requires clear server data to be run without decryption). R=pavely@chromium.org,skym@chromium.org TEST=run this command ninja -C out/Debug sync_integration_tests -j 200 && \ xvfb-run --server-args="-screen 0 1920x1080x24" \ out/Debug/sync_integration_tests \ --gtest_also_run_disabled_tests \ --gtest_filter=*E2ETest* \ --sync-url=https://clients4.google.com/chrome-sync/dev \ --sync-user-for-test=testuser@gmail.com\ --sync-password-for-test=testpassword --vmodule=*sync*=1 BUG= Review-Url: https://codereview.chromium.org/2716413003 Cr-Commit-Position: refs/heads/master@{#456199} Committed: https://chromium.googlesource.com/chromium/src/+/0b596d6acab4b78d658879a7584c6743cf63d7cf

Patch Set 1 #

Patch Set 2 : Clear server data command #

Total comments: 40

Patch Set 3 : Responding to CL comments. Some Logic changes, but mostly spelling/comments. #

Total comments: 50

Patch Set 4 : Fixed various CL comments #

Total comments: 16

Patch Set 5 : CL changes #

Total comments: 11

Patch Set 6 : Responding to Pavel's comments. #

Total comments: 10

Patch Set 7 : Adding confirmationuiclosed to prevent timeouts, addressing some naming concerns, and removing logg… #

Total comments: 5

Patch Set 8 : Addressing newlines, and unused arguments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+156 lines, -18 lines) Patch
M chrome/browser/sync/test/integration/profile_sync_service_harness.h View 1 2 3 4 5 6 7 2 chunks +14 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/profile_sync_service_harness.cc View 1 2 3 4 5 6 7 7 chunks +81 lines, -13 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 3 4 5 6 3 chunks +42 lines, -2 lines 0 comments Download
M components/browser_sync/profile_sync_service.h View 1 2 3 6 1 chunk +4 lines, -0 lines 0 comments Download
M components/browser_sync/profile_sync_service.cc View 1 2 3 4 5 6 3 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 37 (14 generated)
wylieb
PTAL at this CL!
3 years, 9 months ago (2017-03-06 19:46:59 UTC) #3
wylieb
Changed 'sky@chromium' to 'skym@chromium', sorry Scott!
3 years, 9 months ago (2017-03-06 19:51:44 UTC) #5
pavely
b/35406961 is Google internal bug, not accessible for external committers. You can either not specify ...
3 years, 9 months ago (2017-03-07 07:26:16 UTC) #6
skym
Sorry for all the obnoxious nits. Also, CL description doesn't have line breaks. Someone pointed ...
3 years, 9 months ago (2017-03-07 18:38:23 UTC) #8
skym
https://codereview.chromium.org/2716413003/diff/20001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc File chrome/browser/sync/test/integration/profile_sync_service_harness.cc (right): https://codereview.chromium.org/2716413003/diff/20001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode398 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:398: bool ProfileSyncServiceHarness::AwaitSyncSetupCompletion() { On 2017/03/07 18:38:22, skym wrote: > ...
3 years, 9 months ago (2017-03-07 18:47:44 UTC) #9
wylieb
Addressed CL concerns. https://codereview.chromium.org/2716413003/diff/20001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc File chrome/browser/sync/test/integration/profile_sync_service_harness.cc (right): https://codereview.chromium.org/2716413003/diff/20001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode235 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:235: bool ProfileSyncServiceHarness::SetupSyncForClear( On 2017/03/07 07:26:15, pavely ...
3 years, 9 months ago (2017-03-07 19:52:23 UTC) #10
skym
https://codereview.chromium.org/2716413003/diff/40001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc File chrome/browser/sync/test/integration/profile_sync_service_harness.cc (right): https://codereview.chromium.org/2716413003/diff/40001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode134 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:134: if (result == false) { Ahh, you were copying ...
3 years, 9 months ago (2017-03-07 21:32:25 UTC) #11
wylieb
https://codereview.chromium.org/2716413003/diff/40001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc File chrome/browser/sync/test/integration/profile_sync_service_harness.cc (right): https://codereview.chromium.org/2716413003/diff/40001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode134 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:134: if (result == false) { On 2017/03/07 21:32:24, skym ...
3 years, 9 months ago (2017-03-07 23:04:41 UTC) #12
skym
Sorry for all the churn, things are looking almost all good! https://codereview.chromium.org/2716413003/diff/40001/chrome/browser/sync/test/integration/sync_datatype_helper.h File chrome/browser/sync/test/integration/sync_datatype_helper.h (right): ...
3 years, 9 months ago (2017-03-08 00:23:48 UTC) #13
wylieb
https://codereview.chromium.org/2716413003/diff/40001/chrome/browser/sync/test/integration/sync_datatype_helper.h File chrome/browser/sync/test/integration/sync_datatype_helper.h (right): https://codereview.chromium.org/2716413003/diff/40001/chrome/browser/sync/test/integration/sync_datatype_helper.h#newcode18 chrome/browser/sync/test/integration/sync_datatype_helper.h:18: // Dissociates the test from us. When running tests ...
3 years, 9 months ago (2017-03-08 00:58:51 UTC) #14
skym
lgtm https://codereview.chromium.org/2716413003/diff/40001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc File chrome/browser/sync/test/integration/profile_sync_service_harness.cc (right): https://codereview.chromium.org/2716413003/diff/40001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode267 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:267: On 2017/03/07 23:04:40, wylieb wrote: > On 2017/03/07 ...
3 years, 9 months ago (2017-03-08 19:15:02 UTC) #15
pavely
Could you format description according to https://www.chromium.org/developers/contributing-code#TOC-Writing-change-list-descriptions Otherwise "git branch -vv" (and potentially other tools) ...
3 years, 9 months ago (2017-03-08 21:15:14 UTC) #16
wylieb
Good comments all around. I fixed the description of the CL, so hopefully it's acceptable ...
3 years, 9 months ago (2017-03-09 18:42:27 UTC) #20
pavely
lgtm % my comments https://codereview.chromium.org/2716413003/diff/100001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc File chrome/browser/sync/test/integration/profile_sync_service_harness.cc (right): https://codereview.chromium.org/2716413003/diff/100001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode79 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:79: LOG(WARNING) << "ISEXIT"; Cleanup. https://codereview.chromium.org/2716413003/diff/100001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode143 ...
3 years, 9 months ago (2017-03-10 06:14:42 UTC) #21
skym
https://codereview.chromium.org/2716413003/diff/40001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc File chrome/browser/sync/test/integration/profile_sync_service_harness.cc (right): https://codereview.chromium.org/2716413003/diff/40001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode267 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:267: On 2017/03/09 18:42:26, wylieb wrote: > On 2017/03/08 19:15:02, ...
3 years, 9 months ago (2017-03-10 17:36:31 UTC) #22
wylieb
On 2017/03/10 17:36:31, skym wrote: > https://codereview.chromium.org/2716413003/diff/40001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc > File chrome/browser/sync/test/integration/profile_sync_service_harness.cc > (right): > > https://codereview.chromium.org/2716413003/diff/40001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode267 ...
3 years, 9 months ago (2017-03-10 19:58:58 UTC) #23
wylieb
https://codereview.chromium.org/2716413003/diff/100001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc File chrome/browser/sync/test/integration/profile_sync_service_harness.cc (right): https://codereview.chromium.org/2716413003/diff/100001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode79 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:79: LOG(WARNING) << "ISEXIT"; On 2017/03/10 06:14:41, pavely wrote: > ...
3 years, 9 months ago (2017-03-10 20:44:01 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2716413003/120001
3 years, 9 months ago (2017-03-10 21:07:30 UTC) #27
pavely
https://codereview.chromium.org/2716413003/diff/120001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc File chrome/browser/sync/test/integration/profile_sync_service_harness.cc (right): https://codereview.chromium.org/2716413003/diff/120001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode15 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:15: No new line here. base is part of chromium ...
3 years, 9 months ago (2017-03-10 21:08:21 UTC) #28
wylieb
https://codereview.chromium.org/2716413003/diff/120001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc File chrome/browser/sync/test/integration/profile_sync_service_harness.cc (right): https://codereview.chromium.org/2716413003/diff/120001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode225 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:225: LoginUIServiceFactory::GetForProfile(profile_)->SyncConfirmationUIClosed( On 2017/03/10 21:08:20, pavely wrote: > This call ...
3 years, 9 months ago (2017-03-10 21:16:30 UTC) #30
pavely
lgtm
3 years, 9 months ago (2017-03-10 21:26:08 UTC) #31
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2716413003/140001
3 years, 9 months ago (2017-03-10 22:06:29 UTC) #34
commit-bot: I haz the power
3 years, 9 months ago (2017-03-10 22:48:07 UTC) #37
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/0b596d6acab4b78d658879a7584c...

Powered by Google App Engine
This is Rietveld 408576698