Searched refs:ON_CALL (Results 1 - 10 of 10) sorted by relevance

/gem5/ext/googletest/googlemock/test/
H A Dgmock_leak_test_.cc75 ON_CALL(*foo, DoThis()).WillByDefault(Return());
88 ON_CALL(*foo1, DoThis()).WillByDefault(Return());
H A Dgmock_link_test.h393 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return());
474 ON_CALL(mock, VoidFromString(_)).WillByDefault(Return());
481 ON_CALL(mock, VoidFromString(A<char*>())).WillByDefault(Return());
489 ON_CALL(mock, VoidFromString(Eq(p))).WillByDefault(Return());
490 ON_CALL(mock, VoidFromString(const_cast<char*>("y")))
498 ON_CALL(mock, VoidFromFloat(Lt(1.0f))).WillByDefault(Return());
499 ON_CALL(mock, VoidFromFloat(Gt(1.0f))).WillByDefault(Return());
500 ON_CALL(mock, VoidFromFloat(Le(1.0f))).WillByDefault(Return());
501 ON_CALL(mock, VoidFromFloat(Ge(1.0f))).WillByDefault(Return());
502 ON_CALL(moc
[all...]
H A Dgmock_output_test_.cc207 ON_CALL(foo_, Bar2(_, _))
209 ON_CALL(foo_, Bar2(1, _))
219 ON_CALL(foo_, Bar2(_, _))
221 ON_CALL(foo_, Bar2(1, _))
234 ON_CALL(foo_, Bar2(_, _))
236 ON_CALL(foo_, Bar2(1, _))
244 ON_CALL(foo_, Bar2(_, _))
258 // Invokes ON_CALL on foo1.
259 ON_CALL(*foo1, Bar(_, _, _)).WillByDefault(Return('a'));
H A Dgmock-spec-builders_test.cc179 // Tests that EXPECT_CALL and ON_CALL compile in a presence of macro
204 ON_CALL(cc, Method());
211 ON_CALL(cc, Method()).WillByDefault(Return(42));
231 // Tests that ON_CALL evaluates its arguments exactly once as promised
237 ON_CALL(*pa++, DoA(_));
245 ON_CALL(a, DoA(n++));
249 // Tests that the syntax of ON_CALL() is enforced at run time.
254 ON_CALL(a, DoA(5))
256 ON_CALL(a, DoA(_))
265 ON_CALL(
[all...]
H A Dgmock-nice-strict_test.cc137 ON_CALL(*raw_foo, DoThis())
178 ON_CALL(*nice_foo, DoThis())
282 ON_CALL(*naggy_foo, DoThis())
379 ON_CALL(*strict_foo, DoThis())
H A Dgmock_stress_test.cc151 ON_CALL(foo, Bar(_))
153 ON_CALL(foo, Baz(_, _))
155 ON_CALL(foo, Baz(_, "you"))
202 ON_CALL(foo, Bar(_))
H A Dgmock-internal-utils_test.cc590 ON_CALL(mock, TestMethod());
593 // Verifies that ON_CALL logs if the --gmock_verbose flag is set to "info".
596 HasSubstr("ON_CALL(mock, TestMethod())"));
599 // Verifies that ON_CALL doesn't log
605 // Verifies that ON_CALL doesn't log if
613 ON_CALL(mock, TestMethodArg(_));
616 // Verifies that ON_CALL prints provided _ argument.
619 HasSubstr("ON_CALL(mock, TestMethodArg(_)"));
H A Dgmock-actions_test.cc754 // DefaultValue<T>::Set() when it's not overriden by an ON_CALL().
764 // Tests that DoDefault() does the action specified by ON_CALL().
767 ON_CALL(mock, IntFunc(_))
774 // Tests that using DoDefault() in ON_CALL() leads to a run-time failure.
778 ON_CALL(mock, IntFunc(_))
780 }, "DoDefault() cannot be used in ON_CALL()");
H A Dgmock-matchers_test.cc2608 ON_CALL(helper, Helper(_, _))
/gem5/ext/googletest/googlemock/include/gmock/
H A Dgmock-spec-builders.h34 // This file implements the ON_CALL() and EXPECT_CALL() macros.
36 // A user can use the ON_CALL() macro to specify the default action of
39 // ON_CALL(mock_object, Method(argument-matchers))
137 // Clears the ON_CALL()s set on this mock function.
187 // whenever an EXPECT_CALL() or ON_CALL() is executed on this mock
230 // ON_CALL/EXPECT_CALL has been invoked on it.
247 // The arguments are the location of the ON_CALL() statement.
256 // Gives each clause in the ON_CALL() statement a name.
265 // Asserts that the ON_CALL() statement has a certain property.
270 // Expects that the ON_CALL() statemen
1841 #define ON_CALL macro
[all...]

Completed in 46 milliseconds