aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/distrib
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@google.com>2018-06-07 09:37:25 +0200
committerGravatar Jan Tattermusch <jtattermusch@google.com>2018-06-07 09:37:30 +0200
commite5389b6335156800f8693b30af13eff3224d72ab (patch)
tree1e709c1b6521fda7511395f3c063d2f6e48d754f /test/distrib
parent93f04c528c43b8a06d55f9abe0657d3c1953ffed (diff)
use testcodegen.proto for distribtest
Diffstat (limited to 'test/distrib')
-rwxr-xr-xtest/distrib/csharp/test_codegen/test_codegen.sh2
-rw-r--r--test/distrib/csharp/test_codegen/testcodegen.proto (renamed from test/distrib/csharp/test_codegen/helloworld.proto)13
2 files changed, 3 insertions, 12 deletions
diff --git a/test/distrib/csharp/test_codegen/test_codegen.sh b/test/distrib/csharp/test_codegen/test_codegen.sh
index f91959ea07..0f4d260326 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
index be878ce25f..5c228b81db 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;
}