Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestUPnPInternal.cpp File Reference
#include "FileItem.h"
#include "XBDateTime.h"
#include "network/upnp/UPnPInternal.h"
#include <memory>
#include <string>
#include <Platinum/Source/Devices/MediaServer/PltDidl.h>
#include <Platinum/Source/Devices/MediaServer/PltMediaItem.h>
#include <gtest/gtest.h>

Functions

 TEST (TestUPnPInternal, BuildObjectSetsDateFromDateOnlyValue)
 
 TEST (TestUPnPInternal, BuildObjectSetsDateFromDateTimeValue)
 
 TEST (TestUPnPInternal, BuildObjectLeavesDateUnsetWhenNoDatePresent)
 
 TEST (TestUPnPInternal, BuildObjectLeavesDateUnsetOnUnparsableValue)
 
 TEST (TestUPnPInternal, DidlParsingFillsMediaObjectDateAndNotDescriptionDate)
 PLT_Description::date is never filled by Platinum, so it must not be the source of truth.
 
 TEST (TestUPnPInternal, BuildObjectSetsDateForDidlSourcedItem)
 
 TEST (TestUPnPInternal, BuildObjectDatesFromDidlAreOrdered)
 The point of the fix: dates from a server are comparable, so SortBy::DATE works.
 

Function Documentation

◆ TEST() [1/7]

TEST ( TestUPnPInternal ,
BuildObjectDatesFromDidlAreOrdered  )

The point of the fix: dates from a server are comparable, so SortBy::DATE works.

◆ TEST() [2/7]

TEST ( TestUPnPInternal ,
BuildObjectLeavesDateUnsetOnUnparsableValue  )

◆ TEST() [3/7]

TEST ( TestUPnPInternal ,
BuildObjectLeavesDateUnsetWhenNoDatePresent  )

◆ TEST() [4/7]

TEST ( TestUPnPInternal ,
BuildObjectSetsDateForDidlSourcedItem  )

◆ TEST() [5/7]

TEST ( TestUPnPInternal ,
BuildObjectSetsDateFromDateOnlyValue  )

◆ TEST() [6/7]

TEST ( TestUPnPInternal ,
BuildObjectSetsDateFromDateTimeValue  )

◆ TEST() [7/7]

TEST ( TestUPnPInternal ,
DidlParsingFillsMediaObjectDateAndNotDescriptionDate  )

PLT_Description::date is never filled by Platinum, so it must not be the source of truth.