From 6dfc142888410ef6906970d8cb90f69c0992852a Mon Sep 17 00:00:00 2001 From: rsgowman Date: Tue, 24 Apr 2018 11:31:58 -0400 Subject: 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 --- Firestore/core/src/firebase/firestore/remote/serializer.cc | 1 + Firestore/core/src/firebase/firestore/remote/serializer.h | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'Firestore/core/src/firebase/firestore') 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 #include +#include "Firestore/Protos/nanopb/google/firestore/v1beta1/document.pb.h" #include "Firestore/core/src/firebase/firestore/util/firebase_assert.h" namespace firebase { diff --git a/Firestore/core/src/firebase/firestore/remote/serializer.h b/Firestore/core/src/firebase/firestore/remote/serializer.h index 7541ef5..7f08f7d 100644 --- a/Firestore/core/src/firebase/firestore/remote/serializer.h +++ b/Firestore/core/src/firebase/firestore/remote/serializer.h @@ -21,7 +21,6 @@ #include #include -#include "Firestore/Protos/nanopb/google/firestore/v1beta1/document.pb.h" #include "Firestore/core/src/firebase/firestore/model/field_value.h" #include "Firestore/core/src/firebase/firestore/util/firebase_assert.h" #include "Firestore/core/src/firebase/firestore/util/status.h" -- cgit v1.2.3