PR #12907: Fix link error in for_all_thunks_test
PR #12907: Fix link error in for_all_thunks_test

Imported from GitHub PR https://github.com/openxla/xla/pull/12907

Use xla_cc_test instead of cc_test to ensure that all shared objects are available for linking.
Copybara import of the project:

--
dc432e9d10e40f2bd0759fa30764d4eefcc5360c by Andrew Goodbody <andrew.goodbody@linaro.org>:

Fix link error in for_all_thunks_test

Use xla_cc_test instead of cc_test to ensure that all shared objects
are available for linking.

Merging this change closes #12907

FUTURE_COPYBARA_INTEGRATE_REVIEW=https://github.com/openxla/xla/pull/12907 from elfringham:fix_all_thunks_test dc432e9d10e40f2bd0759fa30764d4eefcc5360c
