Home / Function/ testInvalidSpdyWindowUpdateFrameLength() — netty Function Reference

testInvalidSpdyWindowUpdateFrameLength() — netty Function Reference

Architecture documentation for the testInvalidSpdyWindowUpdateFrameLength() function in SpdyFrameDecoderTest.java from the netty codebase.

Entity Profile

Dependency Diagram

graph TD
  68531600_e0ec_3d91_aa0f_536241b0a13b["testInvalidSpdyWindowUpdateFrameLength()"]
  694e7f21_2c70_1029_2eab_f7afcf7a1d96["SpdyFrameDecoderTest"]
  68531600_e0ec_3d91_aa0f_536241b0a13b -->|defined in| 694e7f21_2c70_1029_2eab_f7afcf7a1d96
  22716287_5b34_da1d_c8e3_c9777b358484["encodeControlFrameHeader()"]
  68531600_e0ec_3d91_aa0f_536241b0a13b -->|calls| 22716287_5b34_da1d_c8e3_c9777b358484
  style 68531600_e0ec_3d91_aa0f_536241b0a13b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java lines 1204–1221

    @Test
    public void testInvalidSpdyWindowUpdateFrameLength() throws Exception {
        short type = 9;
        byte flags = 0;
        int length = 12; // invalid length
        int streamId = RANDOM.nextInt() & 0x7FFFFFFF;
        int deltaWindowSize = RANDOM.nextInt() & 0x7FFFFFFF | 0x01;

        ByteBuf buf = Unpooled.buffer(SPDY_HEADER_SIZE + length);
        encodeControlFrameHeader(buf, type, flags, length);
        buf.writeInt(streamId);
        buf.writeInt(deltaWindowSize);

        decoder.decode(buf);
        verify(delegate).readFrameError(anyString());
        assertFalse(buf.isReadable());
        buf.release();
    }

Domain

Subdomains

Frequently Asked Questions

What does testInvalidSpdyWindowUpdateFrameLength() do?
testInvalidSpdyWindowUpdateFrameLength() is a function in the netty codebase, defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java.
Where is testInvalidSpdyWindowUpdateFrameLength() defined?
testInvalidSpdyWindowUpdateFrameLength() is defined in codec-http/src/test/java/io/netty/handler/codec/spdy/SpdyFrameDecoderTest.java at line 1204.
What does testInvalidSpdyWindowUpdateFrameLength() call?
testInvalidSpdyWindowUpdateFrameLength() calls 1 function(s): encodeControlFrameHeader.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free