summaryrefslogtreecommitdiff
diff options
authorMarco Trevisan (Treviño) <mail@3v1n0.net>2013-03-21 20:52:30 +0100
committerMarco Trevisan (Treviño) <mail@3v1n0.net>2013-03-21 20:52:30 +0100
commitf73c3dbe9511fc25da614e14d0eaafeb0a1bb58c (patch)
tree106986d03e5c1f0beb68d718c60f23af2a32f399
parent2532b4c7a232d605b3ef02277349d49f033674d3 (diff)
TestGDBusProxy: use glib::Cancellable
(bzr r3227.3.19)
-rw-r--r--tests/test_gdbus_proxy.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_gdbus_proxy.cpp b/tests/test_gdbus_proxy.cpp
index 8d94a4f55..1ec8d6f10 100644
--- a/tests/test_gdbus_proxy.cpp
+++ b/tests/test_gdbus_proxy.cpp
@@ -108,13 +108,13 @@ TEST_F(TestGDBusProxy, TestCancelling)
};
EXPECT_FALSE(proxy.IsConnected()); // we shouldn't be connected yet
- glib::Object<GCancellable> cancellable(g_cancellable_new());
+ glib::Cancellable cancellable;
// but this has to work eitherway
proxy.Call("TestMethod", g_variant_new("(s)", "TestStringTestString"),
method_connection, cancellable);
// this could mostly cause the next test to fail
- g_cancellable_cancel(cancellable);
+ cancellable.Cancel();
EXPECT_FALSE(got_result_return);
}