Refactor return value of env.add_icd()
authorCharles Giessen <charles@lunarg.com>
Mon, 19 Jun 2023 03:47:51 +0000 (21:47 -0600)
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>
Tue, 20 Jun 2023 19:49:58 +0000 (13:49 -0600)
commit27e1acf1e95af2c2b2bfeb8944ac04b6196688e0
tree847ea81077c7a8fd3397f8ddadf69f1a26dd49a9
parent9a0470932171cecc2dd096d6990cf31d280ad050
Refactor return value of env.add_icd()

Make it return the driver that was just added rather than the ICD that
holds the driver, allowing for more concise code. This is because most
tests which modify the driver in some fashion do it in one go, and by
using the builder pattern, can be done all in a single statement.
16 files changed:
tests/framework/icd/physical_device.h
tests/framework/icd/test_icd.h
tests/framework/test_environment.cpp
tests/framework/test_environment.h
tests/loader_alloc_callback_tests.cpp
tests/loader_debug_ext_tests.cpp
tests/loader_envvar_tests.cpp
tests/loader_get_proc_addr_tests.cpp
tests/loader_handle_validation_tests.cpp
tests/loader_layer_tests.cpp
tests/loader_regression_tests.cpp
tests/loader_settings_tests.cpp
tests/loader_threading_tests.cpp
tests/loader_unknown_ext_tests.cpp
tests/loader_version_tests.cpp
tests/loader_wsi_tests.cpp