Merge pull request #22113 from uecasm/fix-cpp-tools-paths

Grpc.Tools: Fix cpp paths in tools to match actual codegen.
pull/22965/head
Jan Tattermusch 5 years ago committed by GitHub
commit ad7c94c944
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      src/csharp/Grpc.Tools.Tests/CppGeneratorTest.cs
  2. 4
      src/csharp/Grpc.Tools/GeneratorServices.cs

@ -72,8 +72,8 @@ namespace Grpc.Tools.Tests
Assert.AreEqual(4, poss.Length);
Assert.Contains("foo.pb.cc", poss);
Assert.Contains("foo.pb.h", poss);
Assert.Contains("foo_grpc.pb.cc", poss);
Assert.Contains("foo_grpc.pb.h", poss);
Assert.Contains("foo.grpc.pb.cc", poss);
Assert.Contains("foo.grpc.pb.h", poss);
}
[Test]

@ -157,8 +157,8 @@ namespace Grpc.Tools
{
fileStem = Path.Combine(outdir, relative, filename);
}
outputs[2] = fileStem + "_grpc.pb.cc";
outputs[3] = fileStem + "_grpc.pb.h";
outputs[2] = fileStem + ".grpc.pb.cc";
outputs[3] = fileStem + ".grpc.pb.h";
}
return outputs;
}

Loading…
Cancel
Save