• Home
  • Raw
  • Download

Lines Matching refs:expectations

20   1. Create some mock objects and specify its expectations and behavior using an intuitive syntax;
21 …at uses the mock objects. Google Mock will catch any violation of the expectations as soon as it a…
122 …1. Specify your expectations on them (How many times will a method be called? With what arguments?…
124 …1. When a mock is destructed, Google Mock will automatically check whether all expectations on it …
165 **Important note:** Google Mock requires expectations to be set **before** the mock functions are c…
201 …successfully is to set the _right expectations_ on it. If you set the expectations too strict, you…
230 **Note:** Why do we use a macro to do this? It serves two purposes: first it makes expectations eas…
329 …ave a single expectation. More realistically, you're going to specify expectations on multiple moc…
331 By default, when a mock method is invoked, Google Mock will search the expectations in the **revers…
342expectations? The reason is that this allows a user to set up the default expectations in a mock o…
345 …tisfied. In other words, the calls don't have to occur in the order the expectations are specified.
364 By creating an object of type `InSequence`, all expectations in its scope are put into a _sequence_…
385 This example shows that **expectations in Google Mock are "sticky" by default**, in the sense that …
398 …30, ..., consecutively, think twice! The problem is that, as we said, expectations are sticky. So,…
400 …le.GetX()` will return 10, 20, 30, ..., is to explicitly say that the expectations are _not_ stick…