Lines Matching refs:Class
71 struct Class { struct
157 std::unique_ptr<Class> p(new Class); in TEST()
158 std::unique_ptr<const Class> cp(new Class); in TEST()
159 std::unique_ptr<volatile Class> vp(new Class); 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()
193 std::unique_ptr<Class> p(new Class{42}); in TEST()
194 std::unique_ptr<const Class> cp(new Class{42}); 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()