Lines Matching refs:SampleVariantIntString
6693 class SampleVariantIntString { class
6695 SampleVariantIntString(int i) : i_(i), has_int_(true) {} in SampleVariantIntString() function in testing::gmock_matchers_test::__anon67385ff30111::SampleVariantIntString
6696 SampleVariantIntString(const std::string& s) : s_(s), has_int_(false) {} in SampleVariantIntString() function in testing::gmock_matchers_test::__anon67385ff30111::SampleVariantIntString
6699 friend bool holds_alternative(const SampleVariantIntString& value) { in holds_alternative()
6704 friend const T& get(const SampleVariantIntString& value) { in get()
6718 const Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6724 const Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6725 EXPECT_THAT(Explain(m, SampleVariantIntString(1)), in TEST()
6727 EXPECT_THAT(Explain(m, SampleVariantIntString("A")), in TEST()
6729 EXPECT_THAT(Explain(m, SampleVariantIntString(2)), in TEST()
6734 Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6735 EXPECT_TRUE(m.Matches(SampleVariantIntString(1))); in TEST()
6738 EXPECT_TRUE(m.Matches(SampleVariantIntString("1"))); in TEST()
6742 Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6743 EXPECT_FALSE(m.Matches(SampleVariantIntString("1"))); in TEST()
6746 EXPECT_FALSE(m.Matches(SampleVariantIntString(1))); in TEST()
6750 Matcher<SampleVariantIntString> m = VariantWith<int>(Eq(1)); in TEST()
6751 EXPECT_FALSE(m.Matches(SampleVariantIntString(2))); in TEST()
6754 EXPECT_FALSE(m.Matches(SampleVariantIntString("2"))); in TEST()