From 779f61c6a3ce02a119e28e802f229e61b69b9046 Mon Sep 17 00:00:00 2001 From: temporal Date: Wed, 13 Aug 2008 03:15:00 +0000 Subject: Integrate recent changes from google3. protoc - New flags --encode and --decode can be used to convert between protobuf text format and binary format from the command-line. - New flag --descriptor_set_out can be used to write FileDescriptorProtos for all parsed files directly into a single output file. This is particularly useful if you wish to parse .proto files from programs written in languages other than C++: just run protoc as a background process and have it output a FileDescriptorList, then parse that natively. C++ - Reflection objects are now per-class rather than per-instance. To make this possible, the Reflection interface had to be changed such that all methods take the Message instance as a parameter. This change improves performance significantly in memory-bandwidth-limited use cases, since it makes the message objects smaller. Note that source-incompatible interface changes like this will not be made again after the library leaves beta. Python - MergeFrom(message) and CopyFrom(message) are now implemented. - SerializeToString() raises an exception if the message is missing required fields. - Code organization improvements. - Fixed doc comments for RpcController and RpcChannel, which had somehow been swapped. --- src/google/protobuf/test_util.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/google/protobuf/test_util.h') diff --git a/src/google/protobuf/test_util.h b/src/google/protobuf/test_util.h index 4157d095..4c578bcd 100644 --- a/src/google/protobuf/test_util.h +++ b/src/google/protobuf/test_util.h @@ -78,11 +78,10 @@ class TestUtil { // its file. explicit ReflectionTester(const Descriptor* base_descriptor); - void SetAllFieldsViaReflection(Message::Reflection* message); - void ModifyRepeatedFieldsViaReflection(Message::Reflection* message); - void ExpectAllFieldsSetViaReflection( - const Message::Reflection& message); - void ExpectClearViaReflection(const Message::Reflection& message); + void SetAllFieldsViaReflection(Message* message); + void ModifyRepeatedFieldsViaReflection(Message* message); + void ExpectAllFieldsSetViaReflection(const Message& message); + void ExpectClearViaReflection(const Message& message); private: const FieldDescriptor* F(const string& name); -- cgit v1.2.3