GMocking function call with side condition I expect function “foo” to be called when variable “a” equals 42.