gmock.h (googletest-release-1.11.0) | : | gmock.h (googletest-release-1.12.0) | ||
---|---|---|---|---|
skipping to change at line 34 | skipping to change at line 34 | |||
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | |||
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | |||
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | |||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | |||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | |||
// Google Mock - a framework for writing C++ mock classes. | // Google Mock - a framework for writing C++ mock classes. | |||
// | // | |||
// This is the main header file a user should include. | // This is the main header file a user should include. | |||
// GOOGLETEST_CM0002 DO NOT DELETE | ||||
#ifndef GOOGLEMOCK_INCLUDE_GMOCK_GMOCK_H_ | #ifndef GOOGLEMOCK_INCLUDE_GMOCK_GMOCK_H_ | |||
#define GOOGLEMOCK_INCLUDE_GMOCK_GMOCK_H_ | #define GOOGLEMOCK_INCLUDE_GMOCK_GMOCK_H_ | |||
// This file implements the following syntax: | // This file implements the following syntax: | |||
// | // | |||
// ON_CALL(mock_object, Method(...)) | // ON_CALL(mock_object, Method(...)) | |||
// .With(...) ? | // .With(...) ? | |||
// .WillByDefault(...); | // .WillByDefault(...); | |||
// | // | |||
// where With() is optional and WillByDefault() must appear exactly | // where With() is optional and WillByDefault() must appear exactly | |||
skipping to change at line 66 | skipping to change at line 64 | |||
// where all clauses are optional and WillOnce() can be repeated. | // where all clauses are optional and WillOnce() can be repeated. | |||
#include "gmock/gmock-actions.h" | #include "gmock/gmock-actions.h" | |||
#include "gmock/gmock-cardinalities.h" | #include "gmock/gmock-cardinalities.h" | |||
#include "gmock/gmock-function-mocker.h" | #include "gmock/gmock-function-mocker.h" | |||
#include "gmock/gmock-matchers.h" | #include "gmock/gmock-matchers.h" | |||
#include "gmock/gmock-more-actions.h" | #include "gmock/gmock-more-actions.h" | |||
#include "gmock/gmock-more-matchers.h" | #include "gmock/gmock-more-matchers.h" | |||
#include "gmock/gmock-nice-strict.h" | #include "gmock/gmock-nice-strict.h" | |||
#include "gmock/internal/gmock-internal-utils.h" | #include "gmock/internal/gmock-internal-utils.h" | |||
#include "gmock/internal/gmock-port.h" | ||||
namespace testing { | ||||
// Declares Google Mock flags that we want a user to use programmatically. | // Declares Google Mock flags that we want a user to use programmatically. | |||
GMOCK_DECLARE_bool_(catch_leaked_mocks); | GMOCK_DECLARE_bool_(catch_leaked_mocks); | |||
GMOCK_DECLARE_string_(verbose); | GMOCK_DECLARE_string_(verbose); | |||
GMOCK_DECLARE_int32_(default_mock_behavior); | GMOCK_DECLARE_int32_(default_mock_behavior); | |||
namespace testing { | ||||
// Initializes Google Mock. This must be called before running the | // Initializes Google Mock. This must be called before running the | |||
// tests. In particular, it parses the command line for the flags | // tests. In particular, it parses the command line for the flags | |||
// that Google Mock recognizes. Whenever a Google Mock flag is seen, | // that Google Mock recognizes. Whenever a Google Mock flag is seen, | |||
// it is removed from argv, and *argc is decremented. | // it is removed from argv, and *argc is decremented. | |||
// | // | |||
// No value is returned. Instead, the Google Mock flag variables are | // No value is returned. Instead, the Google Mock flag variables are | |||
// updated. | // updated. | |||
// | // | |||
// Since Google Test is needed for Google Mock to work, this function | // Since Google Test is needed for Google Mock to work, this function | |||
// also initializes Google Test and parses its flags, if that hasn't | // also initializes Google Test and parses its flags, if that hasn't | |||
End of changes. 3 change blocks. | ||||
4 lines changed or deleted | 3 lines changed or added |