Skip to content

Commit e9cb0f3

Browse files
committed
quic: Fix dataqueue test
1 parent 12b29e0 commit e9cb0f3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/cctest/test_dataqueue.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ TEST(DataQueue, IdempotentDataQueue) {
101101

102102
// We can create an idempotent DataQueue from a list of entries.
103103
std::shared_ptr<DataQueue> data_queue =
104-
DataQueue::CreateIdempotent(std::move(list));
104+
DataQueue::CreateIdempotent(nullptr, std::move(list));
105105

106106
CHECK_NOT_NULL(data_queue);
107107

@@ -426,7 +426,7 @@ TEST(DataQueue, NonIdempotentDataQueue) {
426426
&buffer3, len3, [](void*, size_t, void*) {}, nullptr);
427427

428428
// We can create an non-idempotent DataQueue from a list of entries.
429-
std::shared_ptr<DataQueue> data_queue = DataQueue::Create();
429+
std::shared_ptr<DataQueue> data_queue = DataQueue::Create(nullptr);
430430

431431
CHECK(!data_queue->is_idempotent());
432432
CHECK_EQ(data_queue->size().value(), 0);
@@ -579,7 +579,7 @@ TEST(DataQueue, DataQueueEntry) {
579579

580580
// We can create an idempotent DataQueue from a list of entries.
581581
std::shared_ptr<DataQueue> data_queue =
582-
DataQueue::CreateIdempotent(std::move(list));
582+
DataQueue::CreateIdempotent(nullptr, std::move(list));
583583

584584
CHECK_NOT_NULL(data_queue);
585585

@@ -603,7 +603,7 @@ TEST(DataQueue, DataQueueEntry) {
603603
// We can add it to another data queue, even if the new one is not
604604
// idempotent.
605605

606-
std::shared_ptr<DataQueue> data_queue2 = DataQueue::Create();
606+
std::shared_ptr<DataQueue> data_queue2 = DataQueue::Create(nullptr);
607607
CHECK(data_queue2->append(std::move(slice)).value());
608608

609609
// Our original data queue should have a use count of 2.

0 commit comments

Comments
 (0)