#include <QUrl>
#include <QUrlQuery>
-class DolphinSearchBoxTest : public QObject
+class DolphinQueryTest : public QObject
{
Q_OBJECT
return searchUrl;
}
-void DolphinSearchBoxTest::initTestCase()
+void DolphinQueryTest::initTestCase()
{
QStandardPaths::setTestModeEnabled(true);
}
/**
* Defines the parameters for the test cases in testBalooSearchParsing()
*/
-void DolphinSearchBoxTest::testBalooSearchParsing_data()
+void DolphinQueryTest::testBalooSearchParsing_data()
{
QTest::addColumn<QUrl>("searchUrl");
* properly handled by the searchbox, and only "user" or filename terms are added to the
* text bar of the searchbox.
*/
-void DolphinSearchBoxTest::testBalooSearchParsing()
+void DolphinQueryTest::testBalooSearchParsing()
{
QFETCH(QUrl, searchUrl);
QFETCH(QString, expectedText);
QCOMPARE(query.hasFileName(), hasFileName);
}
-QTEST_MAIN(DolphinSearchBoxTest)
+QTEST_MAIN(DolphinQueryTest)
#include "dolphinquerytest.moc"