Searched refs:fakeContext (Results 1 – 2 of 2) sorted by relevance
21 type fakeContext struct{} struct23 func (fakeContext) Done() <-chan struct{} { return nil } argument24 func (fakeContext) Err() error { panic("should not be called") } argument26 func reqContext(r *http.Request) fakeContext {27 return fakeContext{}
755 struct _cmsContext_struct fakeContext; in cmsCreateContext() local757 _cmsInstallAllocFunctions(_cmsFindMemoryPlugin(Plugin), &fakeContext.DefaultMemoryManager); in cmsCreateContext()759 fakeContext.chunks[UserPtr] = UserData; in cmsCreateContext()760 fakeContext.chunks[MemPlugin] = &fakeContext.DefaultMemoryManager; in cmsCreateContext()763 ctx = (struct _cmsContext_struct*) _cmsMalloc(&fakeContext, sizeof(struct _cmsContext_struct)); in cmsCreateContext()771 …memcpy(&ctx->DefaultMemoryManager, &fakeContext.DefaultMemoryManager, sizeof(_cmsMemPluginChunk)); in cmsCreateContext()906 struct _cmsContext_struct fakeContext; in cmsDeleteContext() local909 …memcpy(&fakeContext.DefaultMemoryManager, &ctx->DefaultMemoryManager, sizeof(ctx->DefaultMemoryMan… in cmsDeleteContext()911 fakeContext.chunks[UserPtr] = ctx ->chunks[UserPtr]; in cmsDeleteContext()912 fakeContext.chunks[MemPlugin] = &fakeContext.DefaultMemoryManager; in cmsDeleteContext()[all …]