Skip to content

Commit 956b197

Browse files
authored
Merge pull request #14197 from paul-szczepanek-arm/gtest
Upgrade gtest to 1.10
2 parents 04100a1 + 1fd8818 commit 956b197

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

UNITTESTS/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ Mbed CLI supports unit tests through the `mbed test --unittests` command. For in
8585

8686
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.
8787

88-
Unit tests are written using [Google Test v1.8.1](https://github.com/google/googletest/releases/tag/release-1.8.1).
88+
Unit tests are written using [Google Test v1.10.0](https://github.com/google/googletest/releases/tag/release-1.10.0).
8989

9090
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.
9191

UNITTESTS/googletest-CMakeLists.txt.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ project(googletest-download NONE)
55
include(ExternalProject)
66
ExternalProject_Add(googletest
77
GIT_REPOSITORY https://github.com/google/googletest.git
8-
GIT_TAG release-1.8.1
8+
GIT_TAG release-1.10.0
99
SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src"
1010
BINARY_DIR "${CMAKE_BINARY_DIR}/googletest-build"
1111
CONFIGURE_COMMAND ""

connectivity/netsocket/tests/UNITTESTS/netsocket/EthernetInterface/test_EthernetInterface.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ using ::testing::SaveArgPointee;
4343
using ::testing::SetArrayArgument;
4444
using ::testing::SetArgPointee;
4545
using ::testing::SetArgReferee;
46+
using ::testing::DoAll;
4647

4748
class TestEthernetInterface: public testing::Test {
4849
protected:

connectivity/netsocket/tests/UNITTESTS/netsocket/PPPInterface/test_PPPInterface.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ using ::testing::SaveArgPointee;
3838
using ::testing::SetArrayArgument;
3939
using ::testing::SetArgPointee;
4040
using ::testing::SetArgReferee;
41+
using ::testing::DoAll;
4142

4243
class MockPPP : public PPP {
4344
public:

0 commit comments

Comments
 (0)