Skip to content

Commit 8f8a154

Browse files
committed
Remove gmock from tests.
1 parent 495ab7e commit 8f8a154

File tree

192 files changed

+283
-282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

192 files changed

+283
-282
lines changed

cmake/InstallGTest.cmake

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,15 @@ if(NOT GTEST_FOUND OR USE_BUNDLED_GTEST)
3939
ExternalProject_Add(google-test-depends
4040
GIT_REPOSITORY https://github.com/google/googletest.git
4141
GIT_TAG release-${GTEST_VERSION}
42-
CMAKE_ARGS -Dgmock_build_tests=OFF
42+
CMAKE_ARGS
4343
-Dgtest_build_samples=OFF
4444
-Dgtest_build_tests=OFF
4545
-Dgtest_disable_pthreads=${GTEST_DISABLE_PTHREADS}
4646
-Dgtest_force_shared_crt=ON
4747
-Dgtest_hide_internal_symbols=OFF
4848
-DINSTALL_GTEST=OFF
4949
-DBUILD_GMOCK=ON
50+
-Dgmock_build_tests=OFF
5051
PREFIX "${CMAKE_CURRENT_BINARY_DIR}"
5152
UPDATE_COMMAND ""
5253
INSTALL_COMMAND ""

source/tests/adt_set_test/source/adt_set_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
*/
2020

21-
#include <gmock/gmock.h>
21+
#include <gtest/gtest.h>
2222

2323
#include <adt/adt_set.h>
2424

source/tests/adt_set_test/source/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
*
1919
*/
2020

21-
#include <gmock/gmock.h>
21+
#include <gtest/gtest.h>
2222

2323
int main(int argc, char * argv[])
2424
{
25-
::testing::InitGoogleMock(&argc, argv);
25+
::testing::InitGoogleTest(&argc, argv);
2626

2727
return RUN_ALL_TESTS();
2828
}

source/tests/adt_trie_test/source/adt_trie_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
*/
2020

21-
#include <gmock/gmock.h>
21+
#include <gtest/gtest.h>
2222

2323
#include <adt/adt_vector.h>
2424
#include <adt/adt_trie.h>

source/tests/adt_trie_test/source/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
*
1919
*/
2020

21-
#include <gmock/gmock.h>
21+
#include <gtest/gtest.h>
2222

2323
int main(int argc, char * argv[])
2424
{
25-
::testing::InitGoogleMock(&argc, argv);
25+
::testing::InitGoogleTest(&argc, argv);
2626

2727
return RUN_ALL_TESTS();
2828
}

source/tests/adt_vector_test/source/adt_vector_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
*/
2020

21-
#include <gmock/gmock.h>
21+
#include <gtest/gtest.h>
2222

2323
#include <adt/adt_vector.h>
2424

source/tests/adt_vector_test/source/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
*
1919
*/
2020

21-
#include <gmock/gmock.h>
21+
#include <gtest/gtest.h>
2222

2323
int main(int argc, char * argv[])
2424
{
25-
::testing::InitGoogleMock(&argc, argv);
25+
::testing::InitGoogleTest(&argc, argv);
2626

2727
return RUN_ALL_TESTS();
2828
}

source/tests/configuration_test/source/configuration_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
*/
2020

21-
#include <gmock/gmock.h>
21+
#include <gtest/gtest.h>
2222

2323
#include <configuration/configuration.h>
2424

source/tests/configuration_test/source/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@
1818
*
1919
*/
2020

21-
#include <gmock/gmock.h>
21+
#include <gtest/gtest.h>
2222

2323
int main(int argc, char * argv[])
2424
{
25-
::testing::InitGoogleMock(&argc, argv);
25+
::testing::InitGoogleTest(&argc, argv);
2626

2727
return RUN_ALL_TESTS();
2828
}

source/tests/cs_loader_test/include/cs-loader-test/environment.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
*
1919
*/
2020

21-
#include <gmock/gmock.h>
21+
#include <gtest/gtest.h>
2222

2323
class environment : public testing::Environment
2424
{

0 commit comments

Comments
 (0)