Description was changed from ========== [Cronet] Clean up tests ========== to ========== [Cronet] Clean up ...
3 years, 7 months ago
(2017-05-18 18:02:54 UTC)
#1
Description was changed from
==========
[Cronet] Clean up tests
==========
to
==========
[Cronet] Clean up tests
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
==========
pauljensen
Description was changed from ========== [Cronet] Clean up tests CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester ========== to ========== [Cronet] Clean ...
3 years, 7 months ago
(2017-05-22 13:47:45 UTC)
#2
Description was changed from
==========
[Cronet] Clean up tests
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
==========
to
==========
[Cronet] Clean up tests
Remove most of CronetTestFramework. The command-line-args options were not
saving lines of code (evident in the net reduction in lines of code in this
CL) and were adding a layer of abstraction that complicated tests.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
==========
pauljensen
Description was changed from ========== [Cronet] Clean up tests Remove most of CronetTestFramework. The command-line-args ...
3 years, 7 months ago
(2017-05-22 14:22:51 UTC)
#3
Description was changed from
==========
[Cronet] Clean up tests
Remove most of CronetTestFramework. The command-line-args options were not
saving lines of code (evident in the net reduction in lines of code in this
CL) and were adding a layer of abstraction that complicated tests.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
==========
to
==========
[Cronet] Clean up tests
Remove most of CronetTestFramework. Cronet tests haven't passing options
on the command line for a long time so remove the command-line-args
abstraction layer. Saves 250+ lines of code.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
==========
pauljensen
Description was changed from ========== [Cronet] Clean up tests Remove most of CronetTestFramework. Cronet tests ...
3 years, 7 months ago
(2017-05-22 16:02:07 UTC)
#4
Description was changed from
==========
[Cronet] Clean up tests
Remove most of CronetTestFramework. Cronet tests haven't passing options
on the command line for a long time so remove the command-line-args
abstraction layer. Saves 250+ lines of code.
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
==========
to
==========
[Cronet] Clean up tests
Remove most of CronetTestFramework. Cronet tests haven't passing options
on the command line for a long time so remove the command-line-args
abstraction layer. Saves 250+ lines of code.
BUG=547160
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
==========
Thanks for doing this! https://codereview.chromium.org/2892013002/diff/120001/components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamQuicTest.java File components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamQuicTest.java (right): https://codereview.chromium.org/2892013002/diff/120001/components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamQuicTest.java#newcode372 components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamQuicTest.java:372: startCronetTestFrameworkWithCronetEngineBuilder(builder); Why does this one ...
3 years, 7 months ago
(2017-05-23 18:12:13 UTC)
#6
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamQuicTest.java File components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamQuicTest.java (right): https://codereview.chromium.org/2892013002/diff/120001/components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamQuicTest.java#newcode372 components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamQuicTest.java:372: startCronetTestFrameworkWithCronetEngineBuilder(builder); On 2017/05/23 18:12:12, mgersh wrote: > Why does ...
3 years, 7 months ago
(2017-05-25 15:15:15 UTC)
#7
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
File
components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamQuicTest.java
(right):
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamQuicTest.java:372:
startCronetTestFrameworkWithCronetEngineBuilder(builder);
On 2017/05/23 18:12:12, mgersh wrote:
> Why does this one still need the framework?
Done.
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
File
components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamTest.java
(right):
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamTest.java:177:
createJavaEngineBuilder().build().newBidirectionalStreamBuilder(
On 2017/05/23 18:12:12, mgersh wrote:
> It looks like the point of this method is that it's called after the
> CronetEngine is already created, so using mCronetEngine here should work, and
if
> it doesn't that's a bug.
Previously startCronetTestFrameworkWithUrlAndCronetEngineBuilder() was setting
mCronetTestFramework to mTestFramework, and CronetTestBase.runTest() was
swapping mTestFramework.mCronetEngine for a JavaCronetEngine. I removed the
call to startCronetTestFrameworkWithUrlAndCronetEngineBuilder() so this swap is
no longer happening, so mCronetEngine will be a CronetUrlRequestContext not a
JavaCronetEngine instance. To keep this test testing what it was designed to
test I manually create a JavaCronetEngine here.
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
File
components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java
(right):
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java:179:
* Sets the {@link UrlStreamHandlerFactory} from {@code cronetEngine}. This
should be called
On 2017/05/23 18:12:13, mgersh wrote:
> nit: Url... -> URL...
Done.
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java:180:
* during setup() and is installed by {@link runTest()} as the default when
Cronet is tested.
On 2017/05/23 18:12:13, mgersh wrote:
> nit: setup() -> setUp()
Done.
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
File
components/cronet/android/test/javatests/src/org/chromium/net/CronetUrlRequestContextTest.java
(right):
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
components/cronet/android/test/javatests/src/org/chromium/net/CronetUrlRequestContextTest.java:893:
private CronetEngine createCronetEngine(int cacheType) {
On 2017/05/23 18:12:13, mgersh wrote:
> Since this is now used in a test earlier in the file too, it would make more
> sense near the beginning of the file, and might want a more descriptive name
> like createCronetEngineWithCache or something so it's clear why it's used only
> in a few tests.
Done.
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
components/cronet/android/test/javatests/src/org/chromium/net/CronetUrlRequestContextTest.java:896:
enableDiskCache(builder);
On 2017/05/23 18:12:13, mgersh wrote:
> This way of separating things is a little strange. Instead of having an
> enableDiskCache() that sets the storage path and then does the same thing as
the
> else case, I'd prefer doing just the setStoragePath() in the if.
Done.
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
File components/cronet/android/test/javatests/src/org/chromium/net/PkpTest.java
(right):
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
components/cronet/android/test/javatests/src/org/chromium/net/PkpTest.java:406:
private void startCronetFramework() {
On 2017/05/23 18:12:13, mgersh wrote:
> It's not using a Framework anymore, so this could be startCronetEngine
instead,
> or just delete it.
Done.
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
File
components/cronet/android/test/src/org/chromium/net/CronetTestFramework.java
(right):
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
components/cronet/android/test/src/org/chromium/net/CronetTestFramework.java:90:
public void startNetLog() {
On 2017/05/23 18:12:13, mgersh wrote:
> This class is kind of a strange combination of things: it can create a
> CronetEngine with some nice default settings, it can start a netlog but only
if
> you used it for the default CronetEngine settings, and it has some static
> methods related to storage. In my ideal world it would all live in
> CronetTestBase. Most of that could be a future cleanup, but I think it's worth
> moving the netlog stuff now since this refactor makes those methods not usable
> for a lot of tests where you could previously use them.
Done, netlog stuff was actually dead, so I just moved the rest into
CronetTestBase.
mgersh
lgtm once the last few things are fixed. Looks like the trybot failure is just ...
3 years, 7 months ago
(2017-05-25 18:11:17 UTC)
#8
lgtm once the last few things are fixed. Looks like the trybot failure is just a
stray import.
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
File
components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamTest.java
(right):
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
components/cronet/android/test/javatests/src/org/chromium/net/BidirectionalStreamTest.java:177:
createJavaEngineBuilder().build().newBidirectionalStreamBuilder(
On 2017/05/25 15:15:14, pauljensen wrote:
> On 2017/05/23 18:12:12, mgersh wrote:
> > It looks like the point of this method is that it's called after the
> > CronetEngine is already created, so using mCronetEngine here should work,
and
> if
> > it doesn't that's a bug.
>
> Previously startCronetTestFrameworkWithUrlAndCronetEngineBuilder() was setting
> mCronetTestFramework to mTestFramework, and CronetTestBase.runTest() was
> swapping mTestFramework.mCronetEngine for a JavaCronetEngine. I removed the
> call to startCronetTestFrameworkWithUrlAndCronetEngineBuilder() so this swap
is
> no longer happening, so mCronetEngine will be a CronetUrlRequestContext not a
> JavaCronetEngine instance. To keep this test testing what it was designed to
> test I manually create a JavaCronetEngine here.
Acknowledged.
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
File
components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java
(right):
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java:179:
* Sets the {@link UrlStreamHandlerFactory} from {@code cronetEngine}. This
should be called
On 2017/05/25 15:15:14, pauljensen wrote:
> On 2017/05/23 18:12:13, mgersh wrote:
> > nit: Url... -> URL...
>
> Done.
This and the one below aren't actually done?
pauljensen
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java File components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java (right): https://codereview.chromium.org/2892013002/diff/120001/components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java#newcode179 components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java:179: * Sets the {@link UrlStreamHandlerFactory} from {@code cronetEngine}. This ...
3 years, 7 months ago
(2017-05-26 00:14:03 UTC)
#9
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
File
components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java
(right):
https://codereview.chromium.org/2892013002/diff/120001/components/cronet/andr...
components/cronet/android/test/javatests/src/org/chromium/net/CronetTestBase.java:179:
* Sets the {@link UrlStreamHandlerFactory} from {@code cronetEngine}. This
should be called
On 2017/05/25 18:11:16, mgersh wrote:
> On 2017/05/25 15:15:14, pauljensen wrote:
> > On 2017/05/23 18:12:13, mgersh wrote:
> > > nit: Url... -> URL...
> >
> > Done.
>
> This and the one below aren't actually done?
Done.
pauljensen
The CQ bit was checked by pauljensen@chromium.org
3 years, 7 months ago
(2017-05-26 00:23:28 UTC)
#10
CQ is committing da patch. Bot data: {"patchset_id": 180001, "attempt_start_ts": 1495758208699900, "parent_rev": "c08b94e9b264f92b5478462b4846fa46ae1e1b9d", "commit_rev": "a669662d38b1c4a8071ea4cde7a904b2703e0e71"}
3 years, 7 months ago
(2017-05-26 03:12:08 UTC)
#13
CQ is committing da patch.
Bot data: {"patchset_id": 180001, "attempt_start_ts": 1495758208699900,
"parent_rev": "c08b94e9b264f92b5478462b4846fa46ae1e1b9d", "commit_rev":
"a669662d38b1c4a8071ea4cde7a904b2703e0e71"}
commit-bot: I haz the power
Description was changed from ========== [Cronet] Clean up tests Remove most of CronetTestFramework. Cronet tests ...
3 years, 7 months ago
(2017-05-26 03:12:20 UTC)
#14
Message was sent while issue was closed.
Description was changed from
==========
[Cronet] Clean up tests
Remove most of CronetTestFramework. Cronet tests haven't passing options
on the command line for a long time so remove the command-line-args
abstraction layer. Saves 250+ lines of code.
BUG=547160
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
==========
to
==========
[Cronet] Clean up tests
Remove most of CronetTestFramework. Cronet tests haven't passing options
on the command line for a long time so remove the command-line-args
abstraction layer. Saves 250+ lines of code.
BUG=547160
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.android:android_cronet_tester
Review-Url: https://codereview.chromium.org/2892013002
Cr-Commit-Position: refs/heads/master@{#474894}
Committed:
https://chromium.googlesource.com/chromium/src/+/a669662d38b1c4a8071ea4cde7a9...
==========
commit-bot: I haz the power
Committed patchset #10 (id:180001) as https://chromium.googlesource.com/chromium/src/+/a669662d38b1c4a8071ea4cde7a904b2703e0e71
3 years, 7 months ago
(2017-05-26 03:12:21 UTC)
#15
Issue 2892013002: [Cronet] Clean up tests
(Closed)
Created 3 years, 7 months ago by pauljensen
Modified 3 years, 7 months ago
Reviewers: mgersh
Base URL:
Comments: 19