|
Replace use of ASSERT in test code.
In top level test functions, replaced with gtest ASSERT_*. In helper
methods in main test files, replaced with EXPECT_* or RTC_DCHECK on a
case-by-case basis.
In separate mock/fake classes used by tests (which might be of some
use also in tests of third-party applications), ASSERT was replaced
with RTC_CHECK, using
git grep -l ' ASSERT(' | grep -v common.h | \
xargs sed -i 's/ ASSERT(/ RTC_CHECK(/'
followed by additional includes of base/checks.h in affected files,
and git cl format.
BUG= webrtc:6424
Review-Url: https://codereview.webrtc.org/2622413005
Cr-Commit-Position: refs/heads/master@{#16150}
Committed: https://chromium.googlesource.com/external/webrtc/+/c8ee882753f5240018445a1ce5761fd1c3196b4e
Total comments: 32
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+75 lines, -61 lines) |
Patch |
|
M |
webrtc/api/rtcstatscollector_unittest.cc
|
View
|
1
2
3
4
|
7 chunks |
+10 lines, -10 lines |
0 comments
|
Download
|
|
M |
webrtc/api/statscollector_unittest.cc
|
View
|
1
2
3
4
5
|
3 chunks |
+3 lines, -3 lines |
0 comments
|
Download
|
|
M |
webrtc/api/test/fakeaudiocapturemodule.cc
|
View
|
|
5 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
|
M |
webrtc/api/test/fakedatachannelprovider.h
|
View
|
|
6 chunks |
+9 lines, -6 lines |
0 comments
|
Download
|
|
M |
webrtc/api/test/mockpeerconnectionobservers.h
|
View
|
1
2
3
4
|
3 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
|
M |
webrtc/api/webrtcsession_unittest.cc
|
View
|
1
|
3 chunks |
+4 lines, -4 lines |
0 comments
|
Download
|
|
M |
webrtc/base/network_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
webrtc/base/optionsfile_unittest.cc
|
View
|
|
2 chunks |
+2 lines, -1 line |
0 comments
|
Download
|
|
M |
webrtc/base/sharedexclusivelock_unittest.cc
|
View
|
|
3 chunks |
+7 lines, -6 lines |
0 comments
|
Download
|
|
M |
webrtc/base/sslstreamadapter_unittest.cc
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
webrtc/base/testutils.h
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
webrtc/p2p/base/dtlstransportchannel_unittest.cc
|
View
|
1
2
|
4 chunks |
+4 lines, -3 lines |
0 comments
|
Download
|
|
M |
webrtc/p2p/base/p2ptransportchannel_unittest.cc
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
webrtc/p2p/base/port_unittest.cc
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
webrtc/p2p/base/turnport_unittest.cc
|
View
|
|
3 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
webrtc/pc/channel_unittest.cc
|
View
|
1
2
3
4
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
|
M |
webrtc/pc/mediasession_unittest.cc
|
View
|
|
2 chunks |
+3 lines, -2 lines |
0 comments
|
Download
|
Total messages: 30 (12 generated)
|