About 11,900 results
Open links in new tab
  1. gMock for Dummies - GoogleTest

    gMock is a library (sometimes we also call it a “framework” to make it sound cool) for creating mock classes and using them. It does to C++ what jMock/EasyMock does to Java (well, more or less).

  2. GitHub - google/googletest: GoogleTest - Google Testing and …

    Welcome to GoogleTest, Google's C++ test framework! This repository is a merger of the formerly separate GoogleTest and GoogleMock projects. These were so closely related that it makes sense …

  3. GMock - Google Open Source

    The gMock library provides a mock framework for C++ similar to jMock or EasyMock? for Java. In gMock you use macros to define methods for your mock objects and set expectations for those …

  4. GoogleMock Framework | google/googletest | DeepWiki

    Nov 7, 2025 · GoogleMock (GMock) is a powerful C++ mocking framework that enables developers to create and use mock objects when writing unit tests. It provides a declarative syntax for defining …

  5. gMock Cookbook - GoogleTest

    gMock can mock non-virtual functions to be used in Hi-perf dependency injection. In this case, instead of sharing a common base class with the real class, your mock class will be unrelated to the real class, …

  6. googletest/docs/gmock_for_dummies.md at main - GitHub

    gMock is a library (sometimes we also call it a "framework" to make it sound cool) for creating mock classes and using them. It does to C++ what jMock/EasyMock does to Java (well, more or less).

  7. Googletest Mocking (gMock) Framework - Google Open Source

    GoogleMock is a part of GoogleTest C++ testing framework and a subject to the same requirements.

  8. Google Mock CheatSheet | GoogleTest Docs

    Import the Google Mock names you need to use. All Google Mock names are in the testing namespace unless they are macros or otherwise noted. Create the mock objects. Optionally, set the default …

  9. gMock Cheat Sheet - GoogleTest

    gMock has a built-in default action for any function that returns void, bool, a numeric value, or a pointer. In C++11, it additionally returns the default-constructed value, if one exists for the given type.

  10. gMock Cheat Sheet - Google Open Source

    gMock has a built-in default action for any function that returns void, bool, a numeric value, or a pointer. In C++11, it will additionally returns the default-constructed value, if one exists for the given type.