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

Issue 2687573002: [Android Webview] Refactor LoadUrlTest and work on embedded_test_server custom handler (Closed)

Created:
3 years, 10 months ago by shenghuazhang
Modified:
3 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, android-webview-reviews_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

[Android Webview] Refactor LoadUrlTest and work on embedded_test_server custom handler to support the java code. Some tests in LoadUrlTest needs embedded_test_server custom handler. Here to refactor the custom handler related tests, and implement custom handler in embedded_test_server native code, and make it support java code. (See bug 686247) BUG=686247 Review-Url: https://codereview.chromium.org/2687573002 Cr-Commit-Position: refs/heads/master@{#479227} Committed: https://chromium.googlesource.com/chromium/src/+/2b2fdbb4b96e498a7100bc07738f5406555bf466

Patch Set 1 #

Total comments: 1

Patch Set 2 : discussing patch #

Total comments: 1

Patch Set 3 : discussion patch #

Total comments: 1

Patch Set 4 : discussion patch #

Total comments: 3

Patch Set 5 : "No implementation found for native methods" #

Patch Set 6 : ready #

Total comments: 28

Patch Set 7 : John comment & url encode #

Total comments: 34

Patch Set 8 : John comment #

Total comments: 5

Patch Set 9 : sgurun comment #

Total comments: 33

Patch Set 10 : sgurun comment #

Total comments: 1

Patch Set 11 : Rebase master #

Patch Set 12 : Convert long long to int64_t #

Patch Set 13 : add 'net_test_support_apk' in aw/test/BUILD.gn #

Patch Set 14 : rebase #

Patch Set 15 : Change AwETS intent class name #

Unified diffs Side-by-side diffs Delta from patch set Stats (+765 lines, -190 lines) Patch
M android_webview/javatests/src/org/chromium/android_webview/test/AcceptLanguageTest.java View 1 2 3 4 5 6 7 6 chunks +10 lines, -18 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwContentsTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +2 lines, -6 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwSettingsTest.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +1 line, -3 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/AwTestBase.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +11 lines, -0 lines 0 comments Download
M android_webview/javatests/src/org/chromium/android_webview/test/LoadUrlTest.java View 1 2 3 4 5 6 7 8 9 10 chunks +136 lines, -156 lines 0 comments Download
M android_webview/test/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 2 chunks +5 lines, -1 line 0 comments Download
A android_webview/test/embedded_test_server/BUILD.gn View 1 2 3 4 5 6 7 1 chunk +72 lines, -0 lines 0 comments Download
A android_webview/test/embedded_test_server/aw_embedded_test_server.h View 1 2 3 4 5 6 7 1 chunk +18 lines, -0 lines 0 comments Download
A android_webview/test/embedded_test_server/aw_embedded_test_server.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +240 lines, -0 lines 0 comments Download
A android_webview/test/embedded_test_server/aw_test_entry_point.cc View 1 2 3 4 5 6 7 1 chunk +17 lines, -0 lines 0 comments Download
A android_webview/test/embedded_test_server/aw_test_jni_onload.h View 1 2 3 4 5 6 7 8 9 1 chunk +19 lines, -0 lines 0 comments Download
A android_webview/test/embedded_test_server/aw_test_jni_onload.cc View 1 2 3 4 5 6 7 8 9 1 chunk +35 lines, -0 lines 0 comments Download
A android_webview/test/embedded_test_server/java/AndroidManifest.xml View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +27 lines, -0 lines 0 comments Download
A android_webview/test/embedded_test_server/java/src/org/chromium/android_webview/test/AwEmbeddedTestServer.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +49 lines, -0 lines 0 comments Download
A android_webview/test/embedded_test_server/java/src/org/chromium/android_webview/test/AwEmbeddedTestServerImpl.java View 1 2 3 4 5 6 7 1 chunk +40 lines, -0 lines 0 comments Download
A android_webview/test/embedded_test_server/java/src/org/chromium/android_webview/test/AwEmbeddedTestServerService.java View 1 2 3 4 5 6 7 1 chunk +19 lines, -0 lines 0 comments Download
M net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServer.java View 1 2 3 4 5 6 7 8 9 10 11 12 13 3 chunks +25 lines, -3 lines 0 comments Download
M net/test/android/javatests/src/org/chromium/net/test/EmbeddedTestServerImpl.java View 1 2 3 4 5 6 7 2 chunks +18 lines, -1 line 0 comments Download
M net/test/android/javatests/src/org/chromium/net/test/IEmbeddedTestServerInterface.aidl View 1 1 chunk +1 line, -1 line 0 comments Download
A net/test/android/javatests/src/org/chromium/net/test/OWNERS View 1 chunk +2 lines, -0 lines 0 comments Download
M net/test/embedded_test_server/android/embedded_test_server_android.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M net/test/embedded_test_server/android/embedded_test_server_android.cc View 1 2 3 4 5 6 7 4 chunks +14 lines, -1 line 0 comments Download

