~artmello/gallery-app/gallery-app-not_display_video

« back to all changes in this revision

Viewing changes to tests/unittests/gallerythumbnailimageprovider/tst_gallerythumbnailimageprovider.cpp

  • Committer: Ugo Riboni
  • Date: 2014-02-11 19:56:40 UTC
  • Revision ID: ugo.riboni@canonical.com-20140211195640-z3tmk4foyq8xqlhl
Remove the built-in thumbnail image provider as it's not used anymore

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*
2
 
 * Copyright (C) 2012 Canonical, Ltd.
3
 
 *
4
 
 * Authors:
5
 
 *  Guenter Schwann <guenter.schwann@canonical.com>
6
 
 *
7
 
 * This program is free software; you can redistribute it and/or modify
8
 
 * it under the terms of the GNU General Public License as published by
9
 
 * the Free Software Foundation; version 3.
10
 
 *
11
 
 * This program is distributed in the hope that it will be useful,
12
 
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 
 * GNU General Public License for more details.
15
 
 *
16
 
 * You should have received a copy of the GNU General Public License
17
 
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
18
 
 */
19
 
 
20
 
#include <QtTest/QtTest>
21
 
#include <QFileInfo>
22
 
#include <QUrl>
23
 
 
24
 
#include "gallery-thumbnail-image-provider.h"
25
 
 
26
 
class tst_GalleryThumbnailImageProvider : public QObject
27
 
{
28
 
  Q_OBJECT
29
 
public:
30
 
    tst_GalleryThumbnailImageProvider();
31
 
 
32
 
private slots:
33
 
    void ToURL();
34
 
 
35
 
private:
36
 
    GalleryThumbnailImageProvider gallery_thumbnail_image_provider;
37
 
};
38
 
 
39
 
tst_GalleryThumbnailImageProvider::tst_GalleryThumbnailImageProvider()
40
 
    : gallery_thumbnail_image_provider()
41
 
{
42
 
}
43
 
 
44
 
void tst_GalleryThumbnailImageProvider::ToURL()
45
 
{
46
 
    QFileInfo fi("/tmp/test.jpg");
47
 
    QUrl url = gallery_thumbnail_image_provider.toURL(fi);
48
 
    QUrl expect("image://gallery-thumbnail//tmp/test.jpg");
49
 
    QCOMPARE(url, expect);
50
 
}
51
 
 
52
 
QTEST_MAIN(tst_GalleryThumbnailImageProvider);
53
 
 
54
 
#include "tst_gallerythumbnailimageprovider.moc"