Merge pull request #2830 from keshavgbpecdelhi:patch-1

PiperOrigin-RevId: 309951872
This commit is contained in:
vslashg 2020-05-05 17:07:05 -04:00
commit 1a9c3e4414

View File

@ -7,26 +7,26 @@ derive better designs of your system and write better tests.
It is inspired by: It is inspired by:
* [jMock](http://www.jmock.org/), * [jMock](http://www.jmock.org/)
* [EasyMock](http://www.easymock.org/), and * [EasyMock](http://www.easymock.org/)
* [Hamcrest](http://code.google.com/p/hamcrest/), * [Hamcrest](http://code.google.com/p/hamcrest/)
and designed with C++'s specifics in mind. It is designed with C++'s specifics in mind.
gMock: gMock:
- provides a declarative syntax for defining mocks, - Provides a declarative syntax for defining mocks.
- can define partial (hybrid) mocks, which are a cross of real and mock - Can define partial (hybrid) mocks, which are a cross of real and mock
objects, objects.
- handles functions of arbitrary types and overloaded functions, - Handles functions of arbitrary types and overloaded functions.
- comes with a rich set of matchers for validating function arguments, - Comes with a rich set of matchers for validating function arguments.
- uses an intuitive syntax for controlling the behavior of a mock, - Uses an intuitive syntax for controlling the behavior of a mock.
- does automatic verification of expectations (no record-and-replay needed), - Does automatic verification of expectations (no record-and-replay needed).
- allows arbitrary (partial) ordering constraints on function calls to be - Allows arbitrary (partial) ordering constraints on function calls to be
expressed, expressed.
- lets a user extend it by defining new matchers and actions. - Lets a user extend it by defining new matchers and actions.
- does not use exceptions, and - Does not use exceptions.
- is easy to learn and use. - Is easy to learn and use.
Details and examples can be found here: Details and examples can be found here: