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

Issue 998373004: Sync: Generalize entity injection in Android tests (Closed)

Created:
5 years, 9 months ago by pval...(no longer on Chromium)
Modified:
5 years, 8 months ago
Reviewers:
nyquist, Nicolas Zea
CC:
chromium-reviews, maniscalco+watch_chromium.org, maxbogue+watch_chromium.org, pvalenzuela+watch_chromium.org, tim+watch_chromium.org, zea+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Sync: Generalize entity injection in Android tests This CL introduces build infrastructure to generate Java objects from sync protobufs. This allows Java tests to create the EntitySpecifics of entities that they would like to inject. As of this CL, only entities with unique client tags (e.g., preferences, typed URLs) are supported for injection. BUG=365774 Committed: https://crrev.com/cc3d8cbe481e8f21341d8006a8f62a8915343ae6 Cr-Commit-Position: refs/heads/master@{#324558}

Patch Set 1 : #

Total comments: 20

Patch Set 2 : #

Total comments: 9

Patch Set 3 : #

Total comments: 19

Patch Set 4 : zea review #

Patch Set 5 : rebase #

Patch Set 6 : fix CreateForInjection calls #

Unified diffs Side-by-side diffs Delta from patch set Stats (+237 lines, -83 lines) Patch
M chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/FakeServerHelper.java View 3 chunks +16 lines, -8 lines 0 comments Download
M chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java View 2 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/sync/test/integration/single_client_wallet_sync_test.cc View 1 2 3 4 5 4 chunks +2 lines, -4 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A sync/protocol/prepare_protos_for_java_tests.py View 1 2 1 chunk +76 lines, -0 lines 0 comments Download
A sync/protocol/protocol.gypi View 1 2 3 1 chunk +59 lines, -0 lines 0 comments Download
M sync/sync.gyp View 1 2 3 2 chunks +10 lines, -42 lines 0 comments Download
M sync/sync_tests.gypi View 1 2 1 chunk +37 lines, -0 lines 0 comments Download
M sync/test/fake_server/android/fake_server_helper_android.h View 1 chunk +6 lines, -9 lines 0 comments Download
M sync/test/fake_server/android/fake_server_helper_android.cc View 1 chunk +15 lines, -16 lines 0 comments Download
M sync/test/fake_server/unique_client_entity.h View 1 2 3 4 1 chunk +0 lines, -1 line 0 comments Download
M sync/test/fake_server/unique_client_entity.cc View 1 2 3 4 2 chunks +2 lines, -1 line 0 comments Download

Messages

