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

Unified Diff: net/quic/quic_session_test.cc

Issue 612323013: QUIC - (no behavior change) s/NULL/nullptr/g in .../quic/... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « net/quic/quic_session.cc ('k') | net/quic/quic_spdy_server_stream.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_session_test.cc
diff --git a/net/quic/quic_session_test.cc b/net/quic/quic_session_test.cc
index bff6a65ac0e19f217c17e666af8a85be474854bd..a36b77cd13f97d1d0618f1e1ba7ebe65b4937ea7 100644
--- a/net/quic/quic_session_test.cc
+++ b/net/quic/quic_session_test.cc
@@ -96,7 +96,7 @@ class TestStream : public QuicDataStream {
}
void SendBody(const string& data, bool fin) {
- WriteOrBufferData(data, fin, NULL);
+ WriteOrBufferData(data, fin, nullptr);
}
MOCK_METHOD0(OnCanWrite, void());
@@ -172,7 +172,7 @@ class TestSession : public QuicSession {
}
QuicConsumedData SendStreamData(QuicStreamId id) {
- return WritevData(id, IOVector(), 0, true, MAY_FEC_PROTECT, NULL);
+ return WritevData(id, IOVector(), 0, true, MAY_FEC_PROTECT, nullptr);
}
using QuicSession::PostProcessAfterData;
@@ -268,12 +268,12 @@ TEST_P(QuicSessionTest, IsClosedStreamDefault) {
}
TEST_P(QuicSessionTest, ImplicitlyCreatedStreams) {
- ASSERT_TRUE(session_.GetIncomingDataStream(7) != NULL);
+ ASSERT_TRUE(session_.GetIncomingDataStream(7) != nullptr);
// Both 3 and 5 should be implicitly created.
EXPECT_FALSE(session_.IsClosedStream(3));
EXPECT_FALSE(session_.IsClosedStream(5));
- ASSERT_TRUE(session_.GetIncomingDataStream(5) != NULL);
- ASSERT_TRUE(session_.GetIncomingDataStream(3) != NULL);
+ ASSERT_TRUE(session_.GetIncomingDataStream(5) != nullptr);
+ ASSERT_TRUE(session_.GetIncomingDataStream(3) != nullptr);
}
TEST_P(QuicSessionTest, IsClosedStreamLocallyCreated) {
« no previous file with comments | « net/quic/quic_session.cc ('k') | net/quic/quic_spdy_server_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698