aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/test/java/com/google/devtools/build/lib/rules/proto/ProtoCompileActionBuilderTest.java
diff options
context:
space:
mode:
authorGravatar Carmi Grushko <carmi@google.com>2016-11-22 20:26:32 +0000
committerGravatar Dmitry Lomov <dslomov@google.com>2016-11-23 08:50:59 +0000
commitc944c4d9fc5cbad830b69383a76ffff463088c7e (patch)
treef82e66e9b269272e53bd8ade0f75f3f19ec7db16 /src/test/java/com/google/devtools/build/lib/rules/proto/ProtoCompileActionBuilderTest.java
parent0aac8f7d4f2cea1834df4aaf4cad35d3425d874b (diff)
Alias proto_library's produce a descriptor set that contains all srcs of its dependencies.
(alias proto_library's are those with a deps attribute but no srcs attribute) RELNOTES: Alias proto_library's produce a descriptor set that contains all srcs of its dependencies. -- MOS_MIGRATED_REVID=139940475
Diffstat (limited to 'src/test/java/com/google/devtools/build/lib/rules/proto/ProtoCompileActionBuilderTest.java')
-rw-r--r--src/test/java/com/google/devtools/build/lib/rules/proto/ProtoCompileActionBuilderTest.java20
1 files changed, 15 insertions, 5 deletions
diff --git a/src/test/java/com/google/devtools/build/lib/rules/proto/ProtoCompileActionBuilderTest.java b/src/test/java/com/google/devtools/build/lib/rules/proto/ProtoCompileActionBuilderTest.java
index abbdac5d2c..d9f7a13bad 100644
--- a/src/test/java/com/google/devtools/build/lib/rules/proto/ProtoCompileActionBuilderTest.java
+++ b/src/test/java/com/google/devtools/build/lib/rules/proto/ProtoCompileActionBuilderTest.java
@@ -82,7 +82,9 @@ public class ProtoCompileActionBuilderTest {
new ToolchainInvocation(
"dontcare_because_no_plugin", toolchainNoPlugin, "foo.srcjar"),
new ToolchainInvocation("pluginName", toolchainWithPlugin, "bar.srcjar")),
- supportData,
+ supportData.getDirectProtoSources(),
+ supportData.getTransitiveImports(),
+ supportData.getProtosInDirectDeps(),
true /* allowServices */,
ImmutableList.<String>of() /* protocOpts */);
@@ -118,7 +120,9 @@ public class ProtoCompileActionBuilderTest {
CustomCommandLine cmdLine =
createCommandLineFromToolchains(
ImmutableList.of(new ToolchainInvocation("dontcare", toolchain, "foo.srcjar")),
- supportData,
+ supportData.getDirectProtoSources(),
+ supportData.getTransitiveImports(),
+ supportData.getProtosInDirectDeps(),
true /* allowServices */,
ImmutableList.<String>of() /* protocOpts */);
@@ -145,7 +149,9 @@ public class ProtoCompileActionBuilderTest {
CustomCommandLine cmdLine =
createCommandLineFromToolchains(
ImmutableList.<ToolchainInvocation>of(),
- supportData,
+ supportData.getDirectProtoSources(),
+ supportData.getTransitiveImports(),
+ supportData.getProtosInDirectDeps(),
false /* allowServices */,
ImmutableList.of("--foo", "--bar") /* protocOpts */);
@@ -184,7 +190,9 @@ public class ProtoCompileActionBuilderTest {
CustomCommandLine cmdLine =
createCommandLineFromToolchains(
ImmutableList.of(new ToolchainInvocation("pluginName", toolchain, outReplacement)),
- supportData,
+ supportData.getDirectProtoSources(),
+ supportData.getTransitiveImports(),
+ supportData.getProtosInDirectDeps(),
true /* allowServices */,
ImmutableList.<String>of() /* protocOpts */);
@@ -226,7 +234,9 @@ public class ProtoCompileActionBuilderTest {
ImmutableList.of(
new ToolchainInvocation("pluginName", toolchain1, "outReplacement"),
new ToolchainInvocation("pluginName", toolchain2, "outReplacement")),
- supportData,
+ supportData.getDirectProtoSources(),
+ supportData.getTransitiveImports(),
+ supportData.getProtosInDirectDeps(),
true /* allowServices */,
ImmutableList.<String>of() /* protocOpts */);
fail("Expected an exception");