title: Google Mock: perform repeatedly actions in a specified order
body: <p>Someone know how to program a google mock method to perform repeatedly a sequence of actions (one at a time), when we do not know in advance the number of calls to the method ?</p>
  
  <pre><code>something like :
  EXPECT_CALL(mock, foo())
      .WillRepeatedly(.WillOnce(Return(2));
                      .WillOnce(Return(40));
                      .WillOnce(Return(7)));
  </code></pre>
  
  <p>Behaviour :</p>
  
  <pre><code>mock.foo(); // return 2
  mock.foo(); // return 40
  mock.foo(); // return 7
  
  mock.foo(); // return 2
  mock.foo(); // return 40
  mock.foo(); // return 7
  
  mock.foo(); // return 2
  ...
  </code></pre>
  
  <p>Thanks</p>