Skip to content

Commit

Permalink
iox-#590 Move ErrorHandlerMock to mock directory
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Hoinkis <[email protected]>
  • Loading branch information
mossmaurice committed Feb 8, 2022
1 parent 1d21571 commit 69d9448
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion iceoryx_binding_c/test/test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#ifndef IOX_DDS_GATEWAY_TEST_TEST_HPP
#define IOX_DDS_GATEWAY_TEST_TEST_HPP

#include "iceoryx_hoofs/testing/error_handler_mock.hpp"
#include "iceoryx_hoofs/testing/mocks/error_handler_mock.hpp"

#include <gmock/gmock.h>
#include <gtest/gtest.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
// SPDX-License-Identifier: Apache-2.0
//
#include "iceoryx_hoofs/error_handling/error_handling.hpp"
#include "iceoryx_hoofs/testing/error_handler_mock.hpp"
#include "iceoryx_hoofs/testing/mocks/error_handler_mock.hpp"

#include "test_cxx_functional_interface_types.hpp"

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_hoofs/testing/error_handler_mock.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
//
// SPDX-License-Identifier: Apache-2.0

#include "iceoryx_hoofs/testing/error_handler_mock.hpp"
#include "iceoryx_hoofs/testing/mocks/error_handler_mock.hpp"

namespace iox
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ template <typename Error>
cxx::optional<iox::TypedHandlerFunction<Error>> typedHandler;

template <typename ErrorEnumType>
inline void
errorHandlerForTest(const uint32_t error, const char* errorName IOX_MAYBE_UNUSED, const ErrorLevel level) noexcept
inline void errorHandlerForTest(const uint32_t error, const char* errorName, const ErrorLevel level) noexcept
{
uint32_t errorEnumType = error >> 16;
uint32_t expectedErrorEnumType =
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_posh/test/test.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#ifndef IOX_POSH_TEST_TEST_HPP
#define IOX_POSH_TEST_TEST_HPP

#include "iceoryx_hoofs/testing/error_handler_mock.hpp"
#include "iceoryx_hoofs/testing/mocks/error_handler_mock.hpp"

#include <fstream>
#include <gmock/gmock.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include "iceoryx_hoofs/cxx/helplets.hpp"
#include "iceoryx_hoofs/internal/posix_wrapper/shared_memory_object/memory_map.hpp"
#include "iceoryx_hoofs/log/logmanager.hpp"
#include "iceoryx_hoofs/testing/error_handler_mock.hpp"
#include "iceoryx_hoofs/testing/mocks/error_handler_mock.hpp"
#include "iceoryx_posh/internal/popo/building_blocks/unique_port_id.hpp"
#include "iceoryx_posh/internal/roudi/roudi.hpp"
#include "iceoryx_posh/runtime/posh_runtime.hpp"
Expand Down

0 comments on commit 69d9448

Please sign in to comment.