Class UnexpectedObjectFailure

Inheritance Relationships

Base Type

Class Documentation

class UnexpectedObjectFailure : public mu::tiny::mock::Failure
[source]

Failure reported when a call arrives on an unexpected object.

Triggered when ExpectedCall::on_object() was set in the expectation but the actual call used a different object pointer.

Public Functions

UnexpectedObjectFailure(test::Shell *test, const String &function_name, const void *actual, const ExpectedCallsList &expectations)
Parameters:
  • test – The failing test.

  • function_name – Name of the mock function.

  • actual – The actual object pointer.

  • expectations – The current expected-calls list.