webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Namespaces | Macros
field_mask_util_test.cc File Reference
#include <google/protobuf/util/field_mask_util.h>
#include <algorithm>
#include <google/protobuf/stubs/logging.h>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/field_mask.pb.h>
#include <google/protobuf/unittest.pb.h>
#include <google/protobuf/test_util.h>
#include <gtest/gtest.h>

Classes

class  google::protobuf::util::SnakeCaseCamelCaseTest
 

Namespaces

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

Macros

#define TEST_MERGE_ONE_PRIMITIVE_FIELD(field_name)
 
#define TEST_MERGE_ONE_FIELD(field_name)
 

Macro Definition Documentation

◆ TEST_MERGE_ONE_FIELD

#define TEST_MERGE_ONE_FIELD (   field_name)
Value:
{ \
TestAllTypes tmp; \
*tmp.mutable_##field_name() = src.field_name(); \
FieldMask mask; \
mask.add_paths(#field_name); \
dst.Clear(); \
FieldMaskUtil::MergeMessageTo(src, mask, options, &dst); \
EXPECT_EQ(tmp.DebugString(), dst.DebugString()); \
}
options
Definition: CodeGeneratorReplayInputs.py:1046
GLenum GLenum dst
Definition: gl2ext.h:304
GLint GLuint mask
Definition: gl2.h:480
GLenum src
Definition: gl2ext.h:304

◆ TEST_MERGE_ONE_PRIMITIVE_FIELD

#define TEST_MERGE_ONE_PRIMITIVE_FIELD (   field_name)
Value:
{ \
TestAllTypes tmp; \
tmp.set_##field_name(src.field_name()); \
FieldMask mask; \
mask.add_paths(#field_name); \
dst.Clear(); \
FieldMaskUtil::MergeMessageTo(src, mask, options, &dst); \
EXPECT_EQ(tmp.DebugString(), dst.DebugString()); \
}
options
Definition: CodeGeneratorReplayInputs.py:1046
GLenum GLenum dst
Definition: gl2ext.h:304
GLint GLuint mask
Definition: gl2.h:480
GLenum src
Definition: gl2ext.h:304