Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Connection Test
- Copyright (c) 2006 by Matt Rogers <[email protected]>
- Kopete (c) 2002-2006 by the Kopete developers <[email protected]>
- *************************************************************************
- * *
- * This library is free software; you can redistribute it and/or *
- * modify it under the terms of the GNU Lesser General Public *
- * License as published by the Free Software Foundation; either *
- * version 2 of the License, or (at your option) any later version. *
- * *
- *************************************************************************
- */
- #include <QtTest/QtTest>
- #include "latexplugin.h"
- class TestLatexPlugin: public QObject
- {
- Q_OBJECT
- LatexPlugin * dummyPlugin = new LatexPlugin(NULL,QVariantList());
- private slots:
- void testLatexSecurityFunction();
- };
- void TestLatexPlugin::testLatexSecurityFunction()
- {
- QVERIFY(dummyPlugin->securityCheck(QString(""))==false);
- QVERIFY(dummyPlugin->securityCheck(QString("define"))==false);
- QVERIFY(dummyPlugin->securityCheck(QString("read"))==true);
- QVERIFY(dummyPlugin->securityCheck(QString("lineitem"))==false);
- QVERIFY(dummyPlugin->securityCheck(QString("output_stream"))==false);
- }
- QTEST_MAIN(TestLatexPlugin)
- #include "testLatexPlugin.moc"
Add Comment
Please, Sign In to add comment