use of com.facebook.buck.android.FakeAndroidDirectoryResolver in project buck by facebook.
the class KnownBuildRuleTypesTest method canOverrideMultipleHostPlatforms.
@Test
public void canOverrideMultipleHostPlatforms() throws Exception {
ProjectFilesystem filesystem = new ProjectFilesystem(temporaryFolder.getRoot());
ImmutableMap<String, ImmutableMap<String, String>> sections = ImmutableMap.of("cxx#linux-x86_64", ImmutableMap.of("cache_links", "true"), "cxx#macosx-x86_64", ImmutableMap.of("cache_links", "true"), "cxx#windows-x86_64", ImmutableMap.of("cache_links", "true"));
BuckConfig buckConfig = FakeBuckConfig.builder().setSections(sections).build();
// It should be legal to override multiple host platforms even though
// only one will be practically used in a build.
KnownBuildRuleTypes.createBuilder(buckConfig, filesystem, createExecutor(), new FakeAndroidDirectoryResolver()).build();
}
Aggregations