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

Issue 650463003: Improve error triggering in sync_integration_tests (Closed)

Created:
6 years, 2 months ago by pval...(no longer on Chromium)
Modified:
6 years, 2 months ago
Reviewers:
Nicolas Zea
CC:
chromium-reviews, tim+watch_chromium.org, pvalenzuela+watch_chromium.org, zea+watch_chromium.org, maniscalco+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Improve error triggering in sync_integration_tests This CL does the following: 1) Re-enables two test cases in sync_errors_test.cc and converts them to use FakeServer. ErrorWhileSettingUp and BirthdayErrorUsingActionableErrorTest. Note that ErrorWhileSettingUp still fails on Chrome OS, so a separate (disabled) case has been created. 2) Adds a feature to FakeServer where triggered errors are sent back to the client on every other request (as opposed to every request). 3) FakeServer::TriggerError() now returns a bool to indicate success. 4) Removes dead code (unused as a result of the conversion to FakeServer) from SyncTest. BUG=400806, 406545 Committed: https://crrev.com/a91125d77bf01e9982fce536c95c5f213cf2413e Cr-Commit-Position: refs/heads/master@{#299765}

Patch Set 1 : #

Total comments: 4

Patch Set 2 : #

Patch Set 3 : rebase #

Patch Set 4 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+112 lines, -172 lines) Patch
M chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc View 1 5 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_errors_test.cc View 1 2 3 3 chunks +45 lines, -51 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.h View 1 2 2 chunks +0 lines, -21 lines 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 2 1 chunk +0 lines, -85 lines 0 comments Download
M sync/test/fake_server/fake_server.h View 1 2 3 chunks +26 lines, -5 lines 0 comments Download
M sync/test/fake_server/fake_server.cc View 1 2 5 chunks +35 lines, -5 lines 0 comments Download

Messages

Total messages: 22 (9 generated)
pval...(no longer on Chromium)
6 years, 2 months ago (2014-10-10 21:31:14 UTC) #3
Nicolas Zea
lgtm https://codereview.chromium.org/650463003/diff/60001/chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc File chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc (right): https://codereview.chromium.org/650463003/diff/60001/chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc#newcode236 chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc:236: EXPECT_TRUE(GetFakeServer()->TriggerError(sync_pb::SyncEnums::USER_ROLLBACK)); nit: should these all be ASSERT_TRUE? If ...
6 years, 2 months ago (2014-10-10 23:51:10 UTC) #4
pval...(no longer on Chromium)
https://codereview.chromium.org/650463003/diff/60001/chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc File chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc (right): https://codereview.chromium.org/650463003/diff/60001/chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc#newcode236 chrome/browser/sync/test/integration/single_client_backup_rollback_test.cc:236: EXPECT_TRUE(GetFakeServer()->TriggerError(sync_pb::SyncEnums::USER_ROLLBACK)); On 2014/10/10 23:51:09, Nicolas Zea wrote: > nit: ...
6 years, 2 months ago (2014-10-14 17:26:04 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/650463003/170001
6 years, 2 months ago (2014-10-14 17:26:59 UTC) #7
commit-bot: I haz the power
Try jobs failed on following builders: linux_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/linux_gpu/builds/78899) mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/68439) win_gpu ...
6 years, 2 months ago (2014-10-14 17:31:41 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/650463003/190001
6 years, 2 months ago (2014-10-15 00:08:24 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/24016)
6 years, 2 months ago (2014-10-15 00:46:43 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/650463003/190001
6 years, 2 months ago (2014-10-15 00:51:59 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_swarming on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_swarming/builds/24030)
6 years, 2 months ago (2014-10-15 01:42:22 UTC) #17
pval...(no longer on Chromium)
FYI: Found that a test is still failing on Chrome OS. I've separated it out ...
6 years, 2 months ago (2014-10-15 20:20:35 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/650463003/210001
6 years, 2 months ago (2014-10-15 20:21:54 UTC) #20
commit-bot: I haz the power
Committed patchset #4 (id:210001)
6 years, 2 months ago (2014-10-15 21:16:37 UTC) #21
commit-bot: I haz the power
6 years, 2 months ago (2014-10-15 21:17:31 UTC) #22
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/a91125d77bf01e9982fce536c95c5f213cf2413e
Cr-Commit-Position: refs/heads/master@{#299765}

Powered by Google App Engine
This is Rietveld 408576698