Search in sources :

Example 1 with SourceToTargetFinder

use of com.google.idea.blaze.base.run.SourceToTargetFinder in project intellij by bazelbuild.

the class TestMapTest method initTest.

@Override
protected void initTest(@NotNull Container applicationServices, @NotNull Container projectServices) {
    super.initTest(applicationServices, projectServices);
    applicationServices.register(ExperimentService.class, new MockExperimentService());
    mockBlazeProjectDataManager = new MockBlazeProjectDataManager();
    projectServices.register(BlazeProjectDataManager.class, mockBlazeProjectDataManager);
    projectServices.register(SyncCache.class, new SyncCache(project));
    ExtensionPointImpl<SourceToTargetFinder> ep = registerExtensionPoint(SourceToTargetFinder.EP_NAME, SourceToTargetFinder.class);
    ep.registerExtension(new ProjectSourceToTargetFinder());
}
Also used : MockExperimentService(com.google.idea.common.experiments.MockExperimentService) SourceToTargetFinder(com.google.idea.blaze.base.run.SourceToTargetFinder) SyncCache(com.google.idea.blaze.base.sync.SyncCache)

Aggregations

SourceToTargetFinder (com.google.idea.blaze.base.run.SourceToTargetFinder)1 SyncCache (com.google.idea.blaze.base.sync.SyncCache)1 MockExperimentService (com.google.idea.common.experiments.MockExperimentService)1