Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestBitstreamConverter.cpp File Reference
#include "utils/BitstreamConverter.h"
#include <algorithm>
#include <array>
#include <memory>
#include <vector>
#include <gtest/gtest.h>

Classes

struct  NalPacketTest
 
class  TestBitstreamConverter
 

Functions

 TEST_P (TestBitstreamConverter, NalLengthValidation)
 
 INSTANTIATE_TEST_SUITE_P (NalPackets, TestBitstreamConverter, testing::ValuesIn(nalPackets))
 

Variables

const NalPacketTest nalPackets []
 

Function Documentation

◆ INSTANTIATE_TEST_SUITE_P()

INSTANTIATE_TEST_SUITE_P ( NalPackets ,
TestBitstreamConverter ,
testing::ValuesIn(nalPackets)  )

◆ TEST_P()

TEST_P ( TestBitstreamConverter ,
NalLengthValidation  )

Variable Documentation

◆ nalPackets

const NalPacketTest nalPackets[]
Initial value:
= {
{1, {1, 0x41}, true},
{2, {0, 1, 0x41}, true},
{3, {0, 0, 1, 0x41}, true},
{4, {0, 0, 0, 1, 0x41}, true},
{4, {}, false},
{4, {0}, false},
{4, {0, 0}, false},
{4, {0, 0, 0}, false},
{4, {0, 0, 0, 0}, false},
{4, {0, 0, 0, 1}, false},
{4, {0, 0, 0, 2, 0x41}, false},
{4, {0x7f, 0xff, 0xff, 0xff, 0x41}, false},
{4, {0x80, 0, 0, 0, 0x41}, false},
{4, {0xff, 0xff, 0xff, 0xff, 0x41}, false},
{1, {0}, false},
{1, {2, 0x41}, false},
{2, {0}, false},
{2, {0, 0}, false},
{2, {0xff, 0xff, 0x41}, false},
{3, {0, 0}, false},
{3, {0xff, 0xff, 0xff, 0x41}, false},
{4, {0, 0, 0, 1, 0x41, 0}, false},
{4, {0, 0, 0, 1, 0x41, 0, 0, 0, 0}, false},
}