summaryrefslogtreecommitdiffstats
path: root/tests/auto/unit/qdeclarativeaudio
diff options
context:
space:
mode:
authorSona Kurazyan <sona.kurazyan@qt.io>2019-07-11 10:35:45 +0200
committerSona Kurazyan <sona.kurazyan@qt.io>2019-08-08 10:11:08 +0200
commit9178132f75563cd0e907525f08736c1b4cec73b4 (patch)
tree4176f8cedd3dc667ae8ee563026191eac43ecdc2 /tests/auto/unit/qdeclarativeaudio
parent5e35587975d6917c9d60ee06c40211af98020105 (diff)
Remove usages of deprecated APIs
- Replace the usages of deprecated APIs by corresponding alternatives. - Made the tests for deprecated APIs to compile conditionally, based on the deprecation version. Task-number: QTBUG-76491 Task-number: QTBUG-76540 Task-number: QTBUG-76541 Change-Id: Ifd397dae9b3ebc2ba2504db7baa2d8ff21bfb3a7 Reviewed-by: VaL Doroshchuk <valentyn.doroshchuk@qt.io>
Diffstat (limited to 'tests/auto/unit/qdeclarativeaudio')
-rw-r--r--tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp b/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp
index b270e93eb..87c72521c 100644
--- a/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp
+++ b/tests/auto/unit/qdeclarativeaudio/tst_qdeclarativeaudio.cpp
@@ -411,17 +411,17 @@ void tst_QDeclarativeAudio::source()
audio.setSource(url1);
QCOMPARE(audio.source(), url1);
- QCOMPARE(provider.playerControl()->media().canonicalUrl(), url1);
+ QCOMPARE(provider.playerControl()->media().request().url(), url1);
QCOMPARE(spy.count(), 1);
audio.setSource(url2);
QCOMPARE(audio.source(), url2);
- QCOMPARE(provider.playerControl()->media().canonicalUrl(), url2);
+ QCOMPARE(provider.playerControl()->media().request().url(), url2);
QCOMPARE(spy.count(), 2);
audio.setSource(url3);
QCOMPARE(audio.source(), url3);
- QCOMPARE(provider.playerControl()->media().canonicalUrl(), url3);
+ QCOMPARE(provider.playerControl()->media().request().url(), url3);
QCOMPARE(spy.count(), 3);
}