From 4c27221295cbe61bb84adefaa58b1f27fc58a6bf Mon Sep 17 00:00:00 2001 From: Timur Pocheptsov Date: Tue, 16 Aug 2016 16:23:54 +0200 Subject: Refactor Http2::FrameReader/Http2::FrameWriter Introduce new entity: class Http2::Frame with accessors like payloadSize/type/flags/streamID etc. (they actually read /interpret raw bytes from a frame's buffer) instead of duplicating this functionality in reader/writer classes. Delete defaulted members and remove explicitly defined move ctors/operators (not needed actually). Update auto-test ('HTTP/2 server') to use these new classes. Change-Id: Ie3516efbd095704e212142eef9e792323678ccfa Reviewed-by: Edward Welbourne --- tests/auto/network/access/http2/http2srv.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) mode change 100644 => 100755 tests/auto/network/access/http2/http2srv.h (limited to 'tests/auto/network/access/http2/http2srv.h') diff --git a/tests/auto/network/access/http2/http2srv.h b/tests/auto/network/access/http2/http2srv.h old mode 100644 new mode 100755 index 8d02ae60ef..73b1d80f8e --- a/tests/auto/network/access/http2/http2srv.h +++ b/tests/auto/network/access/http2/http2srv.h @@ -126,10 +126,11 @@ private: bool connectionError = false; - Http2::FrameReader inboundFrame; - Http2::FrameWriter outboundFrame; + Http2::FrameReader reader; + Http2::Frame inboundFrame; + Http2::FrameWriter writer; - using FrameSequence = std::vector; + using FrameSequence = std::vector; FrameSequence continuedRequest; std::map streamWindows; -- cgit v1.2.3