diff options
author | csharptest <roger@csharptest.net> | 2011-10-01 13:06:14 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-10-01 13:06:14 -0500 |
commit | bac32faf56f1969490d5596397a23179fce12068 (patch) | |
tree | 9ccefa2104df51dc7d66fc1e7ec1c87b26884277 /protos | |
parent | 1f8a6220d46b4e9ad8ac51a2e7af6dfbe038dbe4 (diff) | |
download | protobuf-bac32faf56f1969490d5596397a23179fce12068.tar.gz protobuf-bac32faf56f1969490d5596397a23179fce12068.tar.bz2 protobuf-bac32faf56f1969490d5596397a23179fce12068.zip |
Added unit tests for Lite runtime services and serialization
Diffstat (limited to 'protos')
-rw-r--r-- | protos/extest/unittest_extras_lite.proto | 6 | ||||
-rw-r--r-- | protos/extest/unittest_rpc_interop_lite.proto | 35 |
2 files changed, 38 insertions, 3 deletions
diff --git a/protos/extest/unittest_extras_lite.proto b/protos/extest/unittest_extras_lite.proto index b238936d..7d6d3369 100644 --- a/protos/extest/unittest_extras_lite.proto +++ b/protos/extest/unittest_extras_lite.proto @@ -101,8 +101,8 @@ extend TestUnpackedExtensionsLite { repeated UnpackedTypesForeignEnumLite unpacked_enum_extension_lite = 103;
}
-enum UnpackedTypesForeignEnumLite { - FOREIGN_LITE_FOO = 4; - FOREIGN_LITE_BAR = 5; +enum UnpackedTypesForeignEnumLite {
+ FOREIGN_LITE_FOO = 4;
+ FOREIGN_LITE_BAR = 5;
FOREIGN_LITE_BAZ = 6;
}
diff --git a/protos/extest/unittest_rpc_interop_lite.proto b/protos/extest/unittest_rpc_interop_lite.proto new file mode 100644 index 00000000..53fc737e --- /dev/null +++ b/protos/extest/unittest_rpc_interop_lite.proto @@ -0,0 +1,35 @@ +// Additional options required for C# generation. File from copyright
+// line onwards is as per original distribution.
+import "google/protobuf/csharp_options.proto";
+option (google.protobuf.csharp_file_options).namespace = "Google.ProtocolBuffers.TestProtos";
+option (google.protobuf.csharp_file_options).umbrella_classname = "UnitTestRpcInteropLite";
+
+option (google.protobuf.csharp_file_options).service_generator_type = IRPCDISPATCH;
+
+option optimize_for = LITE_RUNTIME;
+package unittest_rpc_interop_lite;
+
+message SearchRequest {
+ repeated string Criteria = 1;
+}
+
+message SearchResponse {
+ message ResultItem {
+ required string url = 1;
+ optional string name = 2;
+ }
+
+ repeated ResultItem results = 1;
+}
+
+message RefineSearchRequest {
+ repeated string Criteria = 1;
+ required SearchResponse previous_results = 2;
+}
+
+service SearchService {
+ option (google.protobuf.csharp_service_options).interface_id = "{A65F0925-FD11-4f94-B166-89AC4F027205}";
+ rpc Search (SearchRequest) returns (SearchResponse) { option (google.protobuf.csharp_method_options).dispatch_id = 5; };
+
+ rpc RefineSearch (RefineSearchRequest) returns (SearchResponse);
+}
|