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

Issue 457883002: Use Sync FakeServer in Android tests via custom APK (Closed)

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

Description

Create ChromeSyncShell and ChromeSyncShellTest This CL enables usage of the Sync FakeServer in Android tests. This is done by creating a new ChromeShell-based APK, ChromeSyncShell, and a test APK that instruments it (ChromeSyncShellTest). As part of this CL, previously-disabled tests (SyncTest.java) are re-enabled. However, these tests will not run as part of the Chromium waterfall/trybots as they are not configured to run ChromeSyncShellTest. How to run the tests: 1) Build these targets: chrome_sync_shell_apk chrome_sync_shell_test_apk 2) Run test script build/android/adb_install_apk.py \ --apk=ChromeSyncShell.apk && \ build/android/test_runner.py instrumentation \ --test-apk ChromeSyncShellTest BUG=323265, 348951, 348117 TBR=cpu@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=291190

Patch Set 1 : #

Total comments: 27

Patch Set 2 : #

Total comments: 8

Patch Set 3 : ChromeSyncShell + ChromeSyncShellTest #

Patch Set 4 : add readme #

Total comments: 5

Patch Set 5 : #

Total comments: 4

Patch Set 6 : #

Total comments: 2

Patch Set 7 : #

Patch Set 8 : rebase #

Patch Set 9 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+475 lines, -281 lines) Patch
D chrome/android/host_driven_tests/SyncTest.py View 1 chunk +0 lines, -68 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/sync/ProfileSyncService.java View 2 chunks +14 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/sync/SyncTest.java View 1 2 1 chunk +0 lines, -182 lines 0 comments Download
M chrome/android/shell/java/src/org/chromium/chrome/shell/sync/SyncController.java View 1 chunk +4 lines, -1 line 0 comments Download
A chrome/android/sync_shell/DEPS View 1 2 1 chunk +6 lines, -0 lines 0 comments Download
A + chrome/android/sync_shell/OWNERS View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
A chrome/android/sync_shell/README View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.h View 1 2 1 chunk +24 lines, -0 lines 0 comments Download
A chrome/android/sync_shell/chrome_main_delegate_chrome_sync_shell_android.cc View 1 2 1 chunk +38 lines, -0 lines 0 comments Download
A + chrome/android/sync_shell/java/AndroidManifest.xml View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
A + chrome/android/sync_shell/javatests/AndroidManifest.xml View 1 2 2 chunks +3 lines, -3 lines 0 comments Download
A + chrome/android/sync_shell/javatests/DEPS View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
A chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/FakeServerHelper.java View 1 2 3 4 5 6 1 chunk +123 lines, -0 lines 0 comments Download
A + chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTest.java View 1 2 3 4 5 4 chunks +22 lines, -5 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_android.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/sync/profile_sync_service_android.cc View 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/chrome_shell.gypi View 1 2 5 chunks +80 lines, -17 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download
M sync/sync_tests.gypi View 1 2 3 4 5 6 7 1 chunk +25 lines, -0 lines 0 comments Download
M sync/test/DEPS View 1 chunk +3 lines, -0 lines 0 comments Download
A sync/test/fake_server/android/fake_server_helper_android.h View 1 chunk +37 lines, -0 lines 0 comments Download
A sync/test/fake_server/android/fake_server_helper_android.cc View 1 chunk +52 lines, -0 lines 0 comments Download

Messages

