From e5389b6335156800f8693b30af13eff3224d72ab Mon Sep 17 00:00:00 2001 From: Jan Tattermusch Date: Thu, 7 Jun 2018 09:37:25 +0200 Subject: [PATCH] use testcodegen.proto for distribtest --- test/distrib/csharp/test_codegen/test_codegen.sh | 2 +- .../{helloworld.proto => testcodegen.proto} | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) rename test/distrib/csharp/test_codegen/{helloworld.proto => testcodegen.proto} (66%) diff --git a/test/distrib/csharp/test_codegen/test_codegen.sh b/test/distrib/csharp/test_codegen/test_codegen.sh index f91959ea070..0f4d2603265 100755 --- a/test/distrib/csharp/test_codegen/test_codegen.sh +++ b/test/distrib/csharp/test_codegen/test_codegen.sh @@ -31,7 +31,7 @@ fi PROTOC="../packages/Grpc.Tools.__GRPC_NUGET_VERSION__/tools/${PLATFORM_ARCH}/protoc" PLUGIN="../packages/Grpc.Tools.__GRPC_NUGET_VERSION__/tools/${PLATFORM_ARCH}/grpc_csharp_plugin" -$PROTOC --plugin="protoc-gen-grpc=${PLUGIN}" --csharp_out=. --grpc_out=. -I . helloworld.proto +$PROTOC --plugin="protoc-gen-grpc=${PLUGIN}" --csharp_out=. --grpc_out=. -I . testcodegen.proto ls *.cs diff --git a/test/distrib/csharp/test_codegen/helloworld.proto b/test/distrib/csharp/test_codegen/testcodegen.proto similarity index 66% rename from test/distrib/csharp/test_codegen/helloworld.proto rename to test/distrib/csharp/test_codegen/testcodegen.proto index be878ce25ff..5c228b81dba 100644 --- a/test/distrib/csharp/test_codegen/helloworld.proto +++ b/test/distrib/csharp/test_codegen/testcodegen.proto @@ -1,4 +1,4 @@ -// Copyright 2015 gRPC authors. +// Copyright 2018 The gRPC Authors // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -14,25 +14,16 @@ syntax = "proto3"; -option java_multiple_files = true; -option java_package = "io.grpc.examples.helloworld"; -option java_outer_classname = "HelloWorldProto"; -option objc_class_prefix = "HLW"; +package testcodegen; -package helloworld; - -// The greeting service definition. service Greeter { - // Sends a greeting rpc SayHello (HelloRequest) returns (HelloReply) {} } -// The request message containing the user's name. message HelloRequest { string name = 1; } -// The response message containing the greetings message HelloReply { string message = 1; }