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

Issue 2007373004: Fix test expectations to use bool checks rather than null compares (Closed)

Created:
4 years, 6 months ago by Wez
Modified:
4 years, 6 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, sync-reviews_chromium.org, 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 pointer checks to test-as-bool rather than null compares. Various test fixtures have acquired assertions and expectations on pointers which try to compare explicitly with NULL or nullptr, rather than testing pointers as bools. These cases will break when WeakPtr is fixed to provide explicit operator bool(). Some bool-checks of other pointer containers (e.g. foo.get() == NULL) are also cleaned up. BUG=605794 Committed: https://crrev.com/ca1070937cf760f039eae9392280b9e7c1601174 Cr-Commit-Position: refs/heads/master@{#396270}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+455 lines, -453 lines) Patch
M net/http/http_network_transaction_unittest.cc View 171 chunks +278 lines, -277 lines 0 comments Download
M net/spdy/spdy_network_transaction_unittest.cc View 59 chunks +86 lines, -86 lines 0 comments Download
M net/spdy/spdy_session_pool_unittest.cc View 10 chunks +19 lines, -19 lines 0 comments Download
M net/spdy/spdy_session_unittest.cc View 41 chunks +46 lines, -46 lines 0 comments Download
M net/spdy/spdy_stream_unittest.cc View 14 chunks +14 lines, -14 lines 0 comments Download
M net/spdy/spdy_test_util_common.cc View 3 chunks +4 lines, -3 lines 0 comments Download
M remoting/protocol/fake_datagram_socket.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M sync/internal_api/attachments/attachment_downloader_impl_unittest.cc View 5 chunks +6 lines, -6 lines 0 comments Download

Messages

Total messages: 13 (6 generated)
Wez
PTAL
4 years, 6 months ago (2016-05-26 19:57:19 UTC) #2
Nicolas Zea
sync lgtm
4 years, 6 months ago (2016-05-26 19:57:57 UTC) #3
Ryan Sleevi
//net LGTM
4 years, 6 months ago (2016-05-26 20:00:20 UTC) #5
Jamie
remoting/ LGTM
4 years, 6 months ago (2016-05-26 20:17:46 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2007373004/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2007373004/1
4 years, 6 months ago (2016-05-26 20:26:03 UTC) #9
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 6 months ago (2016-05-26 20:31:04 UTC) #11
commit-bot: I haz the power
4 years, 6 months ago (2016-05-26 20:32:13 UTC) #13
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/ca1070937cf760f039eae9392280b9e7c1601174
Cr-Commit-Position: refs/heads/master@{#396270}

Powered by Google App Engine
This is Rietveld 408576698