How to Install and Uninstall google-mock Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: November 26,2024

1. Install "google-mock" package

Please follow the steps below to install google-mock on Ubuntu 16.04 LTS (Xenial Xerus)

$ sudo apt update $ sudo apt install google-mock

2. Uninstall "google-mock" package

Please follow the instructions below to uninstall google-mock on Ubuntu 16.04 LTS (Xenial Xerus):

$ sudo apt remove google-mock $ sudo apt autoclean && sudo apt autoremove

3. Information about the google-mock package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: google-mock
Priority: optional
Section: universe/devel
Installed-Size: 850
Maintainer: Ubuntu Developers
Original-Maintainer: Fredrik Hallenberg
Architecture: amd64
Version: 1.7.0-18092013-1
Depends: python:any, libgtest-dev (>= 1.6.0)
Filename: pool/universe/g/google-mock/google-mock_1.7.0-18092013-1_amd64.deb
Size: 115770
MD5sum: 1c421ff96686be8b1e4a975c26634f37
SHA1: a946f888b60a15946b9bbd55dd98c1a5b1e5ac4a
SHA256: 35e77cc9828ebc667952ac9a8c31e4e46e92171951c6d45128b2d0378b61ff27
Description-en: Google's framework for writing and using C++ mock classes
Inspired by jMock, EasyMock, and Hamcrest, and designed with C++'s
specifics in mind, it can help you derive better designs of your
system and write better tests.
.
Google Mock:
.
- provides a declarative syntax for defining mocks,
- can easily define partial (hybrid) mocks, which are a cross of real
and mock objects,
- handles functions of arbitrary types and overloaded functions,
- comes with a rich set of matchers for validating function arguments,
- uses an intuitive syntax for controlling the behavior of a mock,
- does automatic verification of expectations (no record-and-replay
needed),
- allows arbitrary (partial) ordering constraints on
function calls to be expressed,
- lets a user extend it by defining new matchers and actions.
- does not use exceptions, and
- is easy to learn and use.
Description-md5: 95d9b26f75a8f8f8a93fbe8e13d5b0e9
Multi-Arch: same
Homepage: http://code.google.com/p/googlemock/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Task: ubuntu-sdk-libs-dev