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

Issue 1687543002: Fix IceTransportTest.TestBrokenTransport (Closed)

Created:
4 years, 10 months ago by Sergey Ulanov
Modified:
4 years, 10 months ago
Reviewers:
Jamie
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix IceTransportTest.TestBrokenTransport Previously the test wasn't verifying what it's supposed to verify and was flaky, particularly on DrMemory bots. The test attemps to connect two IceTransport instances with settings that should prevent them from connecting and verifies that they fail to connect. There were two issues: 1. NetworkSettings were not passed to IceTransport objects properly, so they could still connect. 2. The test was just calling RunLoopUntilIdle() and wasn't waiting for transport failure, so in most cases the test would pass even if the transports could connect, which masked (1). Fixed both issues. BUG=585531 Committed: https://crrev.com/785b2e72967a5ddb877091776c53ae3eca197775 Cr-Commit-Position: refs/heads/master@{#374536}

Patch Set 1 #

Patch Set 2 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -22 lines) Patch
M remoting/protocol/ice_transport_channel.cc View 4 chunks +7 lines, -9 lines 0 comments Download
M remoting/protocol/ice_transport_unittest.cc View 1 3 chunks +20 lines, -8 lines 0 comments Download
M remoting/protocol/network_settings.h View 2 chunks +9 lines, -5 lines 0 comments Download

Messages

Total messages: 10 (5 generated)
Sergey Ulanov
4 years, 10 months ago (2016-02-09 19:46:25 UTC) #3
Jamie
lgtm
4 years, 10 months ago (2016-02-09 22:21:12 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1687543002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1687543002/20001
4 years, 10 months ago (2016-02-09 23:05:06 UTC) #6
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 10 months ago (2016-02-09 23:49:19 UTC) #8
commit-bot: I haz the power
4 years, 10 months ago (2016-02-09 23:50:18 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/785b2e72967a5ddb877091776c53ae3eca197775
Cr-Commit-Position: refs/heads/master@{#374536}

Powered by Google App Engine
This is Rietveld 408576698