File tree 3 files changed +29
-2
lines changed
3 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 3
3
# See LICENSE.TXT
4
4
# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
5
5
6
- add_library (ur_mock_headers INTERFACE )
6
+ add_library (ur_mock_headers SHARED
7
+ "${CMAKE_CURRENT_SOURCE_DIR} /ur_mock_helpers.cpp" )
8
+
7
9
target_include_directories (ur_mock_headers
8
10
INTERFACE "${CMAKE_CURRENT_SOURCE_DIR} "
9
11
)
10
12
13
+ target_link_libraries (ur_mock_headers PRIVATE
14
+ ${PROJECT_NAME} ::headers
15
+ )
16
+
11
17
add_library (${PROJECT_NAME} ::mock ALIAS ur_mock_headers)
Original file line number Diff line number Diff line change
1
+ /*
2
+ *
3
+ * Copyright (C) 2024 Intel Corporation
4
+ *
5
+ * Part of the Unified-Runtime Project, under the Apache License v2.0 with LLVM Exceptions.
6
+ * See LICENSE.TXT
7
+ * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8
+ *
9
+ * @file ur_mock_helpers.cpp
10
+ *
11
+ */
12
+
13
+ #include " ur_mock_helpers.hpp"
14
+
15
+ namespace mock {
16
+
17
+ std::unordered_map<std::string, ur_mock_callback_t > callbacks::beforeCallbacks;
18
+ std::unordered_map<std::string, ur_mock_callback_t > callbacks::replaceCallbacks;
19
+ std::unordered_map<std::string, ur_mock_callback_t > callbacks::afterCallbacks;
20
+
21
+ } // namespace mock
Original file line number Diff line number Diff line change 6
6
* See LICENSE.TXT
7
7
* SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8
8
*
9
- * @file ur_nullddi.cpp
9
+ * @file ur_mock_helpers.hpp
10
10
*
11
11
*/
12
12
You can’t perform that action at this time.
0 commit comments