File gtest_isotp_send_with_id.cpp

FileList > tests > unit > gtest_isotp_send_with_id.cpp

Go to the source code of this file

Unit tests for isotp_send_with_id. More...

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

Public Functions

Type Name
TEST (IsotpSendWithId, NullLinkReturnsError)
Null link returns error.
TEST (IsotpSendWithId, OversizeReturnsOverflow)
Oversize payload returns overflow without sending.
TEST (IsotpSendWithId, InProgressReturnsInProgress)
In-progress send returns in-progress.
TEST (IsotpSendWithId, SingleFrameSendsPayload)
Single-frame payload is sent with provided ID.
TEST (IsotpSendWithId, MultiFrameFirstFrameStartsSend)
Multi-frame FF starts send and sets timers.
TEST (IsotpSendWithId, MultiFrameFirstFrameSendErrorDoesNotStart)
FF send error does not start send state.

Detailed Description

Covers error handling, overflow, and multi-frame start logic.

Public Functions Documentation

function TEST

Null link returns error.

TEST (
    IsotpSendWithId,
    NullLinkReturnsError
) 


function TEST

Oversize payload returns overflow without sending.

TEST (
    IsotpSendWithId,
    OversizeReturnsOverflow
) 


function TEST

In-progress send returns in-progress.

TEST (
    IsotpSendWithId,
    InProgressReturnsInProgress
) 


function TEST

Single-frame payload is sent with provided ID.

TEST (
    IsotpSendWithId,
    SingleFrameSendsPayload
) 


function TEST

Multi-frame FF starts send and sets timers.

TEST (
    IsotpSendWithId,
    MultiFrameFirstFrameStartsSend
) 


function TEST

FF send error does not start send state.

TEST (
    IsotpSendWithId,
    MultiFrameFirstFrameSendErrorDoesNotStart
) 



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