New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 622554 link

Starred by 2 users

Issue metadata

Status: Fixed
Owner: ----
Closed: Jul 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

[Cast Channel] Improve cast_channel_unittest.cc

Project Member Reported by imch...@chromium.org, Jun 23 2016

Issue description

Currently some of the methods in CastSocketImpl (e.g., CreateSSLSocket) are mocked out in the tests, resulting in critical code path that isn't tested and issues like https://bugs.chromium.org/p/chromium/issues/detail?id=620810. We should mock out the underlying components used by CastSocketImpl instead, so that the core logic itself can be tested.
 
Status: Started (was: Untriaged)

Comment 2 by sko...@chromium.org, May 10 2017

Labels: -Pri-2 -Hotlist-Fixit-PE2016 Hotlist-Fixit-PE2017 Pri-3
Owner: ----
Status: Available (was: Started)

Comment 3 by mfo...@chromium.org, May 10 2017

Labels: Hotlist-CodeHealth
Project Member

Comment 4 by bugdroid1@chromium.org, Jul 7 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/25ff9b7cb09ab7db6dd453c5d5c43779a58c8159

commit 25ff9b7cb09ab7db6dd453c5d5c43779a58c8159
Author: btolsch <btolsch@chromium.org>
Date: Fri Jul 07 03:31:55 2017

[Cast Channel] Add real SSL tests to CastSocketTest

CastSocket is tested using a mocked transport which does not use SSL.
This can and did lead to integration problems when SSL code is changed
( https://crbug.com/622098 ).  This change adds two tests to
CastSocketTest which use an SSL socket for their transport instead of
the mocked TCP socket.

BUG= 622554 

Review-Url: https://codereview.chromium.org/2093923004
Cr-Commit-Position: refs/heads/master@{#484819}

[modify] https://crrev.com/25ff9b7cb09ab7db6dd453c5d5c43779a58c8159/components/cast_channel/cast_socket.h
[modify] https://crrev.com/25ff9b7cb09ab7db6dd453c5d5c43779a58c8159/components/cast_channel/cast_socket_unittest.cc
[add] https://crrev.com/25ff9b7cb09ab7db6dd453c5d5c43779a58c8159/components/test/data/cast_channel/self_signed.pem

Status: Fixed (was: Available)

Sign in to add a comment