aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/core/test/firebase/firestore/remote
diff options
context:
space:
mode:
authorGravatar rsgowman <rgowman@google.com>2018-03-27 17:04:10 -0400
committerGravatar GitHub <noreply@github.com>2018-03-27 17:04:10 -0400
commit0e86c06f60262c013c0b653470ac59a3c4d12b46 (patch)
treef47c6b2fbbf16f419ae4dc13d3869007e573b976 /Firestore/core/test/firebase/firestore/remote
parentcb8c4b6b1f1ad213a5b3272e2c2e94f755bbabf9 (diff)
Add ObjectValue::Map alias (#967)
Diffstat (limited to 'Firestore/core/test/firebase/firestore/remote')
-rw-r--r--Firestore/core/test/firebase/firestore/remote/serializer_test.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/Firestore/core/test/firebase/firestore/remote/serializer_test.cc b/Firestore/core/test/firebase/firestore/remote/serializer_test.cc
index e2456d5..862ac97 100644
--- a/Firestore/core/test/firebase/firestore/remote/serializer_test.cc
+++ b/Firestore/core/test/firebase/firestore/remote/serializer_test.cc
@@ -194,7 +194,7 @@ TEST_F(SerializerTest, WritesStringModelToBytes) {
}
TEST_F(SerializerTest, WritesEmptyMapToBytes) {
- FieldValue model = FieldValue::ObjectValue({});
+ FieldValue model = FieldValue::ObjectValueFromMap({});
// TEXT_FORMAT_PROTO: 'map_value: {}'
std::vector<uint8_t> bytes{0x32, 0x00};
ExpectRoundTrip(model, bytes, FieldValue::Type::Object);
@@ -206,7 +206,7 @@ TEST_F(SerializerTest, WritesNestedObjectsToBytes) {
// TODO(rsgowman): link libprotobuf to the test suite and eliminate the
// above.
- FieldValue model = FieldValue::ObjectValue(
+ FieldValue model = FieldValue::ObjectValueFromMap(
{{"b", FieldValue::TrueValue()},
// TODO(rsgowman): add doubles (once they're supported)
// {"d", FieldValue::DoubleValue(std::numeric_limits<double>::max())},
@@ -215,10 +215,10 @@ TEST_F(SerializerTest, WritesNestedObjectsToBytes) {
{"s", FieldValue::StringValue("foo")},
// TODO(rsgowman): add arrays (once they're supported)
// {"a", [2, "bar", {"b", false}]},
- {"o", FieldValue::ObjectValue(
+ {"o", FieldValue::ObjectValueFromMap(
{{"d", FieldValue::IntegerValue(100)},
{"nested",
- FieldValue::ObjectValue(
+ FieldValue::ObjectValueFromMap(
{{"e", FieldValue::IntegerValue(
std::numeric_limits<int64_t>::max())}})}})}});