Kodi Documentation 23.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
TestScriptInvocationManager.cpp File Reference
#include "URL.h"
#include "addons/Addon.h"
#include "addons/addoninfo/AddonInfo.h"
#include "addons/addoninfo/AddonInfoBuilder.h"
#include "addons/addoninfo/AddonType.h"
#include "filesystem/File.h"
#include "interfaces/generic/ILanguageInvocationHandler.h"
#include "interfaces/generic/ILanguageInvoker.h"
#include "interfaces/generic/RunningScriptsHandler.h"
#include "interfaces/generic/ScriptInvocationManager.h"
#include "interfaces/generic/ScriptRunner.h"
#include "test/TestUtils.h"
#include "utils/URIUtils.h"
#include <algorithm>
#include <atomic>
#include <chrono>
#include <condition_variable>
#include <functional>
#include <future>
#include <memory>
#include <mutex>
#include <optional>
#include <set>
#include <string>
#include <thread>
#include <vector>
#include <gtest/gtest.h>

Classes

class  TestScriptInvocationManager
 

Typedefs

using Affinity = CScriptInvocationManager::CAffinity
 

Functions

 TEST_F (TestScriptInvocationManager, AFinishedRunsThreadRunsTheScriptAgainWithItsHandle)
 
 TEST_F (TestScriptInvocationManager, ARunWithoutAHandleRunsOnAKeptThread)
 
 TEST_F (TestScriptInvocationManager, ARunWithoutAHandleThatIsNotQueuedLetsItsThreadGo)
 
 TEST_F (TestScriptInvocationManager, APluginOtherThanAScraperKeepsOneThread)
 
 TEST_F (TestScriptInvocationManager, OnlyAFewThreadsAreKept)
 
 TEST_F (TestScriptInvocationManager, AScriptsKeptThreadsAreKnownByItsPathOnceARunAlongsideEnds)
 
 TEST_F (TestScriptInvocationManager, StoppingTheRunningScriptsStopsEachRunOfAScript)
 
 TEST_F (TestScriptInvocationManager, AThreadKeptForAScriptIsLetGoWhenAnotherIsRun)
 
 TEST_F (TestScriptInvocationManager, ARunWithoutAHandleLetsGoOfAThreadKeptForAnotherScript)
 
 TEST_F (TestScriptInvocationManager, ARunGivenItsOwnInvokerLetsGoOfAThreadKeptForAnotherScript)
 
 TEST_F (TestScriptInvocationManager, TheRunsOfAnAffinityKeepToItsThread)
 
 TEST_F (TestScriptInvocationManager, AThreadBoundToAnAffinityIsLeftToItsRunsUntilItGoes)
 
 TEST_F (TestScriptInvocationManager, AThreadBoundToAnAffinityIsKeptWhenAnotherScriptIsRun)
 
 TEST_F (TestScriptInvocationManager, ARunWaitsWhileAnotherRunOfItsAffinityHasItsThread)
 
 TEST_F (TestScriptInvocationManager, ARunDoesntWaitForASlowRunOfItsAffinity)
 
 TEST_F (TestScriptInvocationManager, ARunNotWaitingForItsThreadBorrowsAnIdleOneOfAnotherAffinity)
 
 TEST_F (TestScriptInvocationManager, ARunWaitsForItsThreadWhileAnotherAffinityHasBorrowedIt)
 
 TEST_F (TestScriptInvocationManager, AStoppedCallerStopsWaitingForItsRun)
 
 TEST_F (TestScriptInvocationManager, AStoppedCallerStopsWaitingForItsCancelledRun)
 
 TEST_F (TestScriptInvocationManager, AStoppedCallerStopsWaitingForItsThread)
 

Typedef Documentation

◆ Affinity

Function Documentation

◆ TEST_F() [1/20]

TEST_F ( TestScriptInvocationManager ,
AFinishedRunsThreadRunsTheScriptAgainWithItsHandle  )

◆ TEST_F() [2/20]

TEST_F ( TestScriptInvocationManager ,
APluginOtherThanAScraperKeepsOneThread  )

◆ TEST_F() [3/20]

TEST_F ( TestScriptInvocationManager ,
ARunDoesntWaitForASlowRunOfItsAffinity  )

◆ TEST_F() [4/20]

TEST_F ( TestScriptInvocationManager ,
ARunGivenItsOwnInvokerLetsGoOfAThreadKeptForAnotherScript  )

◆ TEST_F() [5/20]

TEST_F ( TestScriptInvocationManager ,
ARunNotWaitingForItsThreadBorrowsAnIdleOneOfAnotherAffinity  )

◆ TEST_F() [6/20]

TEST_F ( TestScriptInvocationManager ,
ARunWaitsForItsThreadWhileAnotherAffinityHasBorrowedIt  )

◆ TEST_F() [7/20]

TEST_F ( TestScriptInvocationManager ,
ARunWaitsWhileAnotherRunOfItsAffinityHasItsThread  )

◆ TEST_F() [8/20]

TEST_F ( TestScriptInvocationManager ,
ARunWithoutAHandleLetsGoOfAThreadKeptForAnotherScript  )

◆ TEST_F() [9/20]

TEST_F ( TestScriptInvocationManager ,
ARunWithoutAHandleRunsOnAKeptThread  )

◆ TEST_F() [10/20]

TEST_F ( TestScriptInvocationManager ,
ARunWithoutAHandleThatIsNotQueuedLetsItsThreadGo  )

◆ TEST_F() [11/20]

TEST_F ( TestScriptInvocationManager ,
AScriptsKeptThreadsAreKnownByItsPathOnceARunAlongsideEnds  )

◆ TEST_F() [12/20]

TEST_F ( TestScriptInvocationManager ,
AStoppedCallerStopsWaitingForItsCancelledRun  )

◆ TEST_F() [13/20]

TEST_F ( TestScriptInvocationManager ,
AStoppedCallerStopsWaitingForItsRun  )

◆ TEST_F() [14/20]

TEST_F ( TestScriptInvocationManager ,
AStoppedCallerStopsWaitingForItsThread  )

◆ TEST_F() [15/20]

TEST_F ( TestScriptInvocationManager ,
AThreadBoundToAnAffinityIsKeptWhenAnotherScriptIsRun  )

◆ TEST_F() [16/20]

TEST_F ( TestScriptInvocationManager ,
AThreadBoundToAnAffinityIsLeftToItsRunsUntilItGoes  )

◆ TEST_F() [17/20]

TEST_F ( TestScriptInvocationManager ,
AThreadKeptForAScriptIsLetGoWhenAnotherIsRun  )

◆ TEST_F() [18/20]

TEST_F ( TestScriptInvocationManager ,
OnlyAFewThreadsAreKept  )

◆ TEST_F() [19/20]

TEST_F ( TestScriptInvocationManager ,
StoppingTheRunningScriptsStopsEachRunOfAScript  )

◆ TEST_F() [20/20]

TEST_F ( TestScriptInvocationManager ,
TheRunsOfAnAffinityKeepToItsThread  )