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

Issue 296743005: sync: Implement fake server reflection blocking (Closed)

Created:
6 years, 7 months ago by rlarocque
Modified:
6 years, 7 months ago
CC:
chromium-reviews, tim+watch_chromium.org, haitaol+watch_chromium.org, maniscalco+watch_chromium.org
Visibility:
Public.

Description

sync: Implement fake server reflection blocking Implements reflection blocking for the in-process fake sync server. The notifications delivery system used in the real world will not deliver notifications of new or modified items to the client that originated that change. This feature is known by the names "reflection blocking" or "squelching". Most of out integration tests expect reflection blocking to be disabled, so we can't turn this on in all tests. The default is to leave it off. Tests that want to enable reflection blocking must override "TestUsesSelfNotifications" in their test framework class. BUG=323265 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=272321

Patch Set 1 #

Total comments: 3

Patch Set 2 : Split enable and disable methods #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -5 lines) Patch
M chrome/browser/sync/test/integration/fake_server_invalidation_service.h View 1 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/fake_server_invalidation_service.cc View 1 3 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/sync/test/integration/sync_test.cc View 1 1 chunk +5 lines, -0 lines 0 comments Download
M sync/test/fake_server/fake_server.h View 2 chunks +5 lines, -2 lines 0 comments Download
M sync/test/fake_server/fake_server.cc View 3 chunks +4 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
rlarocque
Hi Patrick, I was planning to refactor some integration tests, but I needed this functionality ...
6 years, 7 months ago (2014-05-21 17:26:01 UTC) #1
pval...(no longer on Chromium)
This patch is definitely welcome. Thanks for adding this. https://codereview.chromium.org/296743005/diff/1/chrome/browser/sync/test/integration/fake_server_invalidation_service.h File chrome/browser/sync/test/integration/fake_server_invalidation_service.h (right): https://codereview.chromium.org/296743005/diff/1/chrome/browser/sync/test/integration/fake_server_invalidation_service.h#newcode55 chrome/browser/sync/test/integration/fake_server_invalidation_service.h:55: ...
6 years, 7 months ago (2014-05-21 17:37:03 UTC) #2
rlarocque
https://codereview.chromium.org/296743005/diff/1/chrome/browser/sync/test/integration/fake_server_invalidation_service.h File chrome/browser/sync/test/integration/fake_server_invalidation_service.h (right): https://codereview.chromium.org/296743005/diff/1/chrome/browser/sync/test/integration/fake_server_invalidation_service.h#newcode55 chrome/browser/sync/test/integration/fake_server_invalidation_service.h:55: void SetSelfNotificationsEnabled(bool enabled); On 2014/05/21 17:37:03, pvalenzuela wrote: > ...
6 years, 7 months ago (2014-05-21 17:50:36 UTC) #3
pval...(no longer on Chromium)
lgtm https://codereview.chromium.org/296743005/diff/1/chrome/browser/sync/test/integration/fake_server_invalidation_service.h File chrome/browser/sync/test/integration/fake_server_invalidation_service.h (right): https://codereview.chromium.org/296743005/diff/1/chrome/browser/sync/test/integration/fake_server_invalidation_service.h#newcode55 chrome/browser/sync/test/integration/fake_server_invalidation_service.h:55: void SetSelfNotificationsEnabled(bool enabled); On 2014/05/21 17:50:36, rlarocque wrote: ...
6 years, 7 months ago (2014-05-21 19:46:58 UTC) #4
rlarocque
On 2014/05/21 19:46:58, pvalenzuela wrote: > lgtm > > https://codereview.chromium.org/296743005/diff/1/chrome/browser/sync/test/integration/fake_server_invalidation_service.h > File chrome/browser/sync/test/integration/fake_server_invalidation_service.h > (right): ...
6 years, 7 months ago (2014-05-21 19:50:41 UTC) #5
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-05-21 19:50:48 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rlarocque@chromium.org/296743005/20001
6 years, 7 months ago (2014-05-21 19:58:19 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-21 19:58:21 UTC) #8
commit-bot: I haz the power
No LGTM from a valid reviewer yet. Only full committers are accepted. Even if an ...
6 years, 7 months ago (2014-05-21 19:58:21 UTC) #9
rlarocque
Darn. I'll need some help with this one. Nick, let's see if your new and ...
6 years, 7 months ago (2014-05-21 19:59:58 UTC) #10
maniscalco
lgtm Rubber stamp LGTM.
6 years, 7 months ago (2014-05-22 17:59:58 UTC) #11
rlarocque
The CQ bit was checked by rlarocque@chromium.org
6 years, 7 months ago (2014-05-22 18:08:32 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/296743005/20001
6 years, 7 months ago (2014-05-22 18:10:55 UTC) #13
commit-bot: I haz the power
6 years, 7 months ago (2014-05-22 21:30:17 UTC) #14
Message was sent while issue was closed.
Change committed as 272321

Powered by Google App Engine
This is Rietveld 408576698