|
Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
|
#include "cores/VideoSettings.h"#include "utils/StringUtils.h"#include "video/test/VideoDatabaseTestBase.h"#include <gtest/gtest.h>Classes | |
| class | TestVideoDatabaseDeclaredAspect |
Functions | |
| TEST_F (TestVideoDatabaseDeclaredAspect, StoresAndReadsBackOnInsert) | |
| TEST_F (TestVideoDatabaseDeclaredAspect, StoresAndReadsBackOnUpdate) | |
| TEST_F (TestVideoDatabaseDeclaredAspect, ClearingADeclarationLeavesNoRatio) | |
| TEST_F (TestVideoDatabaseDeclaredAspect, ARowWithoutTheColumnsReadsAsUndeclared) | |
| A row written before the feature existed reads as undeclared rather than as 0:1. | |
| TEST_F (TestVideoDatabaseDeclaredAspect, ProvenanceAloneIsNotASettingsChange) | |
| TEST_F | ( | TestVideoDatabaseDeclaredAspect | , |
| ARowWithoutTheColumnsReadsAsUndeclared | ) |
A row written before the feature existed reads as undeclared rather than as 0:1.
| TEST_F | ( | TestVideoDatabaseDeclaredAspect | , |
| ClearingADeclarationLeavesNoRatio | ) |
"Auto" is the absence of a declaration rather than a value, so clearing must store nothing a resolver could mistake for intent.
| TEST_F | ( | TestVideoDatabaseDeclaredAspect | , |
| ProvenanceAloneIsNotASettingsChange | ) |
A declaration is per-title intent, so it must not read as a change requiring the settings to be re-applied when nothing about it moved.
| TEST_F | ( | TestVideoDatabaseDeclaredAspect | , |
| StoresAndReadsBackOnInsert | ) |
| TEST_F | ( | TestVideoDatabaseDeclaredAspect | , |
| StoresAndReadsBackOnUpdate | ) |
The update path carries a hand-written column list of its own, so a declaration written over an existing settings row exercises entirely different SQL from the insert above.