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

Issue 2909173003: [sync] Reland - Replace FakeServer's implementation with LoopbackServer invocations. (Closed)

Created:
3 years, 6 months ago by pastarmovj
Modified:
3 years, 5 months ago
Reviewers:
baxley, Nicolas Zea
CC:
chromium-reviews, extensions-reviews_chromium.org, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, baxley+watch_chromium.org, pkl (ping after 24h if needed), noyau+watch_chromium.org, marq+watch_chromium.org, chromium-apps-reviews_chromium.org, huangml+watch_chromium.org, liaoyuke+watch_chromium.org, sync-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace FakeServer's implementation with LoopbackServer invocations. This makes FakeServer a debugging adapter for LoopbackServer. It mostly forwards calls to the actual implementation in the LoopbackServer but also allows for simulating various exceptional conditions and deeper inspection in the data flow. BUG=651415 TEST=All tests still pass. Review-Url: https://codereview.chromium.org/2909173003

Patch Set 1 #

Patch Set 2 : Rebased on master. #

Patch Set 3 : Fix FakeServerHelperAndroid::GetBookmarkBarFolderId. #

Patch Set 4 : Fix android tests. #

Patch Set 5 : Rebased on master. #

Patch Set 6 : Revert whitelist change. #

Total comments: 10

Patch Set 7 : Addressed comment. #

Patch Set 8 : Rename/unify persistent entries create function. #

Patch Set 9 : I shall not put code that does stuff in DCHECKs ever again! I shall not put... #

Unified diffs Side-by-side diffs Delta from patch set Stats (+331 lines, -1488 lines) Patch
M chrome/browser/sync/test/integration/single_client_bookmarks_sync_test.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/browser/sync/test/integration/single_client_extensions_sync_test.cc View 1 2 3 4 5 6 7 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc View 1 2 3 4 5 6 7 2 chunks +4 lines, -5 lines 0 comments Download
M components/sync/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -10 lines 0 comments Download
M components/sync/engine_impl/loopback_server/loopback_server.h View 1 2 3 4 5 6 7 5 chunks +53 lines, -0 lines 0 comments Download
M components/sync/engine_impl/loopback_server/loopback_server.cc View 1 2 3 4 5 6 7 8 chunks +106 lines, -6 lines 0 comments Download
M components/sync/engine_impl/loopback_server/loopback_server_entity.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -2 lines 0 comments Download
M components/sync/engine_impl/loopback_server/persistent_permanent_entity.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/sync/engine_impl/loopback_server/persistent_permanent_entity.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M components/sync/engine_impl/loopback_server/persistent_tombstone_entity.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -2 lines 0 comments Download
M components/sync/engine_impl/loopback_server/persistent_tombstone_entity.cc View 1 2 3 4 5 6 7 2 chunks +20 lines, -5 lines 0 comments Download
M components/sync/engine_impl/loopback_server/persistent_unique_client_entity.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -1 line 0 comments Download
M components/sync/engine_impl/loopback_server/persistent_unique_client_entity.cc View 1 2 3 4 5 6 7 3 chunks +17 lines, -1 line 0 comments Download
M components/sync/test/fake_server/android/fake_server_helper_android.h View 1 chunk +1 line, -1 line 0 comments Download
M components/sync/test/fake_server/android/fake_server_helper_android.cc View 1 2 3 4 5 6 7 6 chunks +7 lines, -10 lines 0 comments Download
D components/sync/test/fake_server/bookmark_entity.h View 1 chunk +0 lines, -75 lines 0 comments Download
D components/sync/test/fake_server/bookmark_entity.cc View 1 chunk +0 lines, -119 lines 0 comments Download
M components/sync/test/fake_server/bookmark_entity_builder.h View 2 chunks +9 lines, -9 lines 0 comments Download
M components/sync/test/fake_server/bookmark_entity_builder.cc View 5 chunks +15 lines, -12 lines 0 comments Download
M components/sync/test/fake_server/fake_server.h View 1 2 3 6 chunks +16 lines, -75 lines 0 comments Download
M components/sync/test/fake_server/fake_server.cc View 1 2 3 4 5 6 7 8 7 chunks +45 lines, -487 lines 0 comments Download
D components/sync/test/fake_server/fake_server_entity.h View 1 chunk +0 lines, -91 lines 0 comments Download
D components/sync/test/fake_server/fake_server_entity.cc View 1 chunk +0 lines, -130 lines 0 comments Download
D components/sync/test/fake_server/permanent_entity.h View 1 chunk +0 lines, -63 lines 0 comments Download
D components/sync/test/fake_server/permanent_entity.cc View 1 chunk +0 lines, -105 lines 0 comments Download
D components/sync/test/fake_server/tombstone_entity.h View 1 chunk +0 lines, -41 lines 0 comments Download
D components/sync/test/fake_server/tombstone_entity.cc View 1 chunk +0 lines, -49 lines 0 comments Download
D components/sync/test/fake_server/unique_client_entity.h View 1 chunk +0 lines, -68 lines 0 comments Download
D components/sync/test/fake_server/unique_client_entity.cc View 1 chunk +0 lines, -102 lines 0 comments Download
M ios/chrome/test/app/sync_test_util.mm View 1 2 3 4 5 6 7 8 5 chunks +12 lines, -11 lines 0 comments Download

