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

Issue 295003003: Internals for testing NetInfov3 code (Closed)

Created:
6 years, 7 months ago by jkarlin
Modified:
6 years, 7 months ago
Reviewers:
adamk
CC:
blink-reviews, arv+blink, Inactive, watchdog-blink-watchlist_google.com
Base URL:
https://chromium.googlesource.com/chromium/blink.git@netinfo1
Visibility:
Public.

Description

Patch Set 1 #

Patch Set 2 : Rebase #

Total comments: 5

Patch Set 3 : formatting #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+28 lines, -0 lines) Patch
M Source/core/testing/Internals.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.cpp View 1 2 3 3 chunks +24 lines, -0 lines 0 comments Download
M Source/core/testing/Internals.idl View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (0 generated)
jkarlin
Thanks!
6 years, 7 months ago (2014-05-20 17:22:15 UTC) #1
jkarlin
Ping adamk
6 years, 7 months ago (2014-05-22 15:32:53 UTC) #2
adamk
Sorry, the "DO NOT LAND" warning had me scared to even look at it :) ...
6 years, 7 months ago (2014-05-22 15:40:32 UTC) #3
adamk
Also do be sure to remove the DO NOT LAND warning from the top of ...
6 years, 7 months ago (2014-05-22 15:42:36 UTC) #4
jkarlin
https://codereview.chromium.org/295003003/diff/20001/Source/core/testing/Internals.cpp File Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/295003003/diff/20001/Source/core/testing/Internals.cpp#newcode2358 Source/core/testing/Internals.cpp:2358: networkStateNotifier().setWebConnectionType(webtype); On 2014/05/22 15:40:32, adamk wrote: > It looks ...
6 years, 7 months ago (2014-05-22 17:38:01 UTC) #5
jkarlin
The CQ bit was checked by jkarlin@chromium.org
6 years, 7 months ago (2014-05-23 10:37:34 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jkarlin@chromium.org/295003003/40001
6 years, 7 months ago (2014-05-23 10:37:45 UTC) #7
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 10:37:52 UTC) #8
commit-bot: I haz the power
Failed to apply patch for Source/core/testing/Internals.cpp: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 7 months ago (2014-05-23 10:37:52 UTC) #9
jkarlin
The CQ bit was checked by jkarlin@chromium.org
6 years, 7 months ago (2014-05-23 11:10:36 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jkarlin@chromium.org/295003003/60001
6 years, 7 months ago (2014-05-23 11:10:50 UTC) #11
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 12:39:49 UTC) #12
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 14:07:00 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/8898)
6 years, 7 months ago (2014-05-23 14:07:00 UTC) #14
jkarlin
The CQ bit was checked by jkarlin@chromium.org
6 years, 7 months ago (2014-05-23 14:16:19 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jkarlin@chromium.org/295003003/60001
6 years, 7 months ago (2014-05-23 14:16:48 UTC) #16
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 15:42:58 UTC) #17
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 17:05:47 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/8924)
6 years, 7 months ago (2014-05-23 17:05:47 UTC) #19
jkarlin
The CQ bit was checked by jkarlin@chromium.org
6 years, 7 months ago (2014-05-23 17:13:55 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jkarlin@chromium.org/295003003/60001
6 years, 7 months ago (2014-05-23 17:14:19 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). Please consider checking whether the failures are ...
6 years, 7 months ago (2014-05-23 18:36:23 UTC) #22
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 7 months ago (2014-05-23 19:58:22 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_blink_rel on tryserver.blink (http://build.chromium.org/p/tryserver.blink/builders/win_blink_rel/builds/8964)
6 years, 7 months ago (2014-05-23 19:58:22 UTC) #24
jkarlin
The CQ bit was checked by jkarlin@chromium.org
6 years, 7 months ago (2014-05-23 21:30:29 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jkarlin@chromium.org/295003003/60001
6 years, 7 months ago (2014-05-23 21:31:17 UTC) #26
commit-bot: I haz the power
Change committed as 174718
6 years, 7 months ago (2014-05-23 22:09:33 UTC) #27
adamk
https://codereview.chromium.org/295003003/diff/20001/Source/core/testing/Internals.cpp File Source/core/testing/Internals.cpp (right): https://codereview.chromium.org/295003003/diff/20001/Source/core/testing/Internals.cpp#newcode2358 Source/core/testing/Internals.cpp:2358: networkStateNotifier().setWebConnectionType(webtype); On 2014/05/22 17:38:02, jkarlin wrote: > On 2014/05/22 ...
6 years, 7 months ago (2014-05-23 22:33:57 UTC) #28
jkarlin
6 years, 7 months ago (2014-05-27 13:43:14 UTC) #29
Message was sent while issue was closed.
On 2014/05/23 22:33:57, adamk wrote:
>
https://codereview.chromium.org/295003003/diff/20001/Source/core/testing/Inte...
> File Source/core/testing/Internals.cpp (right):
> 
>
https://codereview.chromium.org/295003003/diff/20001/Source/core/testing/Inte...
> Source/core/testing/Internals.cpp:2358:
> networkStateNotifier().setWebConnectionType(webtype);
> On 2014/05/22 17:38:02, jkarlin wrote:
> > On 2014/05/22 15:40:32, adamk wrote:
> > > It looks to me like this might leak state between tests that happen to run
> in
> > > the same renderer. If so, please add some resetting code to
> > TestRunner::Reset()
> > > to make sure each test starts out with the same value:
> > > 
> > >
> >
>
https://code.google.com/p/chromium/codesearch#chromium/src/content/shell/rend...
> > 
> > Good point that it changes state between runs.  One would expect the network
> > connection type to change with the testing environment anyway.  So layout
> tests
> > that use navigator.connection.type must be agnostic to the initial type.
> 
> Not sure what you mean by "One would expect the network connection type to
> change"...we've had problems with test flakiness where someone got a test to
> pass when initially landed and then test ordering changes later caused it to
> fail. Given that there's a default when the process starts up (at least in
> layout tests), I'd really like that to be enforced by the test runner.
> 
> Or are you saying that due to the state of the machine running these tests,
the
> connection type will change?

Yes, once crrev.com/298803006 lands the connection type will be set to the
host's type.  Assuming anything about this type in a test is a mistake.

> Hmm, I could imagine that. But in that case adding
> an Internals API seems possibly flaky (if the OS decides to send some event
that
> causes us to update our connection type).

True, if the host changes connection type in the middle of a layout test that
uses monitors navigator.connection then a flake could occur. It looks like the
previous NetInfo implementation also had this potential flake
(crrev.com/13820033). The likelihood of hitting the flake is probably quite low
but it still should be taken care of.  I've filed crbug.com/377736.

Powered by Google App Engine
This is Rietveld 408576698