diff options
author | rsgowman <rgowman@google.com> | 2018-06-18 15:35:38 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-18 15:35:38 -0400 |
commit | 93bfbdf4758bfdb3bb2875cba29a3b4c21e91f71 (patch) | |
tree | 2566dbe5ce5ae5a700b43981c84f67b1aad337fd /Firestore/core/test/firebase/firestore/remote | |
parent | b97fd69aae5c145bf3d390a9a6d3783eb9584aa5 (diff) | |
parent | 39e12ed16ce15d4c402fe079fc9f35869b669a6d (diff) |
Hookup serializer_test.cc to the xcode based test suite (#1343)
Diffstat (limited to 'Firestore/core/test/firebase/firestore/remote')
-rw-r--r-- | Firestore/core/test/firebase/firestore/remote/serializer_test.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Firestore/core/test/firebase/firestore/remote/serializer_test.cc b/Firestore/core/test/firebase/firestore/remote/serializer_test.cc index f3773b9..1125fb4 100644 --- a/Firestore/core/test/firebase/firestore/remote/serializer_test.cc +++ b/Firestore/core/test/firebase/firestore/remote/serializer_test.cc @@ -656,7 +656,7 @@ TEST_F(SerializerTest, BadFieldValueTagWithOtherValidTagsPresent) { // Craft the bytes. boolean_value has a smaller tag, so it'll get encoded // first, normally implying integer_value should "win". Except that // integer_value isn't a valid tag, so it should be ignored here. - google_firestore_v1beta1_Value_Fake crafty_value{false, int64_t{42}}; + google_firestore_v1beta1_Value_Fake crafty_value{true, int64_t{42}}; std::vector<uint8_t> bytes(128); pb_ostream_t stream = pb_ostream_from_buffer(bytes.data(), bytes.size()); pb_encode(&stream, google_firestore_v1beta1_Value_fields_Fake, &crafty_value); @@ -664,11 +664,12 @@ TEST_F(SerializerTest, BadFieldValueTagWithOtherValidTagsPresent) { // Decode the bytes into the model StatusOr<FieldValue> actual_model_status = serializer.DecodeFieldValue(bytes); + Status s = actual_model_status.status(); EXPECT_OK(actual_model_status); FieldValue actual_model = actual_model_status.ValueOrDie(); // Ensure the decoded model is as expected. - FieldValue expected_model = FieldValue::BooleanValue(false); + FieldValue expected_model = FieldValue::BooleanValue(true); EXPECT_EQ(FieldValue::Type::Boolean, actual_model.type()); EXPECT_EQ(expected_model, actual_model); } |