Lines Matching refs:fake
627 Some times you have a non-trivial fake implementation of an interface. For
656 action to a fake class you already have, using this pattern:
677 FakeFoo fake_; // Keeps an instance of the fake in the mock.
683 fake will be called upon to do it.:
691 foo.DelegateToFake(); // Enables the fake for delegation.
710 * In `DelegateToFake()`, you only need to delegate the methods whose fake
716 use [this technique](#SelectOverload); to disambiguate a fake function (the
725 * Having to mix a mock and a fake is often a sign of something gone wrong.
731 Regarding the tip on mixing a mock and a fake, here's an example on why it may
736 have to provide a fake implementation for the file operation part, which
754 This technique is very similar to the [delegating-to-fake](#DelegatingToFake)
755 technique, the difference being that we use a real object instead of a fake.