• Home
  • Raw
  • Download

Lines Matching refs:Invoke

92 decltype(Invoke(std::declval<const F&>())) CallMaybeWithArg(const F& f) {  in Invoke()  function
93 return Invoke(f); in Invoke()
97 decltype(Invoke(std::declval<const F&>(), 42)) CallMaybeWithArg(const F& f) { in CallMaybeWithArg()
98 return Invoke(f, 42); in CallMaybeWithArg()
102 EXPECT_EQ(1, Invoke(Function, 3, 2)); in TEST()
103 EXPECT_EQ(1, Invoke(&Function, 3, 2)); in TEST()
107 EXPECT_EQ(42, Invoke(Sink, make_unique<int>(42))); in TEST()
111 EXPECT_THAT(Invoke(Factory, 42), ::testing::Pointee(42)); in TEST()
115 Invoke(NoOp); in TEST()
119 EXPECT_EQ(1, Invoke(ConstFunctor(), 3, 2)); in TEST()
124 EXPECT_EQ(1, Invoke(f, 3, 2)); in TEST()
125 EXPECT_EQ(1, Invoke(MutableFunctor(), 3, 2)); in TEST()
130 EXPECT_EQ(1, Invoke(std::move(f), 3, 2)); in TEST()
131 EXPECT_EQ(1, Invoke(EphemeralFunctor(), 3, 2)); in TEST()
138 EXPECT_EQ("&", Invoke(f)); in TEST()
139 EXPECT_EQ("& 42", Invoke(f, " 42")); in TEST()
141 EXPECT_EQ("const&", Invoke(cf)); in TEST()
142 EXPECT_EQ("const& 42", Invoke(cf, " 42")); in TEST()
144 EXPECT_EQ("&&", Invoke(std::move(f))); in TEST()
145 EXPECT_EQ("&& 42", Invoke(std::move(f), " 42")); in TEST()
151 EXPECT_EQ(1, Invoke(std::cref(cf), 3, 2)); in TEST()
152 EXPECT_EQ(1, Invoke(std::ref(cf), 3, 2)); in TEST()
153 EXPECT_EQ(1, Invoke(std::ref(mf), 3, 2)); in TEST()
161 EXPECT_EQ(1, Invoke(&Class::Method, p, 3, 2)); in TEST()
162 EXPECT_EQ(1, Invoke(&Class::Method, p.get(), 3, 2)); in TEST()
163 EXPECT_EQ(1, Invoke(&Class::Method, *p, 3, 2)); in TEST()
164 EXPECT_EQ(1, Invoke(&Class::RefMethod, p, 3, 2)); in TEST()
165 EXPECT_EQ(1, Invoke(&Class::RefMethod, p.get(), 3, 2)); in TEST()
166 EXPECT_EQ(1, Invoke(&Class::RefMethod, *p, 3, 2)); in TEST()
167 EXPECT_EQ(1, Invoke(&Class::RefRefMethod, std::move(*p), 3, 2)); // NOLINT in TEST()
168 EXPECT_EQ(1, Invoke(&Class::NoExceptMethod, p, 3, 2)); in TEST()
169 EXPECT_EQ(1, Invoke(&Class::NoExceptMethod, p.get(), 3, 2)); in TEST()
170 EXPECT_EQ(1, Invoke(&Class::NoExceptMethod, *p, 3, 2)); in TEST()
172 EXPECT_EQ(1, Invoke(&Class::ConstMethod, p, 3, 2)); in TEST()
173 EXPECT_EQ(1, Invoke(&Class::ConstMethod, p.get(), 3, 2)); in TEST()
174 EXPECT_EQ(1, Invoke(&Class::ConstMethod, *p, 3, 2)); in TEST()
176 EXPECT_EQ(1, Invoke(&Class::ConstMethod, cp, 3, 2)); in TEST()
177 EXPECT_EQ(1, Invoke(&Class::ConstMethod, cp.get(), 3, 2)); in TEST()
178 EXPECT_EQ(1, Invoke(&Class::ConstMethod, *cp, 3, 2)); in TEST()
180 EXPECT_EQ(1, Invoke(&Class::VolatileMethod, p, 3, 2)); in TEST()
181 EXPECT_EQ(1, Invoke(&Class::VolatileMethod, p.get(), 3, 2)); in TEST()
182 EXPECT_EQ(1, Invoke(&Class::VolatileMethod, *p, 3, 2)); in TEST()
183 EXPECT_EQ(1, Invoke(&Class::VolatileMethod, vp, 3, 2)); in TEST()
184 EXPECT_EQ(1, Invoke(&Class::VolatileMethod, vp.get(), 3, 2)); in TEST()
185 EXPECT_EQ(1, Invoke(&Class::VolatileMethod, *vp, 3, 2)); in TEST()
187 EXPECT_EQ(1, Invoke(&Class::Method, make_unique<Class>(), 3, 2)); in TEST()
188 EXPECT_EQ(1, Invoke(&Class::ConstMethod, make_unique<Class>(), 3, 2)); in TEST()
189 EXPECT_EQ(1, Invoke(&Class::ConstMethod, make_unique<const Class>(), 3, 2)); in TEST()
195 EXPECT_EQ(42, Invoke(&Class::member, p)); in TEST()
196 EXPECT_EQ(42, Invoke(&Class::member, *p)); in TEST()
197 EXPECT_EQ(42, Invoke(&Class::member, p.get())); in TEST()
199 Invoke(&Class::member, p) = 42; in TEST()
200 Invoke(&Class::member, p.get()) = 42; in TEST()
202 EXPECT_EQ(42, Invoke(&Class::member, cp)); in TEST()
203 EXPECT_EQ(42, Invoke(&Class::member, *cp)); in TEST()
204 EXPECT_EQ(42, Invoke(&Class::member, cp.get())); in TEST()
211 EXPECT_EQ(42, Invoke(&FlipFlop::ConstMethod, obj)); in TEST()
212 EXPECT_EQ(42, Invoke(&FlipFlop::member, obj)); in TEST()