diff options
author | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2010-04-19 19:15:12 +0000 |
---|---|---|
committer | kenton@google.com <kenton@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2010-04-19 19:15:12 +0000 |
commit | d09ab8538d5742a149095445c6880382b6b4408d (patch) | |
tree | 15c865875f9c7d9e4c26cfe4402659e60bbb7b8c /src/google/protobuf/descriptor_unittest.cc | |
parent | b3f6a15806011c37623243766900ed6fbd3da84a (diff) |
Allow services with lite runtime when using rpc generator plugin.
Diffstat (limited to 'src/google/protobuf/descriptor_unittest.cc')
-rw-r--r-- | src/google/protobuf/descriptor_unittest.cc | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/google/protobuf/descriptor_unittest.cc b/src/google/protobuf/descriptor_unittest.cc index ec2c8152..d70c9bf1 100644 --- a/src/google/protobuf/descriptor_unittest.cc +++ b/src/google/protobuf/descriptor_unittest.cc @@ -3487,7 +3487,17 @@ TEST_F(ValidationErrorTest, NoLiteServices) { "service { name: \"Foo\" }", "foo.proto: Foo: NAME: Files with optimize_for = LITE_RUNTIME cannot " - "define services.\n"); + "define services unless you set both options cc_generic_services and " + "java_generic_sevices to false.\n"); + + BuildFile( + "name: \"bar.proto\" " + "options {" + " optimize_for: LITE_RUNTIME" + " cc_generic_services: false" + " java_generic_services: false" + "} " + "service { name: \"Foo\" }"); } TEST_F(ValidationErrorTest, RollbackAfterError) { |