aboutsummaryrefslogtreecommitdiff
path: root/proto
diff options
context:
space:
mode:
authortholenst <tholenst@google.com>2022-06-22 05:12:14 -0700
committerCopybara-Service <copybara-worker@google.com>2022-06-22 05:13:13 -0700
commit49f45395b9ecf91dc51edffaa582a8ea49c95ab9 (patch)
tree76ed9f64c226521919b2910d4799617af7dd7e9b /proto
parent522594376c5f47e3ea4447efa3229297d2d34452 (diff)
downloadtink-49f45395b9ecf91dc51edffaa582a8ea49c95ab9.tar.gz
Add an internal class "ProtoKeyFormatSerializationTester" for testing serialization implementations.
With this user, can first create a tester, and then simply check the implementation by calling tester.testParseAndSerialize(format, protoFormat, outputPrefixType); to check if the given format serializes to the given protoFormat with the outputPrefixType. PiperOrigin-RevId: 456487967
Diffstat (limited to 'proto')
-rw-r--r--proto/test_proto.proto3
1 files changed, 3 insertions, 0 deletions
diff --git a/proto/test_proto.proto b/proto/test_proto.proto
index afa9864ff..b82a9e7c7 100644
--- a/proto/test_proto.proto
+++ b/proto/test_proto.proto
@@ -17,6 +17,9 @@ syntax = "proto3";
package google.crypto.tink;
+option java_package = "com.google.crypto.tink.proto";
+option java_multiple_files = true;
+
message TestProto {
uint64 num = 1;
bytes str = 2; // Placeholder for ctype.