Google OR-Tools v9.14
a fast and portable software suite for combinatorial optimization
Loading...
Searching...
No Matches
message_matchers.h File Reference
#include <memory>
#include "absl/strings/string_view.h"
#include "gmock/gmock-matchers.h"
#include "gmock/gmock.h"
#include "google/protobuf/message.h"
#include "google/protobuf/util/message_differencer.h"

Go to the source code of this file.

Classes

struct  testing::internal::ProtoComparison
 Options for comparing two protobufs. More...
class  testing::internal::ProtoMatcher

Namespaces

namespace  testing
namespace  testing::internal

Typedefs

typedef ::google::protobuf::util::MessageDifferencer::MessageFieldComparison testing::internal::ProtoFieldComparison
typedef ::google::protobuf::util::DefaultFieldComparator::FloatComparison testing::internal::ProtoFloatComparison
 How to compare two floating-points (exact vs. approximate).
typedef ::google::protobuf::util::MessageDifferencer::RepeatedFieldComparison testing::internal::RepeatedFieldComparison
 How to compare repeated fields (whether the order of elements matters).
typedef ::google::protobuf::util::MessageDifferencer::Scope testing::internal::ProtoComparisonScope
using testing::internal::PolymorphicProtoMatcher = PolymorphicMatcher<ProtoMatcher>

Functions

internal::ProtoMatcher testing::EqualsProto (const ::google::protobuf::Message &message)
 testing::MATCHER (EqualsProto, "")
 for Pointwise
internal::PolymorphicProtoMatcher testing::EquivToProto (const ::google::protobuf::Message &x)

Variables

const ProtoFieldComparison testing::internal::kProtoEqual
const ProtoFieldComparison testing::internal::kProtoEquiv
const ProtoFloatComparison testing::internal::kProtoExact
const ProtoFloatComparison testing::internal::kProtoApproximate
const RepeatedFieldComparison testing::internal::kProtoCompareRepeatedFieldsRespectOrdering
const RepeatedFieldComparison testing::internal::kProtoCompareRepeatedFieldsIgnoringOrdering
const ProtoComparisonScope testing::internal::kProtoFull
const ProtoComparisonScope testing::internal::kProtoPartial
const bool testing::internal::kMustBeInitialized = true
 Whether the protobuf must be initialized.
const bool testing::internal::kMayBeUninitialized = false