aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/cpp
diff options
context:
space:
mode:
authorGravatar nnoble <nnoble@google.com>2014-12-12 11:42:26 -0800
committerGravatar Nicolas Noble <nnoble@google.com>2014-12-12 16:24:32 -0800
commit72309c6c5d7c4fdfffb502b373a2971b1412fa6f (patch)
tree597478414cc6bf22af50bab4c0f764ec7d63719d /test/cpp
parent3656f94978422017cb9ab9334f2f8dfeb6cdd0f9 (diff)
Getting the generated Makefile to support .proto files.
-) Compiling the proto plugin using the HOSTCC compiler. -) Set up proper rules to invoke the plugin from protoc. -) Few various renaming hacks to fully get out of []. Change on 2014/12/12 by nnoble <nnoble@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=82000361
Diffstat (limited to 'test/cpp')
-rw-r--r--test/cpp/interop/empty.proto8
-rw-r--r--test/cpp/interop/test.proto2
2 files changed, 5 insertions, 5 deletions
diff --git a/test/cpp/interop/empty.proto b/test/cpp/interop/empty.proto
index a698ab6f8a..c9920a22ee 100644
--- a/test/cpp/interop/empty.proto
+++ b/test/cpp/interop/empty.proto
@@ -1,19 +1,19 @@
syntax = "proto2";
-package proto2;
+package grpc.testing;
// An empty message that you can re-use to avoid defining duplicated empty
// messages in your project. A typical example is to use it as argument or the
// return value of a service API. For instance:
//
// service Foo {
-// rpc Bar (proto2.Empty) returns (proto2.Empty) { };
+// rpc Bar (grpc.testing.Empty) returns (grpc.testing.Empty) { };
// };
//
-// BEGIN GOOGLE-INTERNAL
+// MOE:begin_strip
// The difference between this one and net/rpc/empty-message.proto is that
// 1) The generated message here is in proto2 C++ API.
// 2) The proto2.Empty has minimum dependencies
// (no message_set or net/rpc dependencies)
-// END GOOGLE-INTERNAL
+// MOE:end_strip
message Empty {}
diff --git a/test/cpp/interop/test.proto b/test/cpp/interop/test.proto
index e9c1381b41..e358f3bea5 100644
--- a/test/cpp/interop/test.proto
+++ b/test/cpp/interop/test.proto
@@ -11,7 +11,7 @@ package grpc.testing;
// performance with various types of payload.
service TestService {
// One empty request followed by one empty response.
- rpc EmptyCall(proto2.Empty) returns (proto2.Empty);
+ rpc EmptyCall(grpc.testing.Empty) returns (grpc.testing.Empty);
// One request followed by one response.
// The server returns the client payload as-is.