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

Unified Diff: net/quic/core/quic_stream_sequencer_buffer_test.cc

Issue 2591143003: Add QuicStrCat. (Closed)
Patch Set: sync Created 4 years 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/core/quic_stream_sequencer_buffer.cc ('k') | net/quic/platform/api/quic_str_cat.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/core/quic_stream_sequencer_buffer_test.cc
diff --git a/net/quic/core/quic_stream_sequencer_buffer_test.cc b/net/quic/core/quic_stream_sequencer_buffer_test.cc
index 9f4054c140bd88534e2d6f39ef158ccd53354c95..506fa9e69e4949800b61921afad15e3274f9c98b 100644
--- a/net/quic/core/quic_stream_sequencer_buffer_test.cc
+++ b/net/quic/core/quic_stream_sequencer_buffer_test.cc
@@ -12,6 +12,7 @@
#include "base/logging.h"
#include "base/macros.h"
#include "base/rand_util.h"
+#include "net/quic/platform/api/quic_str_cat.h"
#include "net/quic/test_tools/mock_clock.h"
#include "net/quic/test_tools/quic_stream_sequencer_buffer_peer.h"
#include "net/quic/test_tools/quic_test_utils.h"
@@ -144,10 +145,10 @@ TEST_F(QuicStreamSequencerBufferTest, OnStreamDataInvalidSource) {
QuicTime t = clock_.ApproximateNow();
EXPECT_EQ(QUIC_STREAM_SEQUENCER_INVALID_STATE,
buffer_->OnStreamData(800, source, t, &written, &error_details_));
- EXPECT_EQ(
- 0u, error_details_.find("QuicStreamSequencerBuffer error: OnStreamData()"
- " dest == nullptr: false"
- " source == nullptr: true"));
+ EXPECT_EQ(0u, error_details_.find(QuicStrCat(
+ "QuicStreamSequencerBuffer error: OnStreamData() "
+ "dest == nullptr: ",
+ false, " source == nullptr: ", true)));
}
TEST_F(QuicStreamSequencerBufferTest, OnStreamDataWithOverlap) {
« no previous file with comments | « net/quic/core/quic_stream_sequencer_buffer.cc ('k') | net/quic/platform/api/quic_str_cat.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698