~ci-train-bot/qtubuntu-media/qtubuntu-media-ubuntu-xenial-landing-035

« back to all changes in this revision

Viewing changes to tests/integration/uris/tst_mediauris.h

  • Committer: CI Train Bot
  • Author(s): Jim Hodapp
  • Date: 2016-02-22 19:00:08 UTC
  • mfrom: (100.1.7 qtubuntu-media)
  • Revision ID: ci-train-bot@canonical.com-20160222190008-am4pm7lwh6fynnnw
URI encode the URI that we call setMedia() on or add to the playlist Fixes: #1449790
Approved by: Alfonso Sanchez-Beato

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (C) 2016 Canonical, Ltd.
 
3
 *
 
4
 * This program is free software; you can redistribute it and/or modify
 
5
 * it under the terms of the GNU Lesser General Public License as published by
 
6
 * the Free Software Foundation; version 3.
 
7
 *
 
8
 * This program is distributed in the hope that it will be useful,
 
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
11
 * GNU General Public License for more details.
 
12
 *
 
13
 * You should have received a copy of the GNU Lesser General Public License
 
14
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
15
 */
 
16
 
 
17
#ifndef TST_MEDIAURIS_H
 
18
#define TST_MEDIAURIS_H
 
19
 
 
20
#include <core/media/player.h>
 
21
 
 
22
#include <deque>
 
23
#include <future>
 
24
#include <memory>
 
25
 
 
26
#include <QMediaPlayer>
 
27
#include <QMediaPlaylist>
 
28
#include <QObject>
 
29
 
 
30
class AalMediaPlaylistControl;
 
31
class QMediaPlayer;
 
32
 
 
33
class tst_MediaUris : public QObject
 
34
{
 
35
    Q_OBJECT
 
36
 
 
37
private Q_SLOTS:
 
38
    // We want the setup to be run prior to every test case to
 
39
    // ensure correct test isolation, see http://qt-project.org/doc/qt-5/qtest-overview.html.
 
40
    void initTestCase();
 
41
    void cleanupTestCase();
 
42
 
 
43
    void init();
 
44
 
 
45
    void verifySpecialAsciiCharsCanPlaySetMedia();
 
46
    void verifySpecialAsciiCharsCanPlayPlaylist();
 
47
 
 
48
private:
 
49
};
 
50
 
 
51
#endif // TST_MEDIAURIS_H