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

Issue 2903493002: NetInfo network quality extension: Add callbacks and Layout tests (Closed)

Created:
3 years, 7 months ago by tbansal1
Modified:
3 years, 6 months ago
Reviewers:
haraken, kinuko, dcheng, foolip, bashi
CC:
chromium-reviews, caseq+blink_chromium.org, nessy, pfeldman+blink_chromium.org, mlamouri+watch-blink_chromium.org, blink-reviews-html_chromium.org, gasubic, fs, eric.carlson_apple.com, haraken, feature-media-reviews_chromium.org, dglazkov+blink, apavlov+blink_chromium.org, lushnikov+blink_chromium.org, devtools-reviews_chromium.org, blink-reviews, Srirama, kinuko+watch, jkarlin+watch_chromium.org, kozyatinskiy+blink_chromium.org, jkarlin
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

NetInfo network quality extension: Add callbacks and Layout tests "change" event is fired from NetworkInformation.cpp when there is a change in the network quality. Also, layout tests have been added for the network quality extension to the NetInfo API. BUG=725282, 726762 Review-Url: https://codereview.chromium.org/2903493002 Cr-Commit-Position: refs/heads/master@{#476595} Committed: https://chromium.googlesource.com/chromium/src/+/f51122ff533e752a86a27193ca7539c450b3670e

Patch Set 1 : ps #

Total comments: 14

Patch Set 2 : Rebased, Use enum instead of string #

Total comments: 6

Patch Set 3 : haraken comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+410 lines, -33 lines) Patch
M third_party/WebKit/LayoutTests/FlagExpectations/enable-blink-features=LayoutNG View 1 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/netinfo/basic-operation.html View 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/netinfo/basic-operation-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/netinfo/estimate-basic-operation.html View 1 chunk +10 lines, -4 lines 0 comments Download
A + third_party/WebKit/LayoutTests/netinfo/estimate-basic-operation-expected.txt View 1 chunk +8 lines, -2 lines 0 comments Download
A third_party/WebKit/LayoutTests/netinfo/estimate-multiple-frames.html View 1 chunk +68 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/netinfo/estimate-multiple-frames-expected.txt View 1 chunk +9 lines, -0 lines 0 comments Download
A + third_party/WebKit/LayoutTests/netinfo/estimate-web-worker.html View 1 chunk +9 lines, -7 lines 0 comments Download
A third_party/WebKit/LayoutTests/netinfo/estimate-web-worker-expected.txt View 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/netinfo/network-quality.html View 1 chunk +40 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/netinfo/network-quality-expected.txt View 1 chunk +36 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/netinfo/resources/netinfo_common.js View 1 chunk +7 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/netinfo/resources/web-worker.js View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/netinfo/type-change-no-listener.html View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/netinfo/type-change-no-listener-expected.txt View 1 chunk +3 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/netinfo/unregister-during-event.html View 2 chunks +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/netinfo/unregister-during-event-expected.txt View 1 chunk +6 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/netinfo/web-worker.html View 1 chunk +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMediaElementTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/inspector/InspectorNetworkAgent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.h View 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.cpp View 1 2 1 chunk +29 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/testing/Internals.idl View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/modules/netinfo/NetworkInformation.cpp View 1 chunk +11 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/platform/network/NetworkStateNotifier.h View 1 chunk +6 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp View 2 chunks +24 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/network/NetworkStateNotifierTest.cpp View 3 chunks +88 lines, -3 lines 0 comments Download

Messages

