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

Issue 1174613002: [Android] Add a Java version of net::test_server::EmbeddedTestServer. (Closed)

Created:
5 years, 6 months ago by jbudorick
Modified:
5 years, 6 months ago
Reviewers:
Yaron, mef
CC:
cbentzel+watch_chromium.org, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android] Add a Java version of net::test_server::EmbeddedTestServer. Notably, this CL does not: - convert ChromeInstrumentationTestRunner's TestHttpServer to use this - convert cronet's NativeTestServer to use this Those can be done separately. BUG=488192 Committed: https://crrev.com/d58755d3bb7ead19d8ad909e4455b14857fe6d10 Cr-Commit-Position: refs/heads/master@{#336159}

Patch Set 1 #

Patch Set 2 : now with compilation #

Total comments: 25

Patch Set 3 : #

Patch Set 4 : #

Total comments: 2

Patch Set 5 : sample use comment + remove unused include #

Patch Set 6 : rebase + copyright header #

Patch Set 7 : add @VisibleForTesting to fix chrome_public_test_apk #

Unified diffs Side-by-side diffs Delta from patch set Stats (+284 lines, -25 lines) Patch
M base/android/java/src/org/chromium/base/ThreadUtils.java View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M net/android/keystore_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M net/net.gyp View 1 2 5 chunks +12 lines, -8 lines 0 comments Download
A net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServer.java View 1 2 3 4 1 chunk +111 lines, -0 lines 0 comments Download
A net/test/android/net_test_jni_onload.h View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
A + net/test/android/net_test_jni_onload.cc View 1 chunk +17 lines, -15 lines 0 comments Download
A net/test/embedded_test_server/android/embedded_test_server_android.h View 1 2 3 1 chunk +51 lines, -0 lines 0 comments Download
A net/test/embedded_test_server/android/embedded_test_server_android.cc View 1 2 3 4 5 1 chunk +71 lines, -0 lines 0 comments Download
M net/test/embedded_test_server/embedded_test_server.h View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (6 generated)
jbudorick
FWIW, I started working on converting the cronet server to use this. Once I started ...
5 years, 6 months ago (2015-06-09 17:29:52 UTC) #2
mef
Thanks for doing this! https://codereview.chromium.org/1174613002/diff/20001/net/net.gyp File net/net.gyp (right): https://codereview.chromium.org/1174613002/diff/20001/net/net.gyp#newcode648 net/net.gyp:648: 'test/spawned_test_server/remote_test_server.cc', it seems that these ...
5 years, 6 months ago (2015-06-17 21:55:56 UTC) #3
jbudorick
re calling X without calling Y: my goal with this is to provide a thin ...
5 years, 6 months ago (2015-06-18 17:44:56 UTC) #4
mef
I think it is probably ok not to have robust safeguards in test utility, but ...
5 years, 6 months ago (2015-06-19 19:26:08 UTC) #5
jbudorick
Your sample use is correct; I've added it to the comments for EmbeddedTestServer. The only ...
5 years, 6 months ago (2015-06-22 22:01:11 UTC) #6
jbudorick
Friendly ping?
5 years, 6 months ago (2015-06-24 15:20:49 UTC) #7
mef
lgtm
5 years, 6 months ago (2015-06-24 15:24:11 UTC) #8
jbudorick
On 2015/06/24 at 15:24:11, mef wrote: > lgtm Thanks!
5 years, 6 months ago (2015-06-24 15:29:10 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1174613002/80001
5 years, 6 months ago (2015-06-24 15:30:28 UTC) #11
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/73600)
5 years, 6 months ago (2015-06-24 15:37:01 UTC) #13
jbudorick
+yfriedman for owners review of base/
5 years, 6 months ago (2015-06-24 22:02:09 UTC) #15
Yaron
On 2015/06/24 22:02:09, jbudorick wrote: > +yfriedman for owners review of base/ lgtm
5 years, 6 months ago (2015-06-25 14:14:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1174613002/120001
5 years, 6 months ago (2015-06-25 14:15:19 UTC) #19
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 6 months ago (2015-06-25 15:22:02 UTC) #20
commit-bot: I haz the power
Patchset 7 (id:??) landed as https://crrev.com/d58755d3bb7ead19d8ad909e4455b14857fe6d10 Cr-Commit-Position: refs/heads/master@{#336159}
5 years, 6 months ago (2015-06-25 15:22:54 UTC) #21
jbudorick
5 years, 6 months ago (2015-06-25 15:43:28 UTC) #22
Message was sent while issue was closed.
A revert of this CL (patchset #7 id:120001) has been created in
https://codereview.chromium.org/1210973002/ by jbudorick@chromium.org.

The reason for reverting is: broke main waterfall:
http://build.chromium.org/p/chromium/builders/Android/builds/42187.

Powered by Google App Engine
This is Rietveld 408576698