~artmello/gallery-app/gallery-app-start_on_event

« back to all changes in this revision

Viewing changes to tests/unittests/gallerystandardimageprovider/tst_gallerystandardimageprovidertest.cpp

  • Committer: CI bot
  • Author(s): Arthur Mello, Bill Filler, Ugo Riboni
  • Date: 2014-03-19 20:19:57 UTC
  • mfrom: (912.3.20 multiple-bug-fixes)
  • Revision ID: ps-jenkins@lists.canonical.com-20140319201957-32sglr01gx1xx9e0
multiple gallery-app bug fixes Bug #907870: [desktop] Gallery does not display photos in sub folders, Bug #1221968: use libthumbnailer for gallery thumbnails, Bug #1268748: videos are not displayed when running on desktop, Bug #1271327: disable switching between camera and gallery on desktop, Bug #1287272: Black flash at the end of the zoom animation" Fixes: 907870, 1221968, 1268748, 1271327, 1287272

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include <QUrl>
25
25
 
26
26
#include "gallery-standard-image-provider.h"
27
 
#include "preview-manager.h"
28
27
#include "media-collection.h"
29
28
 
30
29
class tst_GalleryStandardImageProvider : public QObject
63
62
 
64
63
    QTest::newRow("FullSize") << "/home/user/Pictures/logo.jpg?size_level=0&orientation=1" <<
65
64
                                 "/home/user/Pictures/logo.jpg";
66
 
    QTest::newRow("Thumbnail") << "/home/user/Pictures/logo.jpg?size_level=1&orientation=1" <<
67
 
                                 "/home/user/Pictures/.thumbs/logo_th.JPG";
68
65
}
69
66
 
70
67
void tst_GalleryStandardImageProvider::idToFile()
72
69
    QFETCH(QString, id);
73
70
    QFETCH(QString, fileName);
74
71
 
75
 
    PreviewManager previewManager("/home/user/thumbnails");
76
72
    GalleryStandardImageProvider provider;
77
 
    provider.setPreviewManager(&previewManager);
78
73
    QCOMPARE(provider.idToFile(id), fileName);
79
74
}
80
75