Search in sources :

Example 6 with Provider

use of com.google.idea.blaze.base.model.primitives.Kind.Provider in project intellij by bazelbuild.

the class ReverseDependencyMapTest method initTest.

@Override
protected void initTest(@NotNull Container applicationServices, @NotNull Container projectServices) {
    super.initTest(applicationServices, projectServices);
    ExtensionPointImpl<Provider> kindProvider = registerExtensionPoint(Kind.Provider.EP_NAME, Kind.Provider.class);
    kindProvider.registerExtension(new GenericBlazeRules());
    applicationServices.register(Kind.ApplicationState.class, new Kind.ApplicationState());
}
Also used : Kind(com.google.idea.blaze.base.model.primitives.Kind) GenericBlazeRules(com.google.idea.blaze.base.model.primitives.GenericBlazeRules) Provider(com.google.idea.blaze.base.model.primitives.Kind.Provider)

Example 7 with Provider

use of com.google.idea.blaze.base.model.primitives.Kind.Provider in project intellij by bazelbuild.

the class BlazeModuleSystemTest method initTest.

@Override
protected void initTest(Container applicationServices, Container projectServices) {
    ExtensionPointImpl<Provider> kindProvider = registerExtensionPoint(Kind.Provider.EP_NAME, Kind.Provider.class);
    kindProvider.registerExtension(new AndroidBlazeRules());
    applicationServices.register(Kind.ApplicationState.class, new Kind.ApplicationState());
    module = new MockModule(project, () -> {
    });
    // For the 'blaze.class.file.finder.name' experiment.
    applicationServices.register(ExperimentService.class, new MockExperimentService());
    // For Blaze.isBlazeProject.
    mockBlazeImportSettings(projectServices);
    createMocksForAddDependency(applicationServices, projectServices);
    service = new BlazeProjectSystem(project);
}
Also used : MockExperimentService(com.google.idea.common.experiments.MockExperimentService) AndroidBlazeRules(com.google.idea.blaze.java.AndroidBlazeRules) MockModule(com.intellij.mock.MockModule) Kind(com.google.idea.blaze.base.model.primitives.Kind) VirtualFileSystemProvider(com.google.idea.blaze.base.io.VirtualFileSystemProvider) Provider(com.google.idea.blaze.base.model.primitives.Kind.Provider)

Aggregations

Kind (com.google.idea.blaze.base.model.primitives.Kind)7 Provider (com.google.idea.blaze.base.model.primitives.Kind.Provider)7 BlazeImportSettingsManager (com.google.idea.blaze.base.settings.BlazeImportSettingsManager)5 MockExperimentService (com.google.idea.common.experiments.MockExperimentService)5 FileOperationProvider (com.google.idea.blaze.base.io.FileOperationProvider)4 BlazeImportSettings (com.google.idea.blaze.base.settings.BlazeImportSettings)4 MockBlazeExecutor (com.google.idea.blaze.base.async.executor.MockBlazeExecutor)3 BazelBuildSystemProvider (com.google.idea.blaze.base.bazel.BazelBuildSystemProvider)3 BuildSystemProvider (com.google.idea.blaze.base.bazel.BuildSystemProvider)3 VirtualFileSystemProvider (com.google.idea.blaze.base.io.VirtualFileSystemProvider)3 GenericBlazeRules (com.google.idea.blaze.base.model.primitives.GenericBlazeRules)3 AndroidBlazeRules (com.google.idea.blaze.java.AndroidBlazeRules)3 MockPrefetchService (com.google.idea.blaze.base.prefetch.MockPrefetchService)2 BlazeContext (com.google.idea.blaze.base.scope.BlazeContext)2 MockRemoteArtifactPrefetcher (com.google.idea.blaze.base.sync.MockRemoteArtifactPrefetcher)2 ArtifactLocationDecoder (com.google.idea.blaze.base.sync.workspace.ArtifactLocationDecoder)2 MockArtifactLocationDecoder (com.google.idea.blaze.base.sync.workspace.MockArtifactLocationDecoder)2 JavaBlazeRules (com.google.idea.blaze.java.JavaBlazeRules)2 JavaLikeLanguage (com.google.idea.blaze.java.sync.source.JavaLikeLanguage)2 JavaSourcePackageReader (com.google.idea.blaze.java.sync.source.JavaSourcePackageReader)2