Total messages: 30 (12 generated)
pval...(no longer on Chromium)
nyquist@, This is not yet ready for commit as there are still some open issues. ...
5 years, 9 months ago (2015-03-13 00:32:45 UTC) #5
pval...(no longer on Chromium)
On 2015/03/13 00:32:45, pvalenzuela wrote: > nyquist@, > > This is not yet ready for ...
5 years, 9 months ago (2015-03-17 17:42:23 UTC) #6
nyquist
https://codereview.chromium.org/998373004/diff/60001/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java File chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java (right): https://codereview.chromium.org/998373004/diff/60001/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java#newcode275 chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java:275: mFakeServerHelper.injectUniqueClientEntity(url /* name */, specifics); This is so cool! ...
5 years, 9 months ago (2015-03-24 00:25:36 UTC) #7
nyquist
https://codereview.chromium.org/998373004/diff/60001/sync/sync_tests.gypi File sync/sync_tests.gypi (right): https://codereview.chromium.org/998373004/diff/60001/sync/sync_tests.gypi#newcode596 sync/sync_tests.gypi:596: # of SHARED_INTERMEDIATE_DIR because it could be in a ...
5 years, 9 months ago (2015-03-24 01:16:54 UTC) #8
pval...(no longer on Chromium)
Ok, I made some progress here. PTAL. https://codereview.chromium.org/998373004/diff/60001/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java File chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java (right): https://codereview.chromium.org/998373004/diff/60001/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java#newcode275 chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java:275: mFakeServerHelper.injectUniqueClientEntity(url /* ...
5 years, 9 months ago (2015-03-26 21:17:57 UTC) #11
pval...(no longer on Chromium)
ping
5 years, 8 months ago (2015-03-31 23:16:12 UTC) #12
nyquist
This is so exciting! lgtm https://codereview.chromium.org/998373004/diff/120001/sync/protocol/prepare_protos_for_java_tests.py File sync/protocol/prepare_protos_for_java_tests.py (right): https://codereview.chromium.org/998373004/diff/120001/sync/protocol/prepare_protos_for_java_tests.py#newcode43 sync/protocol/prepare_protos_for_java_tests.py:43: for file_name in original_proto_contents: ...
5 years, 8 months ago (2015-04-01 00:01:01 UTC) #13
pval...(no longer on Chromium)
+zea for review of changes in sync/protocol https://codereview.chromium.org/998373004/diff/120001/sync/protocol/prepare_protos_for_java_tests.py File sync/protocol/prepare_protos_for_java_tests.py (right): https://codereview.chromium.org/998373004/diff/120001/sync/protocol/prepare_protos_for_java_tests.py#newcode43 sync/protocol/prepare_protos_for_java_tests.py:43: for file_name ...
5 years, 8 months ago (2015-04-09 18:01:18 UTC) #15
Nicolas Zea
This is awesome! Couple comments/questions https://codereview.chromium.org/998373004/diff/140001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/998373004/diff/140001/chrome/chrome_tests.gypi#newcode2968 chrome/chrome_tests.gypi:2968: '../sync/sync.gyp:test_support_sync_proto_java', what's the typical ...
5 years, 8 months ago (2015-04-09 20:38:16 UTC) #16
pval...(no longer on Chromium)
https://codereview.chromium.org/998373004/diff/140001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/998373004/diff/140001/chrome/chrome_tests.gypi#newcode2968 chrome/chrome_tests.gypi:2968: '../sync/sync.gyp:test_support_sync_proto_java', On 2015/04/09 20:38:16, Nicolas Zea wrote: > what's ...
5 years, 8 months ago (2015-04-09 21:28:05 UTC) #17
Nicolas Zea
LGTM! https://codereview.chromium.org/998373004/diff/140001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/998373004/diff/140001/chrome/chrome_tests.gypi#newcode2968 chrome/chrome_tests.gypi:2968: '../sync/sync.gyp:test_support_sync_proto_java', On 2015/04/09 21:28:05, pvalenzuela wrote: > On ...
5 years, 8 months ago (2015-04-09 21:40:42 UTC) #18
nyquist
https://codereview.chromium.org/998373004/diff/140001/chrome/chrome_tests.gypi File chrome/chrome_tests.gypi (right): https://codereview.chromium.org/998373004/diff/140001/chrome/chrome_tests.gypi#newcode2968 chrome/chrome_tests.gypi:2968: '../sync/sync.gyp:test_support_sync_proto_java', On 2015/04/09 21:40:42, Nicolas Zea wrote: > On ...
5 years, 8 months ago (2015-04-09 21:53:52 UTC) #19
Nicolas Zea
https://codereview.chromium.org/998373004/diff/140001/sync/sync_tests.gypi File sync/sync_tests.gypi (right): https://codereview.chromium.org/998373004/diff/140001/sync/sync_tests.gypi#newcode499 sync/sync_tests.gypi:499: '<@(sync_proto_sources)' On 2015/04/09 21:53:52, nyquist wrote: > On 2015/04/09 ...
5 years, 8 months ago (2015-04-09 21:59:56 UTC) #20
pval...(no longer on Chromium)
https://codereview.chromium.org/998373004/diff/140001/sync/sync_tests.gypi File sync/sync_tests.gypi (right): https://codereview.chromium.org/998373004/diff/140001/sync/sync_tests.gypi#newcode499 sync/sync_tests.gypi:499: '<@(sync_proto_sources)' On 2015/04/09 21:59:56, Nicolas Zea wrote: > On ...
5 years, 8 months ago (2015-04-09 22:04:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/998373004/180001
5 years, 8 months ago (2015-04-09 22:43:01 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/998373004/200001
5 years, 8 months ago (2015-04-09 23:30:23 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:200001)
5 years, 8 months ago (2015-04-10 01:12:34 UTC) #29
commit-bot: I haz the power
5 years, 8 months ago (2015-04-10 01:14:02 UTC) #30
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/cc3d8cbe481e8f21341d8006a8f62a8915343ae6
Cr-Commit-Position: refs/heads/master@{#324558}

Powered by Google App Engine
This is Rietveld 408576698