File gtest_isotp_poll.cpp

FileList > tests > unit > gtest_isotp_poll.cpp

Go to the source code of this file

Unit tests for isotp_poll. More...

  • #include <gtest/gtest.h>
  • #include "isotp_test_support.h"

Public Functions

Type Name
TEST (IsotpPoll, SendsConsecutiveFrameAndCompletes)
Sends the final CF and completes the send.
TEST (IsotpPoll, ReceiveTimeoutSetsIdle)
Receive timeout sets idle and timeout result.
TEST (IsotpPoll, SendDoesNotStartWhenStMinNotElapsed)
STmin delay prevents sending early.
TEST (IsotpPoll, SendNoSpaceDoesNotChangeState)
NOSPACE keeps send state unchanged.
TEST (IsotpPoll, SendErrorSetsSendStatusError)
Send error sets send status to error.
TEST (IsotpPoll, SendDecrementsBlockSizeRemain)
Send decrements block size and advances timers.
TEST (IsotpPoll, SendTimeoutSetsError)
Send timeout sets protocol error.
TEST (IsotpPoll, ReceiveDoesNotTimeoutWhenTimerZero)
Zero receive timer does not trigger timeout.

Detailed Description

Validates send/receive state updates and timeout handling.

Public Functions Documentation

function TEST

Sends the final CF and completes the send.

TEST (
    IsotpPoll,
    SendsConsecutiveFrameAndCompletes
) 


function TEST

Receive timeout sets idle and timeout result.

TEST (
    IsotpPoll,
    ReceiveTimeoutSetsIdle
) 


function TEST

STmin delay prevents sending early.

TEST (
    IsotpPoll,
    SendDoesNotStartWhenStMinNotElapsed
) 


function TEST

NOSPACE keeps send state unchanged.

TEST (
    IsotpPoll,
    SendNoSpaceDoesNotChangeState
) 


function TEST

Send error sets send status to error.

TEST (
    IsotpPoll,
    SendErrorSetsSendStatusError
) 


function TEST

Send decrements block size and advances timers.

TEST (
    IsotpPoll,
    SendDecrementsBlockSizeRemain
) 


function TEST

Send timeout sets protocol error.

TEST (
    IsotpPoll,
    SendTimeoutSetsError
) 


function TEST

Zero receive timer does not trigger timeout.

TEST (
    IsotpPoll,
    ReceiveDoesNotTimeoutWhenTimerZero
) 



The documentation for this class was generated from the following file tests/unit/gtest_isotp_poll.cpp