webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Namespaces | Functions
protostream_objectwriter_test.cc File Reference
#include <google/protobuf/util/internal/protostream_objectwriter.h>
#include <stddef.h>
#include <google/protobuf/field_mask.pb.h>
#include <google/protobuf/timestamp.pb.h>
#include <google/protobuf/wrappers.pb.h>
#include <google/protobuf/io/zero_copy_stream_impl_lite.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/dynamic_message.h>
#include <google/protobuf/message.h>
#include <google/protobuf/util/internal/mock_error_listener.h>
#include <google/protobuf/util/internal/testdata/books.pb.h>
#include <google/protobuf/util/internal/testdata/field_mask.pb.h>
#include <google/protobuf/util/internal/type_info_test_helper.h>
#include <google/protobuf/util/internal/constants.h>
#include <google/protobuf/util/message_differencer.h>
#include <google/protobuf/stubs/bytestream.h>
#include <google/protobuf/stubs/strutil.h>
#include <google/protobuf/util/internal/testdata/anys.pb.h>
#include <google/protobuf/util/internal/testdata/maps.pb.h>
#include <google/protobuf/util/internal/testdata/oneofs.pb.h>
#include <google/protobuf/util/internal/testdata/struct.pb.h>
#include <google/protobuf/util/internal/testdata/timestamp_duration.pb.h>
#include <gtest/gtest.h>

Classes

class  google::protobuf::util::converter::BaseProtoStreamObjectWriterTest
 
class  google::protobuf::util::converter::ProtoStreamObjectWriterTest
 
class  google::protobuf::util::converter::ProtoStreamObjectWriterTimestampDurationTest
 
class  google::protobuf::util::converter::ProtoStreamObjectWriterStructTest
 
class  google::protobuf::util::converter::ProtoStreamObjectWriterMapTest
 
class  google::protobuf::util::converter::ProtoStreamObjectWriterAnyTest
 
class  google::protobuf::util::converter::ProtoStreamObjectWriterFieldMaskTest
 
class  google::protobuf::util::converter::ProtoStreamObjectWriterOneOfsTest
 

Namespaces

 google
 
 google::protobuf
 
 google::protobuf::util
 
 google::protobuf::util::converter
 

