Classes | Namespaces | Functions | Variables
src/google/protobuf/map_test.cc File Reference
#include <algorithm>
#include <map>
#include <memory>
#include <set>
#include <sstream>
#include <unordered_map>
#include <vector>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/stringprintf.h>
#include <google/protobuf/testing/file.h>
#include <google/protobuf/arena_test_util.h>
#include <google/protobuf/map_proto2_unittest.pb.h>
#include <google/protobuf/map_test_util.h>
#include <google/protobuf/map_unittest.pb.h>
#include <google/protobuf/test_util.h>
#include <google/protobuf/test_util2.h>
#include <google/protobuf/unittest.pb.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/io/tokenizer.h>
#include <google/protobuf/io/zero_copy_stream_impl.h>
#include <google/protobuf/descriptor.pb.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/descriptor_database.h>
#include <google/protobuf/dynamic_message.h>
#include <google/protobuf/map.h>
#include <google/protobuf/map_field_inl.h>
#include <google/protobuf/message.h>
#include <google/protobuf/reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/text_format.h>
#include <google/protobuf/wire_format.h>
#include <google/protobuf/util/message_differencer.h>
#include <google/protobuf/util/time_util.h>
#include <google/protobuf/stubs/substitute.h>
#include <gmock/gmock.h>
#include <google/protobuf/testing/googletest.h>
#include <gtest/gtest.h>
#include <google/protobuf/stubs/casts.h>
#include <google/protobuf/port_def.inc>
Include dependency graph for src/google/protobuf/map_test.cc:

Go to the source code of this file.

Classes

class  google::protobuf.internal::MapFieldInDynamicMessageTest
 
class  google::protobuf.internal::MapFieldReflectionTest
 
class  google::protobuf.internal::MapImplTest
 

Namespaces

 google
 
 google::protobuf
 
 google.protobuf.internal
 

Functions

static std::string google.protobuf.internal::ConstructKey (uint64 n)
 
static void google.protobuf.internal::CopyConstructorHelper (Arena *arena, Map< int32, int32 > *m)
 
template<typename T >
static std::string google.protobuf.internal::DeterministicSerialization (const T &t)
 
template<typename T >
static std::string google.protobuf.internal::DeterministicSerializationWithSerializePartialToCodedStream (const T &t)
 
template<typename T >
static std::string google.protobuf.internal::DeterministicSerializationWithSerializeToCodedStream (const T &t)
 
static int google.protobuf.internal::Func (int i, int j)
 
static int google.protobuf.internal::Int (const std::string &value)
 
template<typename T >
bool google.protobuf.internal::IsConstHelper (const T &)
 
template<typename T >
bool google.protobuf.internal::IsConstHelper (T &)
 
bool google.protobuf.internal::IsForwardIteratorHelper (std::forward_iterator_tag)
 
void google.protobuf.internal::MapTestForceDeterministic ()
 
template<typename Iterator >
static int64 google.protobuf.internal::median (Iterator i0, Iterator i1)
 
static int64 google.protobuf.internal::Now ()
 
static void google.protobuf.internal::StressTestIterators (int n)
 
