summaryrefslogtreecommitdiffstats
path: root/tests/auto/qmediacontent
diff options
context:
space:
mode:
authorJustin McPherson <justin.mcpherson@nokia.com>2010-02-25 02:43:24 (GMT)
committerJustin McPherson <justin.mcpherson@nokia.com>2010-02-25 03:35:21 (GMT)
commitcccfbf4e2ad80c47b96e08765858c1cd4365a312 (patch)
treeb12cfc2b6b901ed20dc2fc44afc81af7a3b41a12 /tests/auto/qmediacontent
parente9f3edcb0a0223b90606108993999ad3cb37af9f (diff)
downloadQt-cccfbf4e2ad80c47b96e08765858c1cd4365a312.zip
Qt-cccfbf4e2ad80c47b96e08765858c1cd4365a312.tar.gz
Qt-cccfbf4e2ad80c47b96e08765858c1cd4365a312.tar.bz2
QMediaContent: Add a convenience method to retrieve the QNetworkRequest.
Reviewed-by: Andrew den Exter
Diffstat (limited to 'tests/auto/qmediacontent')
-rw-r--r--tests/auto/qmediacontent/tst_qmediacontent.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/auto/qmediacontent/tst_qmediacontent.cpp b/tests/auto/qmediacontent/tst_qmediacontent.cpp
index 8987241..a0a9bdb 100644
--- a/tests/auto/qmediacontent/tst_qmediacontent.cpp
+++ b/tests/auto/qmediacontent/tst_qmediacontent.cpp
@@ -85,6 +85,7 @@ void tst_QMediaContent::testRequestCtor()
QMediaContent media(request);
+ QCOMPARE(media.canonicalRequest(), request);
QCOMPARE(media.canonicalUrl(), QUrl("http://example.com/movie.mov"));
QCOMPARE(media.canonicalResource().request(), request);
QCOMPARE(media.canonicalResource().url(), QUrl("http://example.com/movie.mov"));