tst_oauthhttpserverreplyhandler: support built-in TLS test data


The localhostHttps test relies on a private key and certificate. On
platforms where test data is built into the test binary(e.g. OHOS),
these files were not declared as TESTDATA and could not be found at
runtime. Consequently, the TLS handshake failed and callbackReceived was
never emitted.

Declare the shared certificates as TESTDATA and use their resource path
when BUILTIN_TESTDATA is defined. Retain the existing filesystem lookup
for platforms where test data remains externally accessible.

Pick-to: 6.12
Fixes: QTBUG-148994
Change-Id: If42f88dff3f5f9cb058f36483e92b9f415989dc6
Reviewed-by: Juha Vuolle <juvuolle@gmail.com>
commitda5f1735e8115baf31398cf338cddf2083611532
parentfdacdbbe62e678d4cf3652e4b6024943d6feb375
authorSol ZHu <sol.zhu@qt.io>
committerShuang Zhu <sol.zhu@qt.io>
commit timeMon, 17 Aug 2026 04:44:34 +0000