|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include "filesystem/Directory.h"#include "filesystem/File.h"#include "games/addons/disc/GameClientDiscMergeUtils.h"#include "games/addons/disc/GameClientDiscModel.h"#include "games/addons/disc/GameClientDiscXML.h"#include "test/TestUtils.h"#include "utils/FileUtils.h"#include "utils/StringUtils.h"#include "utils/URIUtils.h"#include <gtest/gtest.h>Classes | |
| class | TestGameClientDiscXMLInvalidSelection |
| class | TestGameClientDiscXMLInvalidSlots |
| class | TestGameClientDiscXMLHistory |
Functions | |
| TEST (TestGameClientDiscXML, SaveLoadRoundtripPreservesSlotTypes) | |
| TEST (TestGameClientDiscXML, SaveLoadSelectedNonePreserved) | |
| TEST (TestGameClientDiscXML, MissingXmlIsNonErrorAndLeavesEmptyModel) | |
| TEST (TestGameClientDiscXML, MalformedXmlFailsAndClearsModel) | |
| TEST (TestGameClientDiscXML, SaveWritesEjectedTrue) | |
| TEST (TestGameClientDiscXML, SaveWritesEjectedFalse) | |
| TEST (TestGameClientDiscXML, LoadRestoresEjectedState) | |
| TEST (TestGameClientDiscXML, LoadRestoresEjectedFalseState) | |
| TEST (TestGameClientDiscXML, LoadMissingEjectedDefaultsToFalse) | |
| TEST (TestGameClientDiscXML, GetXMLPathUsesPerGameDirectoryAndExtensionlessBaseName) | |
| TEST (TestGameClientDiscXML, SaveCreatesPerGameStateFile) | |
| TEST_P (TestGameClientDiscXMLInvalidSelection, RejectsInvalidSelection) | |
| INSTANTIATE_TEST_SUITE_P (InvalidMetadata, TestGameClientDiscXMLInvalidSelection, testing::Values("<selected type=\"disc\" index=\"2\"/>", "<selected type=\"disc\" index=\"1\"/>", "<selected type=\"disc\" index=\"-1\"/>", "<selected type=\"disc\" index=\"abc\"/>", "<selected type=\"disc\" index=\"0junk\"/>", "<selected type=\"disc\" index=\"0.5\"/>", "<selected type=\"disc\" index=\"18446744073709551616\"/>", "<selected type=\"disc\" index=\"\"/>", "<selected type=\"disc\"/>", "<selected index=\"0\"/>", "<selected type=\"unknown\" index=\"0\"/>", "")) | |
| TEST_P (TestGameClientDiscXMLInvalidSlots, RejectsMalformedSlotWithoutShiftingSelection) | |
| INSTANTIATE_TEST_SUITE_P (InvalidMetadata, TestGameClientDiscXMLInvalidSlots, testing::Values(R"(<slot type="disc"/>)", R"(<slot type="disc" path=""/>)", R"(<slot type="unknown" path="/roms/disc1.chd"/>)", R"(<slot path="/roms/disc1.chd"/>)")) | |
| TEST_F (TestGameClientDiscXMLHistory, RemovedAndErasedMediaRemainResolvable) | |
| TEST_F (TestGameClientDiscXMLHistory, ReusedSlotRetainsFormerIdentity) | |
| INSTANTIATE_TEST_SUITE_P | ( | InvalidMetadata | , |
| TestGameClientDiscXMLInvalidSelection | , | ||
| testing::Values("<selected type=\"disc\" index=\"2\"/>", "<selected type=\"disc\" index=\"1\"/>", "<selected type=\"disc\" index=\"-1\"/>", "<selected type=\"disc\" index=\"abc\"/>", "<selected type=\"disc\" index=\"0junk\"/>", "<selected type=\"disc\" index=\"0.5\"/>", "<selected type=\"disc\" index=\"18446744073709551616\"/>", "<selected type=\"disc\" index=\"\"/>", "<selected type=\"disc\"/>", "<selected index=\"0\"/>", "<selected type=\"unknown\" index=\"0\"/>", "") | ) |
| INSTANTIATE_TEST_SUITE_P | ( | InvalidMetadata | , |
| TestGameClientDiscXMLInvalidSlots | , | ||
| testing::Values(R"(<slot type="disc"/>)", R"(<slot type="disc" path=""/>)", R"(<slot type="unknown" path="/roms/disc1.chd"/>)", R"(<slot path="/roms/disc1.chd"/>)") | ) |
| TEST | ( | TestGameClientDiscXML | , |
| GetXMLPathUsesPerGameDirectoryAndExtensionlessBaseName | ) |
| TEST | ( | TestGameClientDiscXML | , |
| LoadMissingEjectedDefaultsToFalse | ) |
| TEST | ( | TestGameClientDiscXML | , |
| LoadRestoresEjectedFalseState | ) |
| TEST | ( | TestGameClientDiscXML | , |
| LoadRestoresEjectedState | ) |
| TEST | ( | TestGameClientDiscXML | , |
| MalformedXmlFailsAndClearsModel | ) |
| TEST | ( | TestGameClientDiscXML | , |
| MissingXmlIsNonErrorAndLeavesEmptyModel | ) |
| TEST | ( | TestGameClientDiscXML | , |
| SaveCreatesPerGameStateFile | ) |
| TEST | ( | TestGameClientDiscXML | , |
| SaveLoadRoundtripPreservesSlotTypes | ) |
| TEST | ( | TestGameClientDiscXML | , |
| SaveLoadSelectedNonePreserved | ) |
| TEST | ( | TestGameClientDiscXML | , |
| SaveWritesEjectedFalse | ) |
| TEST | ( | TestGameClientDiscXML | , |
| SaveWritesEjectedTrue | ) |
| TEST_F | ( | TestGameClientDiscXMLHistory | , |
| RemovedAndErasedMediaRemainResolvable | ) |
| TEST_F | ( | TestGameClientDiscXMLHistory | , |
| ReusedSlotRetainsFormerIdentity | ) |
| TEST_P | ( | TestGameClientDiscXMLInvalidSelection | , |
| RejectsInvalidSelection | ) |
| TEST_P | ( | TestGameClientDiscXMLInvalidSlots | , |
| RejectsMalformedSlotWithoutShiftingSelection | ) |