Searched refs:SampleVariantIntString (Results 1 – 1 of 1) sorted by relevance
6693 class SampleVariantIntString { class6695 SampleVariantIntString(int i) : i_(i), has_int_(true) {} in SampleVariantIntString() function in testing::gmock_matchers_test::__anon67385ff30111::SampleVariantIntString6696 SampleVariantIntString(const std::string& s) : s_(s), has_int_(false) {} in SampleVariantIntString() function in testing::gmock_matchers_test::__anon67385ff30111::SampleVariantIntString6699 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()[all …]