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>