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

Unified Diff: extensions/browser/api/cast_channel/cast_socket_unittest.cc

Issue 843453002: Replace NULL with nullptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: extensions/browser/api/cast_channel/cast_socket_unittest.cc
diff --git a/extensions/browser/api/cast_channel/cast_socket_unittest.cc b/extensions/browser/api/cast_channel/cast_socket_unittest.cc
index 95d6ed1960441ab5c2d061938334beefb4806bd3..0583ae45e454d1b89e1f1f28a7e26bc760c567a4 100644
--- a/extensions/browser/api/cast_channel/cast_socket_unittest.cc
+++ b/extensions/browser/api/cast_channel/cast_socket_unittest.cc
@@ -95,13 +95,13 @@ CastMessage CreateTestMessage() {
class MockTCPSocket : public net::TCPClientSocket {
public:
- explicit MockTCPSocket(const net::MockConnect& connect_data) :
- TCPClientSocket(net::AddressList(), NULL, net::NetLog::Source()),
- connect_data_(connect_data),
- do_nothing_(false) { }
+ explicit MockTCPSocket(const net::MockConnect& connect_data)
+ : TCPClientSocket(net::AddressList(), nullptr, net::NetLog::Source()),
+ connect_data_(connect_data),
+ do_nothing_(false) {}
- explicit MockTCPSocket(bool do_nothing) :
- TCPClientSocket(net::AddressList(), NULL, net::NetLog::Source()) {
+ explicit MockTCPSocket(bool do_nothing)
+ : TCPClientSocket(net::AddressList(), nullptr, net::NetLog::Source()) {
CHECK(do_nothing);
do_nothing_ = do_nothing;
}
@@ -204,7 +204,7 @@ class TestCastSocket : public CastSocketImpl {
verify_challenge_disallow_(false),
tcp_unresponsive_(false),
mock_timer_(new base::MockTimer(false, false)),
- mock_transport_(NULL) {}
+ mock_transport_(nullptr) {}
~TestCastSocket() override {}

Powered by Google App Engine
This is Rietveld 408576698