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

Issue 298893008: Add WebSocket unittests. (Closed)

Created:
6 years, 7 months ago by yhirano
Modified:
6 years, 6 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Add WebSocket unittests. Add unittests for WebCore::WebSocket class. BUG=NONE Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=175096

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Total comments: 6

Patch Set 4 : #

Total comments: 13

Patch Set 5 : #

Patch Set 6 : #

Total comments: 12

Patch Set 7 : #

Total comments: 9

Patch Set 8 : #

Patch Set 9 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+837 lines, -12 lines) Patch
M Source/modules/modules.gypi View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M Source/modules/websockets/WebSocket.h View 1 2 3 4 5 6 7 8 3 chunks +13 lines, -3 lines 0 comments Download
M Source/modules/websockets/WebSocket.cpp View 1 2 3 4 5 6 7 8 6 chunks +6 lines, -8 lines 0 comments Download
M Source/modules/websockets/WebSocketHandshake.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A Source/modules/websockets/WebSocketTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +816 lines, -0 lines 0 comments Download

Messages

Total messages: 23 (0 generated)
yhirano
6 years, 7 months ago (2014-05-23 12:55:40 UTC) #1
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/298893008/diff/40001/Source/modules/websockets/WebSocketTest.cpp File Source/modules/websockets/WebSocketTest.cpp (right): https://codereview.chromium.org/298893008/diff/40001/Source/modules/websockets/WebSocketTest.cpp#newcode33 Source/modules/websockets/WebSocketTest.cpp:33: typedef testing::StrictMock<testing::MockFunction<void(int)> > Checkpoint; // NOLINT blank line https://codereview.chromium.org/298893008/diff/40001/Source/modules/websockets/WebSocketTest.cpp#newcode121 ...
6 years, 7 months ago (2014-05-26 08:17:51 UTC) #2
yhirano
https://codereview.chromium.org/298893008/diff/40001/Source/modules/websockets/WebSocketTest.cpp File Source/modules/websockets/WebSocketTest.cpp (right): https://codereview.chromium.org/298893008/diff/40001/Source/modules/websockets/WebSocketTest.cpp#newcode33 Source/modules/websockets/WebSocketTest.cpp:33: typedef testing::StrictMock<testing::MockFunction<void(int)> > Checkpoint; // NOLINT On 2014/05/26 08:17:51, ...
6 years, 7 months ago (2014-05-26 11:37:51 UTC) #3
tyoshino (SeeGerritForStatus)
https://codereview.chromium.org/298893008/diff/50001/Source/modules/websockets/WebSocket.h File Source/modules/websockets/WebSocket.h (right): https://codereview.chromium.org/298893008/diff/50001/Source/modules/websockets/WebSocket.h#newcode128 Source/modules/websockets/WebSocket.h:128: static bool isValidSubprotocolString(const String&); use SubProtocol to align with ...
6 years, 7 months ago (2014-05-27 01:12:14 UTC) #4
yhirano
https://codereview.chromium.org/298893008/diff/50001/Source/modules/websockets/WebSocket.h File Source/modules/websockets/WebSocket.h (right): https://codereview.chromium.org/298893008/diff/50001/Source/modules/websockets/WebSocket.h#newcode128 Source/modules/websockets/WebSocket.h:128: static bool isValidSubprotocolString(const String&); On 2014/05/27 01:12:14, tyoshino wrote: ...
6 years, 7 months ago (2014-05-27 03:30:07 UTC) #5
yhirano
kouhei@, can you take a look at the CL? I'm not sure if I'm defining ...
6 years, 7 months ago (2014-05-27 03:41:33 UTC) #6
kouhei (in TOK)
oilpan changes lgtm
6 years, 7 months ago (2014-05-27 04:29:28 UTC) #7
haraken
The oilpan part LGTM with comments. https://codereview.chromium.org/298893008/diff/90001/Source/modules/websockets/WebSocket.h File Source/modules/websockets/WebSocket.h (right): https://codereview.chromium.org/298893008/diff/90001/Source/modules/websockets/WebSocket.h#newcode126 Source/modules/websockets/WebSocket.h:126: void trace(Visitor*); You ...
6 years, 7 months ago (2014-05-27 04:35:08 UTC) #8
yhirano
Thanks for reviewing. https://codereview.chromium.org/298893008/diff/90001/Source/modules/websockets/WebSocket.h File Source/modules/websockets/WebSocket.h (right): https://codereview.chromium.org/298893008/diff/90001/Source/modules/websockets/WebSocket.h#newcode126 Source/modules/websockets/WebSocket.h:126: void trace(Visitor*); On 2014/05/27 04:35:08, haraken ...
6 years, 7 months ago (2014-05-27 05:03:02 UTC) #9
haraken
https://codereview.chromium.org/298893008/diff/90001/Source/modules/websockets/WebSocket.h File Source/modules/websockets/WebSocket.h (right): https://codereview.chromium.org/298893008/diff/90001/Source/modules/websockets/WebSocket.h#newcode126 Source/modules/websockets/WebSocket.h:126: void trace(Visitor*); On 2014/05/27 04:35:08, haraken wrote: > > ...
6 years, 7 months ago (2014-05-27 05:23:56 UTC) #10
zerny-chromium
oilpan lgtm with a trivial fix https://codereview.chromium.org/298893008/diff/90001/Source/modules/websockets/WebSocket.h File Source/modules/websockets/WebSocket.h (right): https://codereview.chromium.org/298893008/diff/90001/Source/modules/websockets/WebSocket.h#newcode126 Source/modules/websockets/WebSocket.h:126: void trace(Visitor*); On ...
6 years, 7 months ago (2014-05-27 08:26:28 UTC) #11
tyoshino (SeeGerritForStatus)
lgtm https://codereview.chromium.org/298893008/diff/50001/Source/modules/websockets/WebSocket.h File Source/modules/websockets/WebSocket.h (right): https://codereview.chromium.org/298893008/diff/50001/Source/modules/websockets/WebSocket.h#newcode128 Source/modules/websockets/WebSocket.h:128: static bool isValidSubprotocolString(const String&); On 2014/05/27 03:30:07, yhirano ...
6 years, 7 months ago (2014-05-27 11:51:23 UTC) #12
yhirano
https://codereview.chromium.org/298893008/diff/90001/Source/modules/websockets/WebSocketTest.cpp File Source/modules/websockets/WebSocketTest.cpp (right): https://codereview.chromium.org/298893008/diff/90001/Source/modules/websockets/WebSocketTest.cpp#newcode82 Source/modules/websockets/WebSocketTest.cpp:82: return m_channel; On 2014/05/27 08:26:28, zerny-chromium wrote: > Unfortunately ...
6 years, 6 months ago (2014-05-29 02:27:12 UTC) #13
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 6 months ago (2014-05-29 03:21:01 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/298893008/120001
6 years, 6 months ago (2014-05-29 03:21:21 UTC) #15
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-05-29 03:21:29 UTC) #16
commit-bot: I haz the power
Failed to apply patch for Source/modules/websockets/WebSocket.h: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
6 years, 6 months ago (2014-05-29 03:21:29 UTC) #17
yhirano
The CQ bit was checked by yhirano@chromium.org
6 years, 6 months ago (2014-05-29 04:02:36 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/yhirano@chromium.org/298893008/160001
6 years, 6 months ago (2014-05-29 04:03:12 UTC) #19
commit-bot: I haz the power
Change committed as 175096
6 years, 6 months ago (2014-05-30 02:19:00 UTC) #20
sof
On 2014/05/30 02:19:00, I haz the power (commit-bot) wrote: > Change committed as 175096 Oilpan ...
6 years, 6 months ago (2014-05-30 08:02:23 UTC) #21
haraken
On 2014/05/30 08:02:23, sof wrote: > On 2014/05/30 02:19:00, I haz the power (commit-bot) wrote: ...
6 years, 6 months ago (2014-05-30 11:37:40 UTC) #22
sof
6 years, 6 months ago (2014-06-01 21:29:22 UTC) #23
Message was sent while issue was closed.
On 2014/05/30 11:37:40, haraken wrote:
> On 2014/05/30 08:02:23, sof wrote:
> > On 2014/05/30 02:19:00, I haz the power (commit-bot) wrote:
> > > Change committed as 175096
> > 
> > Oilpan unit tests are currently failing, e.g.,
> > 
> > 
> >
>
http://build.chromium.org/p/tryserver.blink/builders/linux_blink_oilpan_dbg/b...
> > 
> > Due to this CL?
> 
> I found that testing objects registered by INSTANTIATE_TEST_CASE_P are
leaking.
> Because ~WebSocketTestBase is not called, persistent handles in
> WebSocketTestBase are not destructed and thus the leak is reported.

https://codereview.chromium.org/306273002/ tries to address.

Powered by Google App Engine
This is Rietveld 408576698