Controller to be injected into tests, that allows for mocking and flushing of requests.
abstract class HttpTestingController { abstract match(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean)): TestRequest[]; abstract expectOne(url: string, description?: string): TestRequest; abstract expectOne(params: RequestMatch, description?: string): TestRequest; abstract expectOne(matchFn: (req: HttpRequest<any>) => boolean, description?: string): TestRequest; abstract expectOne(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): TestRequest; abstract expectOne(url: string, description?: string): TestRequest; abstract expectOne(params: RequestMatch, description?: string): TestRequest; abstract expectOne(matchFn: (req: HttpRequest<any>) => boolean, description?: string): TestRequest; abstract expectOne(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): TestRequest; abstract expectOne(url: string, description?: string): TestRequest; abstract expectOne(params: RequestMatch, description?: string): TestRequest; abstract expectOne(matchFn: (req: HttpRequest<any>) => boolean, description?: string): TestRequest; abstract expectOne(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): TestRequest; abstract expectOne(url: string, description?: string): TestRequest; abstract expectOne(params: RequestMatch, description?: string): TestRequest; abstract expectOne(matchFn: (req: HttpRequest<any>) => boolean, description?: string): TestRequest; abstract expectOne(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): TestRequest; abstract expectNone(url: string, description?: string): void; abstract expectNone(params: RequestMatch, description?: string): void; abstract expectNone(matchFn: (req: HttpRequest<any>) => boolean, description?: string): void; abstract expectNone(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): void; abstract expectNone(url: string, description?: string): void; abstract expectNone(params: RequestMatch, description?: string): void; abstract expectNone(matchFn: (req: HttpRequest<any>) => boolean, description?: string): void; abstract expectNone(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): void; abstract expectNone(url: string, description?: string): void; abstract expectNone(params: RequestMatch, description?: string): void; abstract expectNone(matchFn: (req: HttpRequest<any>) => boolean, description?: string): void; abstract expectNone(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): void; abstract expectNone(url: string, description?: string): void; abstract expectNone(params: RequestMatch, description?: string): void; abstract expectNone(matchFn: (req: HttpRequest<any>) => boolean, description?: string): void; abstract expectNone(match: string | RequestMatch | ((req: HttpRequest<any>) => boolean), description?: string): void; abstract verify(opts?: { ignoreCancelled?: boolean; }): void;}