You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2019/02/06 07:38:14 UTC

[trafficserver] branch quic-latest updated: Remove tests for features removed

This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new b6e9a7b  Remove tests for features removed
b6e9a7b is described below

commit b6e9a7bdc6b6ecb3237222582d24ae200d7a228f
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Wed Feb 6 16:37:33 2019 +0900

    Remove tests for features removed
---
 iocore/net/quic/test/test_QUICFrame.cc | 33 ---------------------------------
 1 file changed, 33 deletions(-)

diff --git a/iocore/net/quic/test/test_QUICFrame.cc b/iocore/net/quic/test/test_QUICFrame.cc
index be579dc..61c5fe4 100644
--- a/iocore/net/quic/test/test_QUICFrame.cc
+++ b/iocore/net/quic/test/test_QUICFrame.cc
@@ -381,39 +381,6 @@ TEST_CASE("Store STREAM Frame", "[quic]")
     CHECK(len == 19);
     CHECK(memcmp(buf, expected, len) == 0);
   }
-
-  SECTION("split stream frame")
-  {
-    uint8_t buf1[] = {
-      0x0e,                                           // 0b00001OLF (OLF=110)
-      0x01,                                           // Stream ID
-      0xc0, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x00, // Offset
-      0x0a,                                           // Data Length
-      0x01, 0x02, 0x03, 0x04, 0x05,                   // Stream Data
-      0x11, 0x22, 0x33, 0x44, 0x55,
-    };
-
-    QUICFrameUPtr frame1 = QUICFrameFactory::create(buf1, sizeof(buf1));
-    CHECK(frame1->type() == QUICFrameType::STREAM);
-    CHECK(frame1->size() == 21);
-    QUICStreamFrame *stream_frame = dynamic_cast<QUICStreamFrame *>(frame1.get());
-    CHECK(stream_frame->offset() == 0x100000000);
-    CHECK(stream_frame->stream_id() == 0x01);
-    CHECK(stream_frame->data_length() == 10);
-    QUICStreamFrame *stream_frame2 = dynamic_cast<QUICStreamFrame *>(stream_frame->split(16));
-    CHECK(stream_frame->stream_id() == 0x01);
-    CHECK(stream_frame->data_length() == 5);
-    CHECK(memcmp(stream_frame->data()->start(), "\x01\x02\x03\x04\x05", stream_frame->data_length()) == 0);
-    CHECK(stream_frame->offset() == 0x100000000);
-
-    frame1 = QUICFrameFactory::create_null_frame();
-    CHECK(stream_frame2->data_length() == 5);
-    CHECK(memcmp(stream_frame2->data()->start(), "\x11\x22\x33\x44\x55", stream_frame2->data_length()) == 0);
-    CHECK(stream_frame2->offset() == 0x100000000 + 5);
-    CHECK(stream_frame2->stream_id() == 0x01);
-
-    QUICFrameDeleter::delete_stream_frame(stream_frame2);
-  }
 }
 
 TEST_CASE("CRYPTO Frame", "[quic]")