Functions

 google::protobuf::util::converter::MATCHER_P (HasObjectLocation, expected, "Verifies the expected object location")
 
 google::protobuf::util::converter::INSTANTIATE_TEST_CASE_P (DifferentTypeInfoSourceTest, ProtoStreamObjectWriterTest, ::testing::Values(testing::USE_TYPE_RESOLVER))
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, EmptyObject)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, SimpleObject)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, SimpleMessage)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, CustomJsonName)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, PrimitiveFromStringConversion)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, InfinityInputTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, NaNInputTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, ImplicitPrimitiveList)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, LastWriteWinsOnNonRepeatedPrimitiveFieldWithDuplicates)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, ExplicitPrimitiveList)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, NonRepeatedExplicitPrimitiveList)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, ImplicitMessageList)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, LastWriteWinsOnNonRepeatedMessageFieldWithDuplicates)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, ExplicitMessageList)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, NonRepeatedExplicitMessageList)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, UnknownFieldAtRoot)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, UnknownFieldAtAuthorFriend)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, UnknownObjectAtRoot)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, UnknownObjectAtAuthor)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, UnknownListAtRoot)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, UnknownListAtPublisher)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, MissingRequiredField)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, InvalidFieldValueAtRoot)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, MultipleInvalidFieldValues)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, UnnamedFieldAtRoot)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, UnnamedFieldAtAuthor)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, UnnamedListAtRoot)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, RootNamedObject)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, RootNamedList)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, RootUnnamedField)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, RootNamedField)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, NullValue)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, NullValueForMessageField)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTest, NullValueForPrimitiveField)
 
 google::protobuf::util::converter::INSTANTIATE_TEST_CASE_P (DifferentTypeInfoSourceTest, ProtoStreamObjectWriterTimestampDurationTest, ::testing::Values(testing::USE_TYPE_RESOLVER))
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, ParseTimestamp)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, ParseTimestampYearNotZeroPadded)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, ParseTimestampYearZeroPadded)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, ParseTimestampWithPositiveOffset)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, ParseTimestampWithNegativeOffset)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, TimestampWithInvalidOffset1)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, TimestampWithInvalidOffset2)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, TimestampWithInvalidOffset3)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, TimestampWithInvalidOffset4)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, InvalidTimestampError1)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, InvalidTimestampError2)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, InvalidTimestampError3)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, InvalidTimestampError4)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, InvalidTimestampError5)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, InvalidTimestampError6)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, InvalidTimestampError7)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, InvalidTimestampError8)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, ParseDuration)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, InvalidDurationError1)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, InvalidDurationError2)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, InvalidDurationError3)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, InvalidDurationError4)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, InvalidDurationError5)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, MismatchedTimestampTypeInput)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterTimestampDurationTest, MismatchedDurationTypeInput)
 
 google::protobuf::util::converter::INSTANTIATE_TEST_CASE_P (DifferentTypeInfoSourceTest, ProtoStreamObjectWriterStructTest, ::testing::Values(testing::USE_TYPE_RESOLVER))
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterStructTest, StructRenderSuccess)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterStructTest, StructNullInputSuccess)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterStructTest, StructInvalidInputFailure)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterStructTest, SimpleRepeatedStructMapKeyTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterStructTest, RepeatedStructMapListKeyTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterStructTest, RepeatedStructMapObjectKeyTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterStructTest, OptionStructIntAsStringsTest)
 
 google::protobuf::util::converter::INSTANTIATE_TEST_CASE_P (DifferentTypeInfoSourceTest, ProtoStreamObjectWriterMapTest, ::testing::Values(testing::USE_TYPE_RESOLVER))
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterMapTest, MapShouldNotAcceptList)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterMapTest, RepeatedMapKeyTest)
 
 google::protobuf::util::converter::INSTANTIATE_TEST_CASE_P (DifferentTypeInfoSourceTest, ProtoStreamObjectWriterAnyTest, ::testing::Values(testing::USE_TYPE_RESOLVER))
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyRenderSuccess)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, RecursiveAny)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, DoubleRecursiveAny)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, EmptyAnyFromEmptyObject)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWithoutTypeUrlFails1)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWithoutTypeUrlFails2)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWithoutTypeUrlFails3)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWithInvalidTypeUrlFails)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWithUnknownTypeFails)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyNullInputFails)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWellKnownTypeErrorTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWithNestedPrimitiveValue)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWithNestedObjectValue)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWithNestedArrayValue)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWellKnownTypesNoValueFieldForPrimitive)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWellKnownTypesNoValueFieldForObject)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWellKnownTypesNoValueFieldForArray)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWellKnownTypesExpectObjectForStruct)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterAnyTest, AnyWellKnownTypesExpectObjectForAny)
 
 google::protobuf::util::converter::INSTANTIATE_TEST_CASE_P (DifferentTypeInfoSourceTest, ProtoStreamObjectWriterFieldMaskTest, ::testing::Values(testing::USE_TYPE_RESOLVER))
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterFieldMaskTest, SimpleFieldMaskTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterFieldMaskTest, MutipleMasksInCompactForm)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterFieldMaskTest, RepeatedFieldMaskTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterFieldMaskTest, EmptyFieldMaskTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterFieldMaskTest, MaskUsingApiaryStyleShouldWork)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterFieldMaskTest, MoreCloseThanOpenParentheses)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterFieldMaskTest, MoreOpenThanCloseParentheses)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterFieldMaskTest, PathWithMapKeyShouldWork)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterFieldMaskTest, MapKeyMustBeAtTheEndOfAPathSegment)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterFieldMaskTest, MapKeyMustEnd)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterFieldMaskTest, MapKeyMustBeEscapedCorrectly)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterFieldMaskTest, MapKeyCanContainAnyChars)
 
 google::protobuf::util::converter::INSTANTIATE_TEST_CASE_P (DifferentTypeInfoSourceTest, ProtoStreamObjectWriterOneOfsTest, ::testing::Values(testing::USE_TYPE_RESOLVER))
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterOneOfsTest, MultipleOneofsFailForPrimitiveTypesTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterOneOfsTest, MultipleOneofsFailForMessageTypesPrimitiveFirstTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterOneOfsTest, MultipleOneofsFailForMessageTypesMessageFirstTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterOneOfsTest, MultipleOneofsFailForStructTypesPrimitiveFirstTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterOneOfsTest, MultipleOneofsFailForStructTypesStructFirstTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterOneOfsTest, MultipleOneofsFailForStructValueTypesTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterOneOfsTest, MultipleOneofsFailForWellKnownTypesPrimitiveFirstTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterOneOfsTest, MultipleOneofsFailForWellKnownTypesWktFirstTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterOneOfsTest, MultipleOneofsFailForWellKnownTypesAndMessageTest)
 
 google::protobuf::util::converter::TEST_P (ProtoStreamObjectWriterOneOfsTest, MultipleOneofsFailForOneofWithinAnyTest)