Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestContentGeometryRecord.cpp File Reference
#include "test/TestUtils.h"
#include "utils/XBMCTinyXML.h"
#include "utils/XBMCTinyXML2.h"
#include "utils/XMLUtils.h"
#include "video/geometry/ContentGeometryRecord.h"
#include "video/geometry/test/GeometryTestHelpers.h"
#include <string>
#include <gtest/gtest.h>

Functions

 TEST (TestFileIdentity, AnIdentityMatchesItself)
 
 TEST (TestFileIdentity, EitherFieldDifferingIsADifferentFile)
 
 TEST (TestFileIdentity, NeitherFieldAloneDecides)
 
 TEST (TestFileIdentity, AnUnknownIdentityMatchesNothingIncludingItself)
 
 TEST (TestFileIdentity, PartiallyKnownIsUnknown)
 
 TEST (TestFileIdentity, AMissingFileHasNoIdentity)
 
 TEST (TestFileIdentity, ARealFileHasOneAndItIsStable)
 
 TEST (TestContentAspects, RoundTripThroughTheStoredForm)
 
 TEST (TestContentAspects, NoRatiosIsAnEmptyValue)
 
 TEST (TestContentAspects, AnythingThatIsNotARatioIsSkipped)
 The column is plain text a user can edit, so a value naming no ratio costs only itself.
 
 TEST (TestContentAspects, ARatioIsHeldToTwoDecimals)
 
 TEST (TestContentGeometryRecord, DefaultsToTheCurrentAlgorithmVersion)
 
 TEST (TestContentGeometryRecord, AReadingIsARatioAndVaryingIsMoreThanOne)
 
 TEST (TestContentGeometryRecord, XmlRoundTrip)
 
 TEST (TestContentGeometryRecord, XmlWithoutReading)
 
 TEST (TestContentGeometryRecord, XmlSkipsInvalidAspects)
 
 TEST (TestContentGeometryRecord, TinyXmlRoundTrip)
 The TinyXML form, which CVideoInfoTag loads and saves with.
 
 TEST (TestSharedContentGeometry, ASnapshotIsUnaffectedByALaterPublication)
 A reader keeps the record it took, whatever is published after it.
 
 TEST (TestSharedContentGeometry, CopiesAndAssignmentsAreIndependent)
 
 TEST (TestContentGeometryLookup, MissingCarriesNoRecord)
 

Function Documentation

◆ TEST() [1/20]

TEST ( TestContentAspects ,
AnythingThatIsNotARatioIsSkipped  )

The column is plain text a user can edit, so a value naming no ratio costs only itself.

◆ TEST() [2/20]

TEST ( TestContentAspects ,
ARatioIsHeldToTwoDecimals  )

◆ TEST() [3/20]

TEST ( TestContentAspects ,
NoRatiosIsAnEmptyValue  )

◆ TEST() [4/20]

TEST ( TestContentAspects ,
RoundTripThroughTheStoredForm  )

◆ TEST() [5/20]

TEST ( TestContentGeometryLookup ,
MissingCarriesNoRecord  )

◆ TEST() [6/20]

TEST ( TestContentGeometryRecord ,
AReadingIsARatioAndVaryingIsMoreThanOne  )

◆ TEST() [7/20]

TEST ( TestContentGeometryRecord ,
DefaultsToTheCurrentAlgorithmVersion  )

◆ TEST() [8/20]

TEST ( TestContentGeometryRecord ,
TinyXmlRoundTrip  )

The TinyXML form, which CVideoInfoTag loads and saves with.

◆ TEST() [9/20]

TEST ( TestContentGeometryRecord ,
XmlRoundTrip  )

◆ TEST() [10/20]

TEST ( TestContentGeometryRecord ,
XmlSkipsInvalidAspects  )

◆ TEST() [11/20]

TEST ( TestContentGeometryRecord ,
XmlWithoutReading  )

◆ TEST() [12/20]

TEST ( TestFileIdentity ,
AMissingFileHasNoIdentity  )

◆ TEST() [13/20]

TEST ( TestFileIdentity ,
AnIdentityMatchesItself  )

◆ TEST() [14/20]

TEST ( TestFileIdentity ,
AnUnknownIdentityMatchesNothingIncludingItself  )

An unknown identity never matches, so a caller that could not identify the file ends up with no rectangle.

◆ TEST() [15/20]

TEST ( TestFileIdentity ,
ARealFileHasOneAndItIsStable  )

◆ TEST() [16/20]

TEST ( TestFileIdentity ,
EitherFieldDifferingIsADifferentFile  )

◆ TEST() [17/20]

TEST ( TestFileIdentity ,
NeitherFieldAloneDecides  )

Neither field alone: a re-crop can preserve the byte count, and a restore can preserve the size while changing the mtime.

◆ TEST() [18/20]

TEST ( TestFileIdentity ,
PartiallyKnownIsUnknown  )

◆ TEST() [19/20]

TEST ( TestSharedContentGeometry ,
ASnapshotIsUnaffectedByALaterPublication  )

A reader keeps the record it took, whatever is published after it.

◆ TEST() [20/20]

TEST ( TestSharedContentGeometry ,
CopiesAndAssignmentsAreIndependent  )