Messages

Total messages: 30 (20 generated)
pastarmovj
Hi Nicolas, Finally got all tests to pass. Please take a look when you got ...
3 years, 6 months ago (2017-06-06 10:51:57 UTC) #11
Nicolas Zea
Mostly LG! https://codereview.chromium.org/2909173003/diff/100001/components/sync/engine_impl/loopback_server/loopback_server.h File components/sync/engine_impl/loopback_server/loopback_server.h (right): https://codereview.chromium.org/2909173003/diff/100001/components/sync/engine_impl/loopback_server/loopback_server.h#newcode125 components/sync/engine_impl/loopback_server/loopback_server.h:125: // (e.g., the URL of a session ...
3 years, 6 months ago (2017-06-08 16:55:08 UTC) #12
pastarmovj
https://codereview.chromium.org/2909173003/diff/100001/components/sync/engine_impl/loopback_server/loopback_server.h File components/sync/engine_impl/loopback_server/loopback_server.h (right): https://codereview.chromium.org/2909173003/diff/100001/components/sync/engine_impl/loopback_server/loopback_server.h#newcode125 components/sync/engine_impl/loopback_server/loopback_server.h:125: // (e.g., the URL of a session tab). On ...
3 years, 6 months ago (2017-06-09 13:13:49 UTC) #13
Nicolas Zea
LGTM with some nits https://codereview.chromium.org/2909173003/diff/100001/components/sync/engine_impl/loopback_server/loopback_server.h File components/sync/engine_impl/loopback_server/loopback_server.h (right): https://codereview.chromium.org/2909173003/diff/100001/components/sync/engine_impl/loopback_server/loopback_server.h#newcode125 components/sync/engine_impl/loopback_server/loopback_server.h:125: // (e.g., the URL of ...
3 years, 6 months ago (2017-06-09 19:44:10 UTC) #14
pastarmovj
Thanks! I am really happy this is now done! It both reduces the code duplication ...
3 years, 6 months ago (2017-06-12 12:49:12 UTC) #15
pastarmovj
baxley@chromium.org: Please review changes in ios/chrome/test Thanks, Julian
3 years, 6 months ago (2017-06-12 12:51:53 UTC) #19
baxley
On 2017/06/12 12:51:53, pastarmovj wrote: > mailto:baxley@chromium.org: Please review changes in ios/chrome/test > > Thanks, ...
3 years, 6 months ago (2017-06-12 16:22:01 UTC) #22
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/2909173003/140001
3 years, 6 months ago (2017-06-13 07:24:02 UTC) #25
commit-bot: I haz the power
Committed patchset #8 (id:140001) as https://chromium.googlesource.com/chromium/src/+/4993d7744127a9b1367c2834908d97397a372c29
3 years, 6 months ago (2017-06-13 07:27:53 UTC) #28
Henrik Grunell
3 years, 6 months ago (2017-06-13 09:07:47 UTC) #29
Message was sent while issue was closed.
A revert of this CL (patchset #8 id:140001) has been created in
https://codereview.chromium.org/2938553003/ by grunell@chromium.org.

The reason for reverting is: Breaks several bots.

Example:
https://uberchromegw.corp.google.com/i/chromium.linux/builders/Linux%20Tests/....

Powered by Google App Engine
This is Rietveld 408576698