Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(965)

Issue 109853004: [sync] Move exponential backoff tests / infrastructure into a new file (Closed)

Created:
7 years ago by Raghu Simha
Modified:
7 years ago
Reviewers:
rlarocque
CC:
chromium-reviews, tim+watch_chromium.org, rsimha+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

[sync] Move exponential backoff tests / infrastructure into a new file This is another in a series of CLs to clean up ProfileSyncServiceHarness. It does the following: 1) Moves the sync integration tests for exponential backoff into their own file. 2) Moves the test infrastructure used solely by these tests out of ProfileSyncServiceHarness and into the test file. 3) Reduces StatusChangeChecker to an interface, and moves its callback mechanism into ProfileSyncServiceHarness, where it can be used with any arbitrary method of PSSH. Other one-off users of SCC aren't forced to implement a callback, and can directly override IsExitConditionSatisfied. BUG=323380 TEST=sync_integration_tests:SyncExponentialBackoffTest* [email protected] Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=241350

Patch Set 1 : #

Total comments: 2

Patch Set 2 : Address feedback #

Total comments: 8

Patch Set 3 : Fix nits #

Total comments: 2

Patch Set 4 : namespace #

Patch Set 5 : Fix compile #

Patch Set 6 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+169 lines, -104 lines) Patch
M chrome/browser/sync/test/integration/profile_sync_service_harness.h View 4 chunks +0 lines, -11 lines 0 comments Download
M chrome/browser/sync/test/integration/profile_sync_service_harness.cc View 1 2 3 4 14 chunks +38 lines, -33 lines 0 comments Download
M chrome/browser/sync/test/integration/single_client_bookmarks_sync_test.cc View 1 chunk +0 lines, -16 lines 0 comments Download
M chrome/browser/sync/test/integration/status_change_checker.h View 1 1 chunk +21 lines, -19 lines 0 comments Download
M chrome/browser/sync/test/integration/status_change_checker.cc View 1 1 chunk +2 lines, -9 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_errors_test.cc View 1 chunk +0 lines, -16 lines 0 comments Download
A chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc View 1 2 3 4 1 chunk +107 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Raghu Simha
Richard, please review. Thanks.
7 years ago (2013-12-14 00:51:19 UTC) #1
rlarocque
Woo-hoo! This is exactly the sort of change I was hoping to see once we ...
7 years ago (2013-12-14 01:09:17 UTC) #2
Raghu Simha
PTAL. https://codereview.chromium.org/109853004/diff/20001/chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc File chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc (right): https://codereview.chromium.org/109853004/diff/20001/chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc#newcode30 chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc:30: : StatusChangeChecker( On 2013/12/14 01:09:17, rlarocque wrote: > ...
7 years ago (2013-12-14 02:10:16 UTC) #3
rlarocque
Here's a few more comments. Mostly nits. https://codereview.chromium.org/109853004/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/109853004/diff/120001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode114 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:114: class SyncStatusChangeChecker ...
7 years ago (2013-12-16 18:16:00 UTC) #4
Raghu Simha
Richard, PTAL. https://codereview.chromium.org/109853004/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/109853004/diff/120001/chrome/browser/sync/test/integration/profile_sync_service_harness.cc#newcode114 chrome/browser/sync/test/integration/profile_sync_service_harness.cc:114: class SyncStatusChangeChecker : public StatusChangeChecker { On ...
7 years ago (2013-12-16 19:02:31 UTC) #5
rlarocque
LGTM. https://codereview.chromium.org/109853004/diff/140001/chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc File chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc (right): https://codereview.chromium.org/109853004/diff/140001/chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc#newcode60 chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc:60: } // namespace nit: It should be possible ...
7 years ago (2013-12-16 20:01:03 UTC) #6
Raghu Simha
https://codereview.chromium.org/109853004/diff/140001/chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc File chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc (right): https://codereview.chromium.org/109853004/diff/140001/chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc#newcode60 chrome/browser/sync/test/integration/sync_exponential_backoff_test.cc:60: } // namespace On 2013/12/16 20:01:03, rlarocque wrote: > ...
7 years ago (2013-12-16 20:43:21 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/109853004/220001
7 years ago (2013-12-16 20:45:29 UTC) #8
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) base_unittests, browser_tests, interactive_ui_tests, net_unittests, unit_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=203347
7 years ago (2013-12-16 21:25:38 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/109853004/240001
7 years ago (2013-12-16 21:50:32 UTC) #10
Raghu Simha
7 years ago (2013-12-17 20:41:27 UTC) #11
Message was sent while issue was closed.
Committed patchset #6 manually as r241350 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698