aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp/util/echo.proto
diff options
context:
space:
mode:
authorGravatar yangg <yangg@google.com>2015-01-08 15:39:58 -0800
committerGravatar Nicolas Noble <nnoble@google.com>2015-01-09 17:54:03 -0800
commit1456d1522172e558b7c826b4d4b0977b67f43e82 (patch)
tree21b769d8958faf30b624b54048057e43632f2527 /test/cpp/util/echo.proto
parent24200d3cbca2a08c7a2b15b93f1c63efb786367d (diff)
Add a test to export two TestService on the same server, only with different
package names. Make sure they work as intended. This is based on [] Change on 2015/01/08 by yangg <yangg@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=83558743
Diffstat (limited to 'test/cpp/util/echo.proto')
-rw-r--r--test/cpp/util/echo.proto20
1 files changed, 2 insertions, 18 deletions
diff --git a/test/cpp/util/echo.proto b/test/cpp/util/echo.proto
index 1240399bf8..bd5357fe19 100644
--- a/test/cpp/util/echo.proto
+++ b/test/cpp/util/echo.proto
@@ -1,24 +1,8 @@
syntax = "proto2";
-package grpc.cpp.test.util;
-
-message RequestParams {
- optional bool echo_deadline = 1;
-}
-
-message EchoRequest {
- optional string message = 1;
- optional RequestParams param = 2;
-}
+import "test/cpp/util/messages.proto";
-message ResponseParams {
- optional int64 request_deadline = 1;
-}
-
-message EchoResponse {
- optional string message = 1;
- optional ResponseParams param = 2;
-}
+package grpc.cpp.test.util;
service TestService {
rpc Echo(EchoRequest) returns (EchoResponse);