Skip to content

Commit 3cc0d0c

Browse files
Clean up unused references to mimick/mocking in tests (ros2#450)
Signed-off-by: Christophe Bedard <christophe.bedard@apex.ai>
1 parent b6ba6a1 commit 3cc0d0c

4 files changed

Lines changed: 7 additions & 11 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ if(BUILD_TESTING)
197197
osrf_testing_tools_cpp::memory_tools LIBRARY_PRELOAD_ENVIRONMENT_IS_AVAILABLE)
198198

199199
ament_add_gtest(test_logging test/test_logging.cpp)
200-
target_link_libraries(test_logging ${PROJECT_NAME} mimick osrf_testing_tools_cpp::memory_tools)
200+
target_link_libraries(test_logging ${PROJECT_NAME} osrf_testing_tools_cpp::memory_tools)
201201

202202
add_executable(test_logging_long_messages test/test_logging_long_messages.cpp)
203203
target_link_libraries(test_logging_long_messages ${PROJECT_NAME})
@@ -242,7 +242,7 @@ if(BUILD_TESTING)
242242
test/test_char_array.cpp
243243
)
244244
if(TARGET test_char_array)
245-
target_link_libraries(test_char_array ${PROJECT_NAME} mimick)
245+
target_link_libraries(test_char_array ${PROJECT_NAME})
246246
endif()
247247

248248
# Can't use C++ with stdatomic_helper.h
@@ -283,7 +283,7 @@ if(BUILD_TESTING)
283283
test/test_split.cpp
284284
)
285285
if(TARGET test_split)
286-
target_link_libraries(test_split ${PROJECT_NAME} mimick)
286+
target_link_libraries(test_split ${PROJECT_NAME})
287287
endif()
288288

289289
ament_add_gtest(test_find
@@ -337,7 +337,7 @@ if(BUILD_TESTING)
337337
test/test_format_string.cpp
338338
)
339339
if(TARGET test_format_string)
340-
target_link_libraries(test_format_string ${PROJECT_NAME} mimick)
340+
target_link_libraries(test_format_string ${PROJECT_NAME})
341341
endif()
342342

343343
ament_add_gtest(test_string_map
@@ -388,7 +388,7 @@ if(BUILD_TESTING)
388388
# documentation says otherwise, so here we fallback to DT_RPATH entries.
389389
target_link_libraries(test_shared_library_in_run_paths "-Wl,--disable-new-dtags")
390390
endif()
391-
target_link_libraries(test_shared_library_in_run_paths ${PROJECT_NAME} mimick)
391+
target_link_libraries(test_shared_library_in_run_paths ${PROJECT_NAME})
392392
endif()
393393

394394
set(project_binary_dir "$<TARGET_FILE_DIR:${PROJECT_NAME}>")
@@ -405,7 +405,7 @@ if(BUILD_TESTING)
405405
LIBRARY_OUTPUT_DIRECTORY ${test_libraries_dir})
406406
target_compile_definitions(test_shared_library_in_load_paths PRIVATE
407407
"SHARED_LIBRARY_UNDER_TEST=dummy_shared_library_in_load_paths")
408-
target_link_libraries(test_shared_library_in_load_paths ${PROJECT_NAME} mimick)
408+
target_link_libraries(test_shared_library_in_load_paths ${PROJECT_NAME})
409409
endif()
410410

411411
include(CheckCXXCompilerFlag)
@@ -438,7 +438,7 @@ if(BUILD_TESTING)
438438
endif()
439439
endif()
440440
target_link_libraries(test_shared_library_preloaded dummy_shared_library_preloaded)
441-
target_link_libraries(test_shared_library_preloaded ${PROJECT_NAME} mimick)
441+
target_link_libraries(test_shared_library_preloaded ${PROJECT_NAME})
442442
endif()
443443

444444
ament_add_gtest(test_time

test/test_char_array.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@
2020
#include "rcutils/error_handling.h"
2121
#include "rcutils/types/char_array.h"
2222

23-
#include "./mocking_utils/patch.hpp"
24-
2523
class ArrayCharTest : public ::testing::Test
2624
{
2725
protected:

test/test_format_string.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <string>
1818

1919
#include "./allocator_testing_utils.h"
20-
#include "./mocking_utils/patch.hpp"
2120

2221
#include "rcutils/allocator.h"
2322
#include "rcutils/format_string.h"

test/test_shared_library.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <string>
1818

1919
#include "./allocator_testing_utils.h"
20-
#include "./mocking_utils/patch.hpp"
2120

2221
#include "rcutils/allocator.h"
2322
#include "rcutils/env.h"

0 commit comments

Comments
 (0)