aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/src/firebase/firestore/remote/serializer.cc
diff options
context:
space:
mode:
authorGravatar rsgowman <rgowman@google.com>2018-04-24 11:31:58 -0400
committerGravatar GitHub <noreply@github.com>2018-04-24 11:31:58 -0400
commit6dfc142888410ef6906970d8cb90f69c0992852a (patch)
tree72b1287cc6143f1d005d03cb710c60a9f3414fd8 /Firestore/core/src/firebase/firestore/remote/serializer.cc
parenta04e782db87b86bacc6a232fae38dcd8d203f5b6 (diff)
Adjust serializer test to verify via libprotobuf. (#1039)
Previously, the tests would compare serialization results against a precomputed (via protoc) array of bytes. Now they serialize via our nanopb based class and deserialize via libprotobuf (and vice versa) and then ensure the result is the same as the input
Diffstat (limited to 'Firestore/core/src/firebase/firestore/remote/serializer.cc')
-rw-r--r--Firestore/core/src/firebase/firestore/remote/serializer.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/Firestore/core/src/firebase/firestore/remote/serializer.cc b/Firestore/core/src/firebase/firestore/remote/serializer.cc
index befe032..b5a0720 100644
--- a/Firestore/core/src/firebase/firestore/remote/serializer.cc
+++ b/Firestore/core/src/firebase/firestore/remote/serializer.cc
@@ -24,6 +24,7 @@
#include <string>
#include <utility>
+#include "Firestore/Protos/nanopb/google/firestore/v1beta1/document.pb.h"
#include "Firestore/core/src/firebase/firestore/util/firebase_assert.h"
namespace firebase {