|
Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
#include "GUIUserMessages.h"#include "ServiceBroker.h"#include "ServiceManager.h"#include "URL.h"#include "addons/AddonEvents.h"#include "addons/AddonManager.h"#include "addons/Repository.h"#include "addons/RepositoryUpdater.h"#include "addons/addoninfo/AddonInfoBuilder.h"#include "application/Application.h"#include "filesystem/File.h"#include "games/addons/GameClient.h"#include "games/addons/cheats/GameClientCheats.h"#include "guilib/GUIComponent.h"#include "guilib/GUIWindowManager.h"#include "jobs/JobManager.h"#include "test/TestUtils.h"#include "utils/URIUtils.h"#include "utils/XBMCTinyXML2.h"#include <algorithm>#include <deque>#include <filesystem>#include <functional>#include <future>#include <memory>#include <string>#include <system_error>#include <vector>#include <gtest/gtest.h>Classes | |
| class | TestGameClientCheats |
Functions | |
| TEST_F (TestGameClientCheats, SuccessfulInstallationFindsCheats) | |
| TEST_F (TestGameClientCheats, SuccessfulInstallationCompletesEmptyLookup) | |
| TEST_F (TestGameClientCheats, FailedOrCancelledInstallationAllowsRetry) | |
| TEST_F (TestGameClientCheats, FailedEnableDoesNotReportAnEmptyPack) | |
| TEST_F (TestGameClientCheats, DatabaseBecomingAvailableBeforeJobRunsIsSuccess) | |
| TEST_F (TestGameClientCheats, ExternalInstallOrEnableReloadsDuringGameplay) | |
| TEST_F (TestGameClientCheats, DuplicateEventsAndInstallPreserveUserChoices) | |
| TEST_F (TestGameClientCheats, UpdatedSourcePreservesUnchangedCheatsAndRemovesMissingCodes) | |
| TEST_F (TestGameClientCheats, DisableOrRemovalDropsAppliedCheats) | |
| TEST_F (TestGameClientCheats, UnrelatedEventsDoNotQueuePackLookups) | |
| TEST_F (TestGameClientCheats, UnsupportedClientsNeverSearchPacks) | |
| TEST_F (TestGameClientCheats, InstallableDatabaseDoesNotCountAsAMatchingPack) | |
| TEST_F (TestGameClientCheats, SupportedClientWithNoMatchStillExposesCheatCapability) | |
| TEST_F (TestGameClientCheats, ExpectedFilenameUsesTheGamePathAndSurvivesAnEmptyLookup) | |
| TEST_F (TestGameClientCheats, PendingReloadAndInstallationCannotReachReplacementGame) | |
| TEST_F (TestGameClientCheats, ClosingDuringLookupDiscardsTheResult) | |
| TEST_F (TestGameClientCheats, PendingJobsDoNotKeepTheClientAlive) | |
| TEST_F (TestGameClientCheats, CallbackDoesNotWaitForTheClientLock) | |
| TEST_F (TestGameClientCheats, SuccessfulEnableLoadsCheats) | |
| TEST_F (TestGameClientCheats, AlreadyAvailableDatabaseDoesNotReloadAnUnchangedPack) | |
| TEST_F (TestGameClientCheats, ReplacementDuringInstallationDiscardsTheOldLookup) | |
| TEST_F (TestGameClientCheats, ReplacementDuringLookupDiscardsTheOldResult) | |
| TEST_F (TestGameClientCheats, DifferentSourceDoesNotInheritEnabledChoices) | |
| TEST_F (TestGameClientCheats, RepositoryEventsInvalidateAvailabilityWithoutLoadingPacks) | |
| TEST_F (TestGameClientCheats, IgnoredEventDuringDiscoveryDoesNotDiscardThePack) | |
| TEST_F (TestGameClientCheats, UnrelatedStateEventsDuringDiscoveryDoNotDiscardOrReloadThePack) | |
| TEST_F (TestGameClientCheats, RemovedSourceDuringInitialDiscoveryRejectsStaleCandidates) | |
| TEST_F (TestGameClientCheats, NewResourceDuringDiscoveryRejectsIncompleteCandidates) | |
| TEST_F (TestGameClientCheats, RepositoryUpdateInvalidatesUnavailableDatabaseAndRefreshesDialog) | |
| TEST_F (TestGameClientCheats, RepositoryUpdateDoesNotDiscardOrReloadDiscovery) | |
| TEST_F (TestGameClientCheats, RepositoryCallbackDoesNotWaitForTheClientLock) | |
| TEST_F (TestGameClientCheats, ClosingUnsubscribesWhileRepositoryCallbackIsRunning) | |
| TEST_F (TestGameClientCheats, ExternalReloadQueuesDialogRefreshOnGuiThread) | |
| TEST_F (TestGameClientCheats, ClosingUnsubscribesWhileCallbackIsStillScheduling) | |
| TEST_F (TestGameClientCheats, DuplicateCheatsKeepTheirIndividualEnabledStates) | |
| TEST_F (TestGameClientCheats, RemovedResourceIsRecognizedFromPreviousSources) | |
| TEST_F (TestGameClientCheats, GuiInfoQueriesDoNotRunQueuedPackLookups) | |
| TEST_F (TestGameClientCheats, InstallationSendsOneRefreshIncludingWhenItFails) | |
| TEST_F (TestGameClientCheats, RemovedDatabaseDuringLookupDoesNotReportAnEmptyPack) | |
| TEST_F (TestGameClientCheats, StaleDialogCannotEnableADifferentCheatAfterReload) | |
| TEST_F (TestGameClientCheats, SystemLabelsKeepRawDirectoryAndArchiveIdentities) | |
| TEST_F (TestGameClientCheats, MissingAddonNameFallsBackToRedactedIdentifier) | |
| TEST_F (TestGameClientCheats, CustomSystemLabelsUseConfiguredRoot) | |
| TEST_F (TestGameClientCheats, CustomVfsRootRedactsCredentials) | |
| TEST_F (TestGameClientCheats, DuplicateVisibleRowsDisambiguateOnlyCollisionsAndKeepSelection) | |
| TEST_F (TestGameClientCheats, SameSourceDirectoryAndArchiveRowsRemainDistinct) | |
| TEST_F (TestGameClientCheats, MultipleInstalledPacksWithOnlyOneMatchingFilenameLoadAutomatically) | |
| TEST_F (TestGameClientCheats, MatchingSystemFoldersRequireAnExplicitChoice) | |
| TEST_F (TestGameClientCheats, MatchesAcrossAddonsRequireSelectionRegardlessOfOrder) | |
| TEST_F (TestGameClientCheats, CustomFolderAndDirectFileKeepPrecedence) | |
| TEST_F (TestGameClientCheats, CustomFolderWithoutMatchFallsBackToAddons) | |
| TEST_F (TestGameClientCheats, ChoiceSurvivesReopeningAndANewEmulatorInstance) | |
| TEST_F (TestGameClientCheats, CancelledChooserDoesNotChangeSelectionOrEnabledCheats) | |
| TEST_F (TestGameClientCheats, RemovedSelectionRequiresChoiceThenLoadsSoleRemainingMatch) | |
| TEST_F (TestGameClientCheats, SwitchingPacksResetsAppliedCheatsWithoutTransferringStates) | |
| TEST_F (TestGameClientCheats, SelectionRevalidatesRemovedCandidatesBeforeCommitting) | |
| TEST_F (TestGameClientCheats, StaleChooserCannotSelectForAReplacementSession) | |
| TEST_F (TestGameClientCheats, ClosingDuringSelectionDiscardsThePackAndPreference) | |
| TEST_F (TestGameClientCheats, AddonChangeDuringSelectionDiscardsTheStaleResult) | |
| TEST_F (TestGameClientCheats, TwoSystemArchivesInOneAddonAreDistinctPacks) | |
| TEST_F (TestGameClientCheats, UnusableCustomFileKeepsFallbackToAddon) | |
| TEST_F (TestGameClientCheats, MatchingPackDoesNotRequireUsableCheatEntries) | |
| TEST_F (TestGameClientCheats, EmptyMatchingArchivesRemainAmbiguousUntilSelected) | |
| TEST_F (TestGameClientCheats, ReplacementDuringAmbiguousDiscoveryDiscardsCandidates) | |
| TEST_F (TestGameClientCheats, RememberedCustomSelectionRemainsValidWhenItsCheatsBecomeEmpty) | |
| TEST_F | ( | TestGameClientCheats | , |
| AddonChangeDuringSelectionDiscardsTheStaleResult | ) |
| TEST_F | ( | TestGameClientCheats | , |
| AlreadyAvailableDatabaseDoesNotReloadAnUnchangedPack | ) |
| TEST_F | ( | TestGameClientCheats | , |
| CallbackDoesNotWaitForTheClientLock | ) |
| TEST_F | ( | TestGameClientCheats | , |
| CancelledChooserDoesNotChangeSelectionOrEnabledCheats | ) |
| TEST_F | ( | TestGameClientCheats | , |
| ChoiceSurvivesReopeningAndANewEmulatorInstance | ) |
| TEST_F | ( | TestGameClientCheats | , |
| ClosingDuringLookupDiscardsTheResult | ) |
| TEST_F | ( | TestGameClientCheats | , |
| ClosingDuringSelectionDiscardsThePackAndPreference | ) |
| TEST_F | ( | TestGameClientCheats | , |
| ClosingUnsubscribesWhileCallbackIsStillScheduling | ) |
| TEST_F | ( | TestGameClientCheats | , |
| ClosingUnsubscribesWhileRepositoryCallbackIsRunning | ) |
| TEST_F | ( | TestGameClientCheats | , |
| CustomFolderAndDirectFileKeepPrecedence | ) |
| TEST_F | ( | TestGameClientCheats | , |
| CustomFolderWithoutMatchFallsBackToAddons | ) |
| TEST_F | ( | TestGameClientCheats | , |
| CustomSystemLabelsUseConfiguredRoot | ) |
| TEST_F | ( | TestGameClientCheats | , |
| CustomVfsRootRedactsCredentials | ) |
| TEST_F | ( | TestGameClientCheats | , |
| DatabaseBecomingAvailableBeforeJobRunsIsSuccess | ) |
| TEST_F | ( | TestGameClientCheats | , |
| DifferentSourceDoesNotInheritEnabledChoices | ) |
| TEST_F | ( | TestGameClientCheats | , |
| DisableOrRemovalDropsAppliedCheats | ) |
| TEST_F | ( | TestGameClientCheats | , |
| DuplicateCheatsKeepTheirIndividualEnabledStates | ) |
| TEST_F | ( | TestGameClientCheats | , |
| DuplicateEventsAndInstallPreserveUserChoices | ) |
| TEST_F | ( | TestGameClientCheats | , |
| DuplicateVisibleRowsDisambiguateOnlyCollisionsAndKeepSelection | ) |
| TEST_F | ( | TestGameClientCheats | , |
| EmptyMatchingArchivesRemainAmbiguousUntilSelected | ) |
| TEST_F | ( | TestGameClientCheats | , |
| ExpectedFilenameUsesTheGamePathAndSurvivesAnEmptyLookup | ) |
| TEST_F | ( | TestGameClientCheats | , |
| ExternalInstallOrEnableReloadsDuringGameplay | ) |
| TEST_F | ( | TestGameClientCheats | , |
| ExternalReloadQueuesDialogRefreshOnGuiThread | ) |
| TEST_F | ( | TestGameClientCheats | , |
| FailedEnableDoesNotReportAnEmptyPack | ) |
| TEST_F | ( | TestGameClientCheats | , |
| FailedOrCancelledInstallationAllowsRetry | ) |
| TEST_F | ( | TestGameClientCheats | , |
| GuiInfoQueriesDoNotRunQueuedPackLookups | ) |
| TEST_F | ( | TestGameClientCheats | , |
| IgnoredEventDuringDiscoveryDoesNotDiscardThePack | ) |
| TEST_F | ( | TestGameClientCheats | , |
| InstallableDatabaseDoesNotCountAsAMatchingPack | ) |
| TEST_F | ( | TestGameClientCheats | , |
| InstallationSendsOneRefreshIncludingWhenItFails | ) |
| TEST_F | ( | TestGameClientCheats | , |
| MatchesAcrossAddonsRequireSelectionRegardlessOfOrder | ) |
| TEST_F | ( | TestGameClientCheats | , |
| MatchingPackDoesNotRequireUsableCheatEntries | ) |
| TEST_F | ( | TestGameClientCheats | , |
| MatchingSystemFoldersRequireAnExplicitChoice | ) |
| TEST_F | ( | TestGameClientCheats | , |
| MissingAddonNameFallsBackToRedactedIdentifier | ) |
| TEST_F | ( | TestGameClientCheats | , |
| MultipleInstalledPacksWithOnlyOneMatchingFilenameLoadAutomatically | ) |
| TEST_F | ( | TestGameClientCheats | , |
| NewResourceDuringDiscoveryRejectsIncompleteCandidates | ) |
| TEST_F | ( | TestGameClientCheats | , |
| PendingJobsDoNotKeepTheClientAlive | ) |
| TEST_F | ( | TestGameClientCheats | , |
| PendingReloadAndInstallationCannotReachReplacementGame | ) |
| TEST_F | ( | TestGameClientCheats | , |
| RememberedCustomSelectionRemainsValidWhenItsCheatsBecomeEmpty | ) |
| TEST_F | ( | TestGameClientCheats | , |
| RemovedDatabaseDuringLookupDoesNotReportAnEmptyPack | ) |
| TEST_F | ( | TestGameClientCheats | , |
| RemovedResourceIsRecognizedFromPreviousSources | ) |
| TEST_F | ( | TestGameClientCheats | , |
| RemovedSelectionRequiresChoiceThenLoadsSoleRemainingMatch | ) |
| TEST_F | ( | TestGameClientCheats | , |
| RemovedSourceDuringInitialDiscoveryRejectsStaleCandidates | ) |
| TEST_F | ( | TestGameClientCheats | , |
| ReplacementDuringAmbiguousDiscoveryDiscardsCandidates | ) |
| TEST_F | ( | TestGameClientCheats | , |
| ReplacementDuringInstallationDiscardsTheOldLookup | ) |
| TEST_F | ( | TestGameClientCheats | , |
| ReplacementDuringLookupDiscardsTheOldResult | ) |
| TEST_F | ( | TestGameClientCheats | , |
| RepositoryCallbackDoesNotWaitForTheClientLock | ) |
| TEST_F | ( | TestGameClientCheats | , |
| RepositoryEventsInvalidateAvailabilityWithoutLoadingPacks | ) |
| TEST_F | ( | TestGameClientCheats | , |
| RepositoryUpdateDoesNotDiscardOrReloadDiscovery | ) |
| TEST_F | ( | TestGameClientCheats | , |
| RepositoryUpdateInvalidatesUnavailableDatabaseAndRefreshesDialog | ) |
| TEST_F | ( | TestGameClientCheats | , |
| SameSourceDirectoryAndArchiveRowsRemainDistinct | ) |
| TEST_F | ( | TestGameClientCheats | , |
| SelectionRevalidatesRemovedCandidatesBeforeCommitting | ) |
| TEST_F | ( | TestGameClientCheats | , |
| StaleChooserCannotSelectForAReplacementSession | ) |
| TEST_F | ( | TestGameClientCheats | , |
| StaleDialogCannotEnableADifferentCheatAfterReload | ) |
| TEST_F | ( | TestGameClientCheats | , |
| SuccessfulEnableLoadsCheats | ) |
| TEST_F | ( | TestGameClientCheats | , |
| SuccessfulInstallationCompletesEmptyLookup | ) |
| TEST_F | ( | TestGameClientCheats | , |
| SuccessfulInstallationFindsCheats | ) |
| TEST_F | ( | TestGameClientCheats | , |
| SupportedClientWithNoMatchStillExposesCheatCapability | ) |
| TEST_F | ( | TestGameClientCheats | , |
| SwitchingPacksResetsAppliedCheatsWithoutTransferringStates | ) |
| TEST_F | ( | TestGameClientCheats | , |
| SystemLabelsKeepRawDirectoryAndArchiveIdentities | ) |
| TEST_F | ( | TestGameClientCheats | , |
| TwoSystemArchivesInOneAddonAreDistinctPacks | ) |
| TEST_F | ( | TestGameClientCheats | , |
| UnrelatedEventsDoNotQueuePackLookups | ) |
| TEST_F | ( | TestGameClientCheats | , |
| UnrelatedStateEventsDuringDiscoveryDoNotDiscardOrReloadThePack | ) |
| TEST_F | ( | TestGameClientCheats | , |
| UnsupportedClientsNeverSearchPacks | ) |
| TEST_F | ( | TestGameClientCheats | , |
| UnusableCustomFileKeepsFallbackToAddon | ) |
| TEST_F | ( | TestGameClientCheats | , |
| UpdatedSourcePreservesUnchangedCheatsAndRemovesMissingCodes | ) |