testing: rework discovery side of testing to new apis

This commit is contained in:
Connor Peet
2021-04-14 17:10:46 -07:00
parent 22dd903084
commit bec017d389
16 changed files with 558 additions and 354 deletions

View File

@@ -123,7 +123,7 @@ export class MainThreadTesting extends Disposable implements MainThreadTestingSh
/**
* @inheritdoc
*/
public $registerTestProvider(id: string) {
public $registerTestController(id: string) {
const disposable = this.testService.registerTestController(id, {
runTests: (req, token) => this.proxy.$runTestsForProvider(req, token),
lookupTest: test => this.proxy.$lookupTest(test),
@@ -136,7 +136,7 @@ export class MainThreadTesting extends Disposable implements MainThreadTestingSh
/**
* @inheritdoc
*/
public $unregisterTestProvider(id: string) {
public $unregisterTestController(id: string) {
this.testProviderRegistrations.get(id)?.dispose();
this.testProviderRegistrations.delete(id);
}