ohos: fix OAuth2 code/device flow test with built-in test data


When test data is embedded as resources, the certificates are located
under :/shared/certs. QFINDTESTDATA("../shared/certs") cannot resolve
that resource path and falls back to the application directory, causing
the TLS authentication test to run without its certificates.

Use the embedded resource path when BUILTIN_TESTDATA is enabled while
retaining the existing filesystem lookup for other configurations.

Pick-to: 6.12
Fixes: QTBUG-148808
Change-Id: I0c2a8504b13aac722367029b472157e0dc3b1638
Reviewed-by: Juha Vuolle <juvuolle@gmail.com>
commitfdacdbbe62e678d4cf3652e4b6024943d6feb375
parent0fcaf03df867c85fc40eeef226721248dfb69413
authorSol ZHu <sol.zhu@qt.io>
committerSol ZHu <sol.zhu@qt.io>
commit timeMon, 17 Aug 2026 04:44:31 +0000