Total messages: 99 (68 generated)
tbansal1
dcheng: third_party/WebKit/Source/core/* haraken: third_party/WebKit/Source/modules/*, third_party/WebKit/Source/platform/* Thanks.
3 years, 7 months ago (2017-05-26 17:25:38 UTC) #44
tbansal1
dcheng: third_party/WebKit/Source/core/* haraken: third_party/WebKit/Source/modules/*, third_party/WebKit/Source/platform/* Thanks.
3 years, 7 months ago (2017-05-26 17:26:09 UTC) #45
tbansal1
dcheng: third_party/WebKit/Source/core/* haraken: third_party/WebKit/Source/modules/*, third_party/WebKit/Source/platform/* Thanks.
3 years, 7 months ago (2017-05-26 17:26:09 UTC) #46
tbansal1
dcheng: third_party/WebKit/Source/core/* haraken: third_party/WebKit/Source/modules/*, third_party/WebKit/Source/platform/* Thanks.
3 years, 7 months ago (2017-05-26 17:26:09 UTC) #47
tbansal1
dcheng: third_party/WebKit/Source/core/* haraken: third_party/WebKit/Source/modules/*, third_party/WebKit/Source/platform/* Thanks.
3 years, 7 months ago (2017-05-26 17:26:10 UTC) #48
dcheng
https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl File third_party/WebKit/Source/core/testing/Internals.idl (right): https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl#newcode317 third_party/WebKit/Source/core/testing/Internals.idl:317: [RaisesException] void setNetworkQualityInfoOverride(DOMString effective_type, unsigned long transport_rtt_msec, double downlink_throughput_mbps); ...
3 years, 6 months ago (2017-05-27 08:47:47 UTC) #51
tbansal1
ptal. Thanks for the comments. https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl File third_party/WebKit/Source/core/testing/Internals.idl (right): https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl#newcode317 third_party/WebKit/Source/core/testing/Internals.idl:317: [RaisesException] void setNetworkQualityInfoOverride(DOMString effective_type, ...
3 years, 6 months ago (2017-05-28 04:32:16 UTC) #52
haraken
+bashi https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl File third_party/WebKit/Source/core/testing/Internals.idl (right): https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl#newcode317 third_party/WebKit/Source/core/testing/Internals.idl:317: [RaisesException] void setNetworkQualityInfoOverride(DOMString effective_type, unsigned long transport_rtt_msec, double ...
3 years, 6 months ago (2017-05-29 01:08:15 UTC) #54
tbansal1
https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl File third_party/WebKit/Source/core/testing/Internals.idl (right): https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl#newcode317 third_party/WebKit/Source/core/testing/Internals.idl:317: [RaisesException] void setNetworkQualityInfoOverride(DOMString effective_type, unsigned long transport_rtt_msec, double downlink_throughput_mbps); ...
3 years, 6 months ago (2017-05-29 04:45:22 UTC) #55
tbansal1
https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl File third_party/WebKit/Source/core/testing/Internals.idl (right): https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl#newcode317 third_party/WebKit/Source/core/testing/Internals.idl:317: [RaisesException] void setNetworkQualityInfoOverride(DOMString effective_type, unsigned long transport_rtt_msec, double downlink_throughput_mbps); ...
3 years, 6 months ago (2017-05-29 04:53:29 UTC) #56
dcheng
https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp File third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp (right): https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp#newcode166 third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp:166: void NetworkStateNotifier::SetNetworkQualityInfoOverride( On 2017/05/28 04:32:16, tbansal1 wrote: > On ...
3 years, 6 months ago (2017-05-29 08:06:15 UTC) #57
bashi
https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl File third_party/WebKit/Source/core/testing/Internals.idl (right): https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl#newcode317 third_party/WebKit/Source/core/testing/Internals.idl:317: [RaisesException] void setNetworkQualityInfoOverride(DOMString effective_type, unsigned long transport_rtt_msec, double downlink_throughput_mbps); ...
3 years, 6 months ago (2017-05-29 10:43:32 UTC) #58
tbansal1
On 2017/05/29 10:43:32, bashi wrote: > https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl > File third_party/WebKit/Source/core/testing/Internals.idl (right): > > https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl#newcode317 > ...
3 years, 6 months ago (2017-05-29 19:36:12 UTC) #59
kinuko
https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp File third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp (right): https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp#newcode166 third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp:166: void NetworkStateNotifier::SetNetworkQualityInfoOverride( On 2017/05/29 08:06:14, dcheng wrote: > On ...
3 years, 6 months ago (2017-05-30 02:38:22 UTC) #60
dcheng
On 2017/05/30 02:38:22, kinuko wrote: > https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp > File third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp > (right): > > https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp#newcode166 ...
3 years, 6 months ago (2017-05-30 03:24:17 UTC) #61
tbansal1
On 2017/05/30 03:24:17, dcheng wrote: > On 2017/05/30 02:38:22, kinuko wrote: > > > https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp ...
3 years, 6 months ago (2017-05-30 04:10:59 UTC) #62
kinuko
On 2017/05/30 04:10:59, tbansal1 wrote: > On 2017/05/30 03:24:17, dcheng wrote: > > On 2017/05/30 ...
3 years, 6 months ago (2017-05-30 04:50:31 UTC) #63
tbansal1
ptal. Thanks. https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp File third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp (right): https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp#newcode166 third_party/WebKit/Source/platform/network/NetworkStateNotifier.cpp:166: void NetworkStateNotifier::SetNetworkQualityInfoOverride( On 2017/05/30 02:38:22, kinuko wrote: ...
3 years, 6 months ago (2017-05-30 21:57:20 UTC) #64
tbansal1
https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl File third_party/WebKit/Source/core/testing/Internals.idl (right): https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl#newcode317 third_party/WebKit/Source/core/testing/Internals.idl:317: [RaisesException] void setNetworkQualityInfoOverride(DOMString effective_type, unsigned long transport_rtt_msec, double downlink_throughput_mbps); ...
3 years, 6 months ago (2017-05-31 04:16:02 UTC) #65
foolip
https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/LayoutTests/netinfo/network-quality.html File third_party/WebKit/LayoutTests/netinfo/network-quality.html (right): https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/LayoutTests/netinfo/network-quality.html#newcode36 third_party/WebKit/LayoutTests/netinfo/network-quality.html:36: internals.setNetworkQualityInfoOverride(values[i][0], values[i][1], values[i][2]); I haven't looked at the whole ...
3 years, 6 months ago (2017-05-31 14:31:16 UTC) #67
tbansal1
On 2017/05/31 14:31:16, foolip wrote: > https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/LayoutTests/netinfo/network-quality.html > File third_party/WebKit/LayoutTests/netinfo/network-quality.html (right): > > https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/LayoutTests/netinfo/network-quality.html#newcode36 > ...
3 years, 6 months ago (2017-05-31 17:06:29 UTC) #68
tbansal1
dcheng, haraken: ping. Thanks.
3 years, 6 months ago (2017-05-31 17:06:40 UTC) #69
dcheng
On 2017/05/31 17:06:40, tbansal1 wrote: > dcheng, haraken: ping. Thanks. I don't see the new ...
3 years, 6 months ago (2017-05-31 17:30:23 UTC) #70
dcheng
On 2017/05/31 17:30:23, dcheng wrote: > On 2017/05/31 17:06:40, tbansal1 wrote: > > dcheng, haraken: ...
3 years, 6 months ago (2017-05-31 17:31:30 UTC) #71
tbansal1
On 2017/05/31 17:31:30, dcheng wrote: > On 2017/05/31 17:30:23, dcheng wrote: > > On 2017/05/31 ...
3 years, 6 months ago (2017-05-31 17:33:51 UTC) #72
bashi
On 2017/05/31 04:16:02, tbansal1 wrote: > https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl > File third_party/WebKit/Source/core/testing/Internals.idl (right): > > https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl#newcode317 > ...
3 years, 6 months ago (2017-06-01 00:05:28 UTC) #73
tbansal1
haraken: ptal. Thanks everyone!! https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl File third_party/WebKit/Source/core/testing/Internals.idl (right): https://codereview.chromium.org/2903493002/diff/170001/third_party/WebKit/Source/core/testing/Internals.idl#newcode317 third_party/WebKit/Source/core/testing/Internals.idl:317: [RaisesException] void setNetworkQualityInfoOverride(DOMString effective_type, unsigned ...
3 years, 6 months ago (2017-06-02 01:24:32 UTC) #83
haraken
LGTM with comments. https://codereview.chromium.org/2903493002/diff/210001/third_party/WebKit/Source/core/testing/NetInfo.cpp File third_party/WebKit/Source/core/testing/NetInfo.cpp (right): https://codereview.chromium.org/2903493002/diff/210001/third_party/WebKit/Source/core/testing/NetInfo.cpp#newcode3 third_party/WebKit/Source/core/testing/NetInfo.cpp:3: // found in the LICENSE file. ...
3 years, 6 months ago (2017-06-02 04:03:57 UTC) #84
tbansal1
https://codereview.chromium.org/2903493002/diff/210001/third_party/WebKit/Source/core/testing/NetInfo.cpp File third_party/WebKit/Source/core/testing/NetInfo.cpp (right): https://codereview.chromium.org/2903493002/diff/210001/third_party/WebKit/Source/core/testing/NetInfo.cpp#newcode3 third_party/WebKit/Source/core/testing/NetInfo.cpp:3: // found in the LICENSE file. On 2017/06/02 04:03:56, ...
3 years, 6 months ago (2017-06-02 04:42:11 UTC) #89
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/2903493002/230001
3 years, 6 months ago (2017-06-02 06:55:59 UTC) #94
commit-bot: I haz the power
3 years, 6 months ago (2017-06-02 07:00:58 UTC) #97
Message was sent while issue was closed.
Committed patchset #3 (id:230001) as
https://chromium.googlesource.com/chromium/src/+/f51122ff533e752a86a27193ca75...

Powered by Google App Engine
This is Rietveld 408576698