File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -89,9 +89,11 @@ ur_result_t mock_urDeviceGetInfo(void *pParams) {
89
89
context_t::context_t () {
90
90
mock::getCallbacks ().set_replace_callback (" urPlatformGetApiVersion" ,
91
91
&mock_urPlatformGetApiVersion);
92
- mock::getCallbacks ().set_replace_callback (" urPlatformGetInfo" ,
93
- &mock_urPlatformGetInfo);
94
- mock::getCallbacks ().set_replace_callback (" urDeviceGetInfo" ,
95
- &mock_urDeviceGetInfo);
92
+ // Set the default info stuff as before overrides, this way any application
93
+ // passing in an override for them in any slot will take precedence.
94
+ mock::getCallbacks ().set_before_callback (" urPlatformGetInfo" ,
95
+ &mock_urPlatformGetInfo);
96
+ mock::getCallbacks ().set_before_callback (" urDeviceGetInfo" ,
97
+ &mock_urDeviceGetInfo);
96
98
}
97
99
} // namespace driver
You can’t perform that action at this time.
0 commit comments