diff --git a/UNITTESTS/README.md b/UNITTESTS/README.md index d45b3b1076..5dd3f04511 100644 --- a/UNITTESTS/README.md +++ b/UNITTESTS/README.md @@ -85,7 +85,7 @@ Mbed CLI supports unit tests through the `mbed test --unittests` command. For in A unit tests suite consists of one or more test cases. The test cases should cover all the functions in a class under test. All the external dependencies are stubbed including the other classes in the same module. Avoid stubbing header files. Finally, analyze code coverage to ensure all code is tested, and no dead code is found. -Unit tests are written using [Google Test v1.8.1](https://github.com/google/googletest/releases/tag/release-1.8.1). +Unit tests are written using [Google Test v1.10.0](https://github.com/google/googletest/releases/tag/release-1.10.0). Please see the [documentation for Google Test](https://github.com/google/googletest/blob/master/googletest/docs/primer.md) to learn how to write unit tests using its framework. See the [documentation for Google Mock](https://github.com/google/googletest/blob/master/googlemock/docs/Documentation.md) if you want to write and use C++ mock classes instead of stubs. diff --git a/UNITTESTS/googletest-CMakeLists.txt.in b/UNITTESTS/googletest-CMakeLists.txt.in index f4b4894a51..c6d9f444bd 100644 --- a/UNITTESTS/googletest-CMakeLists.txt.in +++ b/UNITTESTS/googletest-CMakeLists.txt.in @@ -5,7 +5,7 @@ project(googletest-download NONE) include(ExternalProject) ExternalProject_Add(googletest GIT_REPOSITORY https://github.com/google/googletest.git - GIT_TAG release-1.8.1 + GIT_TAG release-1.10.0 SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src" BINARY_DIR "${CMAKE_BINARY_DIR}/googletest-build" CONFIGURE_COMMAND "" diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/EthernetInterface/test_EthernetInterface.cpp b/connectivity/netsocket/tests/UNITTESTS/netsocket/EthernetInterface/test_EthernetInterface.cpp index 29a98878da..8db41166ab 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/EthernetInterface/test_EthernetInterface.cpp +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/EthernetInterface/test_EthernetInterface.cpp @@ -43,6 +43,7 @@ using ::testing::SaveArgPointee; using ::testing::SetArrayArgument; using ::testing::SetArgPointee; using ::testing::SetArgReferee; +using ::testing::DoAll; class TestEthernetInterface: public testing::Test { protected: diff --git a/connectivity/netsocket/tests/UNITTESTS/netsocket/PPPInterface/test_PPPInterface.cpp b/connectivity/netsocket/tests/UNITTESTS/netsocket/PPPInterface/test_PPPInterface.cpp index d1dcb99104..ab4d07b011 100644 --- a/connectivity/netsocket/tests/UNITTESTS/netsocket/PPPInterface/test_PPPInterface.cpp +++ b/connectivity/netsocket/tests/UNITTESTS/netsocket/PPPInterface/test_PPPInterface.cpp @@ -38,6 +38,7 @@ using ::testing::SaveArgPointee; using ::testing::SetArrayArgument; using ::testing::SetArgPointee; using ::testing::SetArgReferee; +using ::testing::DoAll; class MockPPP : public PPP { public: