- GetTimeMicrosecondsFunc,
- SuspendFunc,
- ResumeFunc,
- LoadResourceFunc,
- SaveResourceFunc,
- SaveFileFunc,
- LoadFileFunc,
- LoadShaderBinaryFileFunc,
- SaveShaderBinaryFileFunc,
- CancelLoadFunc,
- GetResourcesFunc,
- IsLoadingFunc,
- SetDpiFunc,
- JoinLoaderThreadsFunc
- } TestFuncEnum;
-
- /** Call this every test */
- void Initialize();
-
- inline void EnableTrace(bool enable) { mTrace.Enable(enable); }
- inline void ResetTrace() { mTrace.Reset(); }
- inline TraceCallStack& GetTrace() { return mTrace; }
-
- bool WasCalled(TestFuncEnum func);
-
- void SetGetTimeMicrosecondsResult(size_t sec, size_t usec);
-
- void IncrementGetTimeResult(size_t milliseconds);
-
- void SetIsLoadingResult(bool result);
-
- void SetGetDefaultFontFamilyResult(std::string result);
-
- void SetGetDefaultFontSizeResult(float result);
-
- void SetGetFontPathResult(std::string& result);
-
- void ClearReadyResources();
-
- void SetResourceLoaded(Integration::ResourceId loadedId,
- Integration::ResourceTypeId loadedType,
- Integration::ResourcePointer loadedResource);
-
- void SetResourceLoadFailed(Integration::ResourceId id,
- Integration::ResourceFailure failure);
-
- void SetResourceSaved(Integration::ResourceId savedId,
- Integration::ResourceTypeId savedType);
-
- void SetResourceSaveFailed(Integration::ResourceId id,
- Integration::ResourceFailure failure);
-
- Integration::ResourceRequest* GetRequest();