diff options
Diffstat (limited to 'test/test.cpp')
-rw-r--r-- | test/test.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/test.cpp b/test/test.cpp index 4ff5794c0..62a3ecbfa 100644 --- a/test/test.cpp +++ b/test/test.cpp @@ -9,8 +9,8 @@ #include <pwd.h> #include <TQtDBus/TQDBusMessage> #include <TQtDBus/TQDBusConnection> -using namespace PolkitTQt1; -using namespace PolkitTQt1::Agent; +using namespace PolkitTQt; +using namespace PolkitTQt::Agent; void wait() { @@ -38,7 +38,7 @@ void TestAuth::test_Auth_checkAuthorization() TQVERIFY(!authority->hasError()); // Now we try async methods - TQSignalSpy spy(authority, SIGNAL(checkAuthorizationFinished(PolkitTQt1::Authority::Result))); + TQSignalSpy spy(authority, SIGNAL(checkAuthorizationFinished(PolkitTQt::Authority::Result))); // Call asynchronous checkAuthorization authority->checkAuthorization("org.tqt.policykit.examples.kick", process, Authority::None); // Give the polkit time to obtain the result and emit the signal with it @@ -46,7 +46,7 @@ void TestAuth::test_Auth_checkAuthorization() // Test if the signal was emitted TQCOMPARE(spy.count(), 1); // Test the result - result = qVariantValue<PolkitTQt1::Authority::Result> (spy.takeFirst()[0]); + result = qVariantValue<PolkitTQt::Authority::Result> (spy.takeFirst()[0]); TQCOMPARE(result, Authority::No); TQVERIFY(!authority->hasError()); spy.clear(); @@ -88,11 +88,11 @@ void TestAuth::test_Auth_enumerateActions() // Test asynchronous version as well list.clear(); count = 0; - TQSignalSpy spy(Authority::instance(), SIGNAL(enumerateActionsFinished(PolkitTQt1::ActionDescription::List))); + TQSignalSpy spy(Authority::instance(), SIGNAL(enumerateActionsFinished(PolkitTQt::ActionDescription::List))); Authority::instance()->enumerateActions(); wait(); TQCOMPARE(spy.count(), 1); - list = qVariantValue<PolkitTQt1::ActionDescription::List> (spy.takeFirst()[0]); + list = qVariantValue<PolkitTQt::ActionDescription::List> (spy.takeFirst()[0]); TQVERIFY(!Authority::instance()->hasError()); Q_FOREACH(const ActionDescription &ad, list) { if ((ad.actionId() == "org.tqt.policykit.examples.kick") || |