Add post-migration coverage for testObjcProtoAspectPropagatesProtobufProvider()
RELNOTES: None
@@ -69,8 +69,7 @@ public final class ObjcProtoAspectTest extends ObjcRuleTestCase {
assertThat(objcProtoProvider).isNotNull();
}
- @Test
- public void testObjcProtoAspectPropagatesProtobufProvider() throws Exception {
+ private void testObjcProtoAspectPropagatesProtobufProvider() throws Exception {
MockObjcSupport.setupObjcProtoLibrary(scratch);
scratch.file("x/data_filter.pbascii");
scratch.file(
@@ -103,6 +102,18 @@ public final class ObjcProtoAspectTest extends ObjcRuleTestCase {
.containsExactly(includePath, genIncludePath);
}
+ @Test
+ public void testObjcProtoAspectPropagatesProtobufProviderPreMigration() throws Exception {
+ useConfiguration("--incompatible_objc_compile_info_migration=false");
+ testObjcProtoAspectPropagatesProtobufProvider();
+ }
+
+ @Test
+ public void testObjcProtoAspectPropagatesProtobufProviderPostMigration() throws Exception {
+ useConfiguration("--incompatible_objc_compile_info_migration=true");
+ testObjcProtoAspectPropagatesProtobufProvider();
+ }
+
@Test
public void testObjcProtoAspectDoesNotPropagateProviderWhenNoProtos() throws Exception {
scratch.file("x/BUILD",