Total messages: 38 (0 generated)
pval...(no longer on Chromium)
I've created a new issue for this. As of mailing, this CL works in that ...
6 years, 4 months ago (2014-08-09 00:48:22 UTC) #1
rlarocque
It's not pretty, but I don't think there's much else you could have done given ...
6 years, 4 months ago (2014-08-09 01:20:00 UTC) #2
pval...(no longer on Chromium)
https://codereview.chromium.org/457883002/diff/40001/chrome/android/shell/DEPS File chrome/android/shell/DEPS (right): https://codereview.chromium.org/457883002/diff/40001/chrome/android/shell/DEPS#newcode12 chrome/android/shell/DEPS:12: "+sync/test/fake_server/android", On 2014/08/09 01:19:59, rlarocque wrote: > On 2014/08/09 ...
6 years, 4 months ago (2014-08-12 01:21:36 UTC) #3
Yaron
https://codereview.chromium.org/457883002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/sync/SyncTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/sync/SyncTest.java (right): https://codereview.chromium.org/457883002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/sync/SyncTest.java#newcode74 chrome/android/javatests/src/org/chromium/chrome/browser/sync/SyncTest.java:74: ThreadUtils.runOnUiThreadBlocking(new Runnable() { On 2014/08/09 01:19:59, rlarocque wrote: > ...
6 years, 4 months ago (2014-08-12 17:22:04 UTC) #4
rlarocque
https://codereview.chromium.org/457883002/diff/40001/chrome/android/shell/chrome_main_delegate_chrome_shell_for_test_android.cc File chrome/android/shell/chrome_main_delegate_chrome_shell_for_test_android.cc (right): https://codereview.chromium.org/457883002/diff/40001/chrome/android/shell/chrome_main_delegate_chrome_shell_for_test_android.cc#newcode29 chrome/android/shell/chrome_main_delegate_chrome_shell_for_test_android.cc:29: return ChromeMainDelegateAndroid::RegisterApplicationNativeMethods(env) && On 2014/08/12 01:21:35, pvalenzuela wrote: > ...
6 years, 4 months ago (2014-08-12 22:02:27 UTC) #5
pval...(no longer on Chromium)
I've addressed some of the comments. PTAL. Some remaining issues to resolve: 1) My first ...
6 years, 4 months ago (2014-08-14 00:35:39 UTC) #6
rlarocque
I don't have much more to offer on this review. I'll stick around and comment ...
6 years, 4 months ago (2014-08-14 00:44:02 UTC) #7
Yaron
https://codereview.chromium.org/457883002/diff/60001/chrome/android/javatests/src/org/chromium/chrome/browser/sync/SyncTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/sync/SyncTest.java (right): https://codereview.chromium.org/457883002/diff/60001/chrome/android/javatests/src/org/chromium/chrome/browser/sync/SyncTest.java#newcode170 chrome/android/javatests/src/org/chromium/chrome/browser/sync/SyncTest.java:170: // unncessary once we have other enabled tests. So ...
6 years, 4 months ago (2014-08-14 22:49:30 UTC) #8
pval...(no longer on Chromium)
Yaron, I think I had a misunderstanding in the plan here. My direction was creating ...
6 years, 4 months ago (2014-08-15 19:12:41 UTC) #9
Yaron
On Fri, Aug 15, 2014 at 12:12 PM, <pvalenzuela@chromium.org> wrote: > Yaron, > > I ...
6 years, 4 months ago (2014-08-15 20:09:46 UTC) #10
pval...(no longer on Chromium)
+cpu and +stevet for OWNERS approval for the DEPS change in chrome/android/sync_shell/DEPS. The sync_shell directory ...
6 years, 4 months ago (2014-08-19 04:01:12 UTC) #11
SteveT
Sorry - don't think I am an OWNER for any of these things.
6 years, 4 months ago (2014-08-19 12:36:51 UTC) #12
rlarocque
https://codereview.chromium.org/457883002/diff/140001/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTestUtil.java File chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTestUtil.java (right): https://codereview.chromium.org/457883002/diff/140001/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTestUtil.java#newcode5 chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTestUtil.java:5: package org.chromium.chrome.browser.sync; Just making sure I understand this: This ...
6 years, 4 months ago (2014-08-19 18:04:19 UTC) #13
pval...(no longer on Chromium)
On 2014/08/19 12:36:51, SteveT wrote: > Sorry - don't think I am an OWNER for ...
6 years, 4 months ago (2014-08-19 18:13:25 UTC) #14
SteveT
Oh I see that now. Sorry, was looking around for the directory itself earlier. LGTM ...
6 years, 4 months ago (2014-08-19 18:36:34 UTC) #15
pval...(no longer on Chromium)
https://codereview.chromium.org/457883002/diff/140001/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTestUtil.java File chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTestUtil.java (right): https://codereview.chromium.org/457883002/diff/140001/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTestUtil.java#newcode5 chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/SyncTestUtil.java:5: package org.chromium.chrome.browser.sync; On 2014/08/19 18:04:19, rlarocque wrote: > Just ...
6 years, 4 months ago (2014-08-19 18:43:22 UTC) #16
pval...(no longer on Chromium)
FYI We had some discussions recently about how to get this CL in quicker before ...
6 years, 4 months ago (2014-08-19 19:08:00 UTC) #17
Yaron
I think we're close. One issue is that I don't believe these apks will be ...
6 years, 4 months ago (2014-08-19 21:21:22 UTC) #18
Yaron
https://codereview.chromium.org/457883002/diff/160001/chrome/android/sync_shell/DEPS File chrome/android/sync_shell/DEPS (right): https://codereview.chromium.org/457883002/diff/160001/chrome/android/sync_shell/DEPS#newcode1 chrome/android/sync_shell/DEPS:1: include_rules = [ let's add an OWNERS file too ...
6 years, 4 months ago (2014-08-19 21:23:19 UTC) #19
pval...(no longer on Chromium)
PTAL https://codereview.chromium.org/457883002/diff/160001/chrome/android/sync_shell/DEPS File chrome/android/sync_shell/DEPS (right): https://codereview.chromium.org/457883002/diff/160001/chrome/android/sync_shell/DEPS#newcode1 chrome/android/sync_shell/DEPS:1: include_rules = [ On 2014/08/19 21:23:19, Yaron wrote: ...
6 years, 4 months ago (2014-08-20 01:55:09 UTC) #20
Yaron
lgtm https://codereview.chromium.org/457883002/diff/180001/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/FakeServerHelper.java File chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/FakeServerHelper.java (right): https://codereview.chromium.org/457883002/diff/180001/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/FakeServerHelper.java#newcode31 chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/FakeServerHelper.java:31: if (sFakeServerHelper == null) { This should probably ...
6 years, 4 months ago (2014-08-20 05:06:25 UTC) #21
pval...(no longer on Chromium)
https://codereview.chromium.org/457883002/diff/180001/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/FakeServerHelper.java File chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/FakeServerHelper.java (right): https://codereview.chromium.org/457883002/diff/180001/chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/FakeServerHelper.java#newcode31 chrome/android/sync_shell/javatests/src/chromium/chrome/browser/sync/FakeServerHelper.java:31: if (sFakeServerHelper == null) { On 2014/08/20 05:06:25, Yaron ...
6 years, 4 months ago (2014-08-20 18:20:42 UTC) #22
rlarocque
lgtm
6 years, 4 months ago (2014-08-20 18:23:27 UTC) #23
pval...(no longer on Chromium)
The CQ bit was checked by pvalenzuela@chromium.org
6 years, 4 months ago (2014-08-20 19:23:57 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pvalenzuela@chromium.org/457883002/220001
6 years, 4 months ago (2014-08-20 19:25:42 UTC) #25
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-20 21:27:16 UTC) #26
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-20 21:30:12 UTC) #27
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/55123)
6 years, 4 months ago (2014-08-20 21:30:13 UTC) #28
pval...(no longer on Chromium)
The CQ bit was checked by pvalenzuela@chromium.org
6 years, 4 months ago (2014-08-20 21:50:10 UTC) #29
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pvalenzuela@chromium.org/457883002/240001
6 years, 4 months ago (2014-08-20 21:52:36 UTC) #30
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-21 00:36:32 UTC) #31
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-21 00:40:34 UTC) #32
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/55354) android_clang_dbg on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/android_clang_dbg/builds/8099)
6 years, 4 months ago (2014-08-21 00:40:35 UTC) #33
rlarocque
The trybots are having a bad day. Their credentials are being rejected by the SVN ...
6 years, 4 months ago (2014-08-21 00:43:49 UTC) #34
rlarocque
On 2014/08/21 00:43:49, rlarocque wrote: > The trybots are having a bad day. Their credentials ...
6 years, 4 months ago (2014-08-21 00:52:22 UTC) #35
pval...(no longer on Chromium)
The CQ bit was checked by pvalenzuela@chromium.org
6 years, 4 months ago (2014-08-21 18:27:13 UTC) #36
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pvalenzuela@chromium.org/457883002/240001
6 years, 4 months ago (2014-08-21 18:31:56 UTC) #37
commit-bot: I haz the power
6 years, 4 months ago (2014-08-21 21:26:50 UTC) #38
Message was sent while issue was closed.
Committed patchset #9 (240001) as 291190

Powered by Google App Engine
This is Rietveld 408576698