static std::string google.protobuf.internal::StrFunc (int i, int j)
 
 google.protobuf.internal::TEST (ArenaTest, IsInitialized)
 
 google.protobuf.internal::TEST (ArenaTest, ParsingAndSerializingNoHeapAllocation)
 
 google.protobuf.internal::TEST (ArenaTest, ReflectionInTextFormat)
 
 google.protobuf.internal::TEST (ArenaTest, StringMapNoLeak)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, Accessors)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, ClearField)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, EmbedProto2Message)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, MapEntryClear)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, MergeFromClearMapEntry)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, MutableUnknownFields)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, Proto2MapEntryClear)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, ReleaseLast)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, RemoveLast)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, SetViaMapReflection)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, SpaceUsed)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, Swap)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, SwapElements)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, SwapFields)
 
 google.protobuf.internal::TEST (GeneratedMapFieldReflectionTest, SwapWithBothSet)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, Accessors)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, Clear)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, ClearMessageMap)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, CopyAssignmentOperator)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, CopyConstructor)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, CopyFrom)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, CopyFromDynamicMessage)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, CopyFromDynamicMessageMapReflection)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, CopyFromMessageMap)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, CorruptedWireFormat)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, DuplicatedKeyWireFormat)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, DuplicatedValueWireFormat)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, DynamicMessageCopyFrom)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, DynamicMessageCopyFromMapReflection)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, DynamicMessageMergeFromDynamicMessage)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, IsInitialized)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, KeysValuesUnknownsWireFormat)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, MergeFromMessageMap)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, MessagesMustMerge)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, MissedKeyWireFormat)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, MissedValueTextFormat)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, MissedValueWireFormat)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, NonEmptyMergeFrom)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, Proto2SetMapFieldsInitialized)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, Proto2UnknownEnum)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, SameTypeMaps)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, SerializationToArray)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, SerializationToStream)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, SetMapFieldsInitialized)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, StandardWireFormat)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, SwapWithEmpty)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, SwapWithOther)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, SwapWithSelf)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, SyncDynamicMapWithRepeatedField)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, UnknownFieldWireFormat)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, UnorderedWireFormat)
 
 google.protobuf.internal::TEST (GeneratedMapFieldTest, UpcastCopyFrom)
 
 google.protobuf.internal::TEST (MapSerializationTest, Deterministic)
 
 google.protobuf.internal::TEST (MapSerializationTest, DeterministicSubmessage)
 
 google.protobuf.internal::TEST (MoveTest, MoveAssignmentWorks)
 
 google.protobuf.internal::TEST (MoveTest, MoveConstructorWorks)
 
 google.protobuf.internal::TEST (ReflectionOpsForMapFieldTest, ClearMap)
 
 google.protobuf.internal::TEST (ReflectionOpsForMapFieldTest, IsInitialized)
 
 google.protobuf.internal::TEST (ReflectionOpsForMapFieldTest, MapCopy)
 
 google.protobuf.internal::TEST (ReflectionOpsForMapFieldTest, MapDiscardUnknownFields)
 
 google.protobuf.internal::TEST (ReflectionOpsForMapFieldTest, MapSanityCheck)
 
 google.protobuf.internal::TEST (ReflectionOpsForMapFieldTest, MergeMap)
 
 google.protobuf.internal::TEST (TextFormatMapTest, DynamicMessage)
 
 google.protobuf.internal::TEST (TextFormatMapTest, NoDisableIterator)
 
 google.protobuf.internal::TEST (TextFormatMapTest, NoDisableReflectionIterator)
 
 google.protobuf.internal::TEST (TextFormatMapTest, ParseCorruptedString)
 
 google.protobuf.internal::TEST (TextFormatMapTest, SerializeAndParse)
 
 google.protobuf.internal::TEST (TextFormatMapTest, Sorted)
 
 google.protobuf.internal::TEST (WireFormatForMapFieldTest, MapByteSize)
 
 google.protobuf.internal::TEST (WireFormatForMapFieldTest, MapParseHelpers)
 
 google.protobuf.internal::TEST (WireFormatForMapFieldTest, ParseMap)
 
 google.protobuf.internal::TEST (WireFormatForMapFieldTest, SerializeMap)
 
 google.protobuf.internal::TEST (WireFormatForMapFieldTest, SerializeMapDynamicMessage)
 
 google.protobuf.internal::TEST_F (MapFieldInDynamicMessageTest, DynamicMapReflection)
 
 google.protobuf.internal::TEST_F (MapFieldInDynamicMessageTest, MapEntryReferernceValidAfterSerialize)
 
 google.protobuf.internal::TEST_F (MapFieldInDynamicMessageTest, MapIndependentOffsets)
 
 google.protobuf.internal::TEST_F (MapFieldInDynamicMessageTest, MapSpaceUsed)
 
 google.protobuf.internal::TEST_F (MapFieldInDynamicMessageTest, MapValueReferernceValidAfterSerialize)
 
 google.protobuf.internal::TEST_F (MapFieldInDynamicMessageTest, RecursiveMap)
 
 google.protobuf.internal::TEST_F (MapFieldReflectionTest, MapSizeWithDuplicatedKey)
 
 google.protobuf.internal::TEST_F (MapFieldReflectionTest, RegularFields)
 
 google.protobuf.internal::TEST_F (MapFieldReflectionTest, RepeatedFieldRefForRegularFields)
 
 google.protobuf.internal::TEST_F (MapFieldReflectionTest, RepeatedFieldRefMergeFromAndSwap)
 
 google.protobuf.internal::TEST_F (MapImplTest, Assigner)
 
 google.protobuf.internal::TEST_F (MapImplTest, BeginIsFast)
 
 google.protobuf.internal::TEST_F (MapImplTest, Clear)
 
 google.protobuf.internal::TEST_F (MapImplTest, ConstEnd)
 
 google.protobuf.internal::TEST_F (MapImplTest, ContainNotExist)
 
 google.protobuf.internal::TEST_F (MapImplTest, ConvertToStdMap)
 
 google.protobuf.internal::TEST_F (MapImplTest, ConvertToStdVectorOfPairs)
 
 google.protobuf.internal::TEST_F (MapImplTest, CopyAssignMapIterator)
 
 google.protobuf.internal::TEST_F (MapImplTest, CopyConstructorWithArena)
 
 google.protobuf.internal::TEST_F (MapImplTest, CopyConstructorWithoutArena)
 
 google.protobuf.internal::TEST_F (MapImplTest, CopyIteratorStressTest)
 
 google.protobuf.internal::TEST_F (MapImplTest, CountNonExist)
 
 google.protobuf.internal::TEST_F (MapImplTest, EqualRange)
 
 google.protobuf.internal::TEST_F (MapImplTest, EraseByIterator)
 
 google.protobuf.internal::TEST_F (MapImplTest, EraseMutipleByKey)
 
 google.protobuf.internal::TEST_F (MapImplTest, EraseRevalidates)
 
 google.protobuf.internal::TEST_F (MapImplTest, EraseSingleByIterator)
 
 google.protobuf.internal::TEST_F (MapImplTest, EraseSingleByKey)
 
 google.protobuf.internal::TEST_F (MapImplTest, GetReferenceFromIterator)
 
 google.protobuf.internal::TEST_F (MapImplTest, HashFlood)
 
 google.protobuf.internal::TEST_F (MapImplTest, ImmutableContainNotExist)
 
 google.protobuf.internal::TEST_F (MapImplTest, ImmutableFindNonExist)
 
 google.protobuf.internal::TEST_F (MapImplTest, InsertByInitializerList)
 
 google.protobuf.internal::TEST_F (MapImplTest, InsertByIterator)
 
 google.protobuf.internal::TEST_F (MapImplTest, InsertSingle)
 
 google.protobuf.internal::TEST_F (MapImplTest, IteratorBasic)
 
 google.protobuf.internal::TEST_F (MapImplTest, IteratorCategory)
 
 google.protobuf.internal::TEST_F (MapImplTest, IteratorConstness)
 
 google.protobuf.internal::TEST_F (MapImplTest, IteratorInvalidation)
 
 google.protobuf.internal::TEST_F (MapImplTest, IterConstructor)
 
 google.protobuf.internal::TEST_F (MapImplTest, MapKeyAssignment)
 
 google.protobuf.internal::TEST_F (MapImplTest, MutableAt)
 
 google.protobuf.internal::TEST_F (MapImplTest, MutableFindNonExist)
 
 google.protobuf.internal::TEST_F (MapImplTest, OperatorBracket)
 
 google.protobuf.internal::TEST_F (MapImplTest, OperatorBracketNonExist)
 
 google.protobuf.internal::TEST_F (MapImplTest, Rehash)
 
 google.protobuf.internal::TEST_F (MapImplTest, SwapArena)
 
 google.protobuf.internal::TEST_F (MapImplTest, SwapBasic)
 
 google.protobuf.internal::TEST_F (MapImplTest, ValidIteratorAfterErase)
 
static void google.protobuf.internal::TestDeterministicSerialization (const protobuf_unittest::TestMaps &t, const std::string &filename)
 
template<typename Iter >
static void google.protobuf.internal::TestEqualIterators (Iter i0, Iter i1, Iter end)
 
template<typename IteratorType >
static void google.protobuf.internal::TestOldVersusNewIterator (int skip, Map< int, int > *m)
 
template<typename T , typename U >
static void google.protobuf.internal::TestValidityForAllKeysExcept (int key_to_avoid, const T &check_map, const U &map)
 

Variables

static int google.protobuf.internal::k0 = 812398771
 
static int google.protobuf.internal::k1 = 1312938717
 
static int google.protobuf.internal::k2 = 1321555333
 


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:03