Messages

Total messages: 50 (23 generated)
shenghuazhang
This CL intends to add an AWEmbeddedTestServer.java, which could add custom handlers for android webview ...
3 years, 10 months ago (2017-02-08 00:51:34 UTC) #2
jbudorick
hmm, this isn't quite what I had in mind, but you've got some interesting ideas ...
3 years, 10 months ago (2017-02-08 01:11:43 UTC) #3
shenghuazhang
On 2017/02/08 01:11:43, jbudorick wrote: > hmm, this isn't quite what I had in mind, ...
3 years, 10 months ago (2017-02-11 02:33:44 UTC) #4
shenghuazhang
@john, can you please look into the patch 4? https://codereview.chromium.org/2687573002/diff/20001/android_webview/embeddedtestserver/aw_embedded_test_server_android.cc File android_webview/embeddedtestserver/aw_embedded_test_server_android.cc (right): https://codereview.chromium.org/2687573002/diff/20001/android_webview/embeddedtestserver/aw_embedded_test_server_android.cc#newcode79 android_webview/embeddedtestserver/aw_embedded_test_server_android.cc:79: ...
3 years, 9 months ago (2017-03-04 00:22:21 UTC) #5
sgurun-gerrit only
https://codereview.chromium.org/2687573002/diff/60001/net/test/embedded_test_server/android/embedded_test_server_android.cc File net/test/embedded_test_server/android/embedded_test_server_android.cc (right): https://codereview.chromium.org/2687573002/diff/60001/net/test/embedded_test_server/android/embedded_test_server_android.cc#newcode7 net/test/embedded_test_server/android/embedded_test_server_android.cc:7: #include "android_webview/embeddedtestserver/custom_handlers.h" On 2017/03/04 00:22:21, shenghuazhang wrote: > Shows ...
3 years, 9 months ago (2017-03-06 18:35:17 UTC) #6
jbudorick
https://codereview.chromium.org/2687573002/diff/60001/net/test/embedded_test_server/android/embedded_test_server_android.cc File net/test/embedded_test_server/android/embedded_test_server_android.cc (right): https://codereview.chromium.org/2687573002/diff/60001/net/test/embedded_test_server/android/embedded_test_server_android.cc#newcode7 net/test/embedded_test_server/android/embedded_test_server_android.cc:7: #include "android_webview/embeddedtestserver/custom_handlers.h" On 2017/03/06 18:35:17, sgurun wrote: > On ...
3 years, 9 months ago (2017-03-06 18:36:45 UTC) #7
shenghuazhang
Patch #5 works and is ready to be reviewed. The structure of it is: 1. ...
3 years, 9 months ago (2017-03-09 00:06:00 UTC) #8
jbudorick
https://codereview.chromium.org/2687573002/diff/100001/android_webview/embeddedtestserver/aw_test_jni_onload.cc File android_webview/embeddedtestserver/aw_test_jni_onload.cc (right): https://codereview.chromium.org/2687573002/diff/100001/android_webview/embeddedtestserver/aw_test_jni_onload.cc#newcode14 android_webview/embeddedtestserver/aw_test_jni_onload.cc:14: namespace net { This should be android_webvew::test, not net::test. ...
3 years, 9 months ago (2017-03-09 02:00:48 UTC) #9
shenghuazhang
Refactored code based on John's comment. +Phajdan Hi Phajdan, this CL adds custom handlers to ...
3 years, 9 months ago (2017-03-13 18:48:15 UTC) #11
jbudorick
https://codereview.chromium.org/2687573002/diff/120001/android_webview/test/embeddedtestserver/BUILD.gn File android_webview/test/embeddedtestserver/BUILD.gn (right): https://codereview.chromium.org/2687573002/diff/120001/android_webview/test/embeddedtestserver/BUILD.gn#newcode1 android_webview/test/embeddedtestserver/BUILD.gn:1: # Copyright 2017 The Chromium Authors. All rights reserved. ...
3 years, 9 months ago (2017-03-13 23:32:54 UTC) #12
shenghuazhang
https://codereview.chromium.org/2687573002/diff/120001/android_webview/test/embeddedtestserver/BUILD.gn File android_webview/test/embeddedtestserver/BUILD.gn (right): https://codereview.chromium.org/2687573002/diff/120001/android_webview/test/embeddedtestserver/BUILD.gn#newcode1 android_webview/test/embeddedtestserver/BUILD.gn:1: # Copyright 2017 The Chromium Authors. All rights reserved. ...
3 years, 9 months ago (2017-03-17 01:07:16 UTC) #13
sgurun-gerrit only
looked only a small portion. https://codereview.chromium.org/2687573002/diff/140001/android_webview/javatests/src/org/chromium/android_webview/test/LoadUrlTest.java File android_webview/javatests/src/org/chromium/android_webview/test/LoadUrlTest.java (right): https://codereview.chromium.org/2687573002/diff/140001/android_webview/javatests/src/org/chromium/android_webview/test/LoadUrlTest.java#newcode163 android_webview/javatests/src/org/chromium/android_webview/test/LoadUrlTest.java:163: validateHeadersValue(awContents, contentsClient, extraHeaders, false); ...
3 years, 9 months ago (2017-03-17 08:03:03 UTC) #14
shenghuazhang
@sgurun Patch #9 refactored all tests of LoadUrlTest.java which used 'apache' package. Please have a ...
3 years, 9 months ago (2017-03-23 01:26:16 UTC) #15
sgurun-gerrit only
thanks for working on this. I would be happier if there was a way to ...
3 years, 8 months ago (2017-03-29 18:19:27 UTC) #16
shenghuazhang
Thanks for the suggestion! Refactored the test case and handler by verifying title instead of ...
3 years, 8 months ago (2017-04-11 01:38:27 UTC) #17
sgurun-gerrit only
lgtm
3 years, 8 months ago (2017-04-21 23:28:12 UTC) #20
shenghuazhang
Hi @phajdan.jr, can you please have a review on the //net project? Thanks!
3 years, 8 months ago (2017-04-21 23:37:06 UTC) #21
Paweł Hajdan Jr.
net/test LGTM
3 years, 8 months ago (2017-04-26 07:48:08 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/2687573002/200001
3 years, 8 months ago (2017-04-26 20:35:10 UTC) #25
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/439815)
3 years, 8 months ago (2017-04-26 21:28:23 UTC) #27
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/2687573002/220001
3 years, 8 months ago (2017-04-27 01:02:29 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_ozone_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_ozone_rel_ng/builds/371286)
3 years, 8 months ago (2017-04-27 02:20:32 UTC) #32
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/2687573002/220001
3 years, 7 months ago (2017-04-28 18:26:02 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_tsan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_tsan_rel_ng/builds/63722)
3 years, 7 months ago (2017-04-28 19:49:35 UTC) #36
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/2687573002/260001
3 years, 6 months ago (2017-06-13 20:50:29 UTC) #43
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/2687573002/280001
3 years, 6 months ago (2017-06-13 23:00:06 UTC) #47
commit-bot: I haz the power
3 years, 6 months ago (2017-06-14 00:30:54 UTC) #50
Message was sent while issue was closed.
Committed patchset #15 (id:280001) as
https://chromium.googlesource.com/chromium/src/+/2b2fdbb4b96e498a7100bc07738f...

Powered by Google App Engine
This is Rietveld 408576698