|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include "ServiceBroker.h"#include "addons/AddonManager.h"#include "addons/addoninfo/AddonType.h"#include "games/controllers/Controller.h"#include "games/controllers/ControllerIDs.h"#include "games/controllers/ControllerTranslator.h"#include "games/controllers/types/ControllerHub.h"#include "games/controllers/types/ControllerNode.h"#include "games/ports/types/PortNode.h"#include "test/TestUtils.h"#include "utils/XBMCTinyXML2.h"#include <gtest/gtest.h>Functions | |
| TEST (TestControllerTreeXML, TranslatePortType) | |
| TEST (TestControllerTreeXML, SerializeSimpleTree) | |
| TEST (TestControllerTreeXML, DeserializeSimpleTree) | |
| TEST (TestControllerTreeXML, SerializeDeserializeRoundTrip) | |
| TEST (TestControllerTreeXML, SerializePortInvalidType) | |
| TEST (TestControllerTreeXML, SerializePortMissingID) | |
| TEST (TestControllerTreeXML, SerializePortNoControllers) | |
| TEST (TestControllerTreeXML, SerializeControllerNodeMissingController) | |
| TEST (TestControllerTreeXML, DeserializePortMissingID) | |
| TEST (TestControllerTreeXML, DeserializeControllerNodeMissingController) | |
| TEST (TestControllerTreeXML, DeserializeControllerNodeUnknownController) | |
| TEST (TestControllerTreeXML, DeserializeHubInvalidPort) | |
| TEST | ( | TestControllerTreeXML | , |
| DeserializeControllerNodeMissingController | |||
| ) |
Fail deserialization when a controller node lacks the controller attribute
| TEST | ( | TestControllerTreeXML | , |
| DeserializeControllerNodeUnknownController | |||
| ) |
Fail deserialization when a controller references an unknown profile
| TEST | ( | TestControllerTreeXML | , |
| DeserializeHubInvalidPort | |||
| ) |
Fail deserialization of a hub when a child port is invalid
| TEST | ( | TestControllerTreeXML | , |
| DeserializePortMissingID | |||
| ) |
Fail deserialization when a port is missing an id
| TEST | ( | TestControllerTreeXML | , |
| DeserializeSimpleTree | |||
| ) |
Deserialize a simple controller tree from XML
The XML contains one controller port accepting the default controller.
| TEST | ( | TestControllerTreeXML | , |
| SerializeControllerNodeMissingController | |||
| ) |
Fail serialization when a controller node lacks a controller profile
| TEST | ( | TestControllerTreeXML | , |
| SerializeDeserializeRoundTrip | |||
| ) |
Round trip a controller tree through serialization and deserialization
| TEST | ( | TestControllerTreeXML | , |
| SerializePortInvalidType | |||
| ) |
Fail serialization for an unknown port type
| TEST | ( | TestControllerTreeXML | , |
| SerializePortMissingID | |||
| ) |
Fail serialization when a port is missing an id
| TEST | ( | TestControllerTreeXML | , |
| SerializePortNoControllers | |||
| ) |
Fail serialization when a port has no accepted controllers
| TEST | ( | TestControllerTreeXML | , |
| SerializeSimpleTree | |||
| ) |
Serialize a minimal controller tree to XML
The tree contains one controller port accepting the default controller.
| TEST | ( | TestControllerTreeXML | , |
| TranslatePortType | |||
| ) |
Verify translation between port type strings and enums