376
376
g_test_dbus_up (<em class="parameter"><code><a class="link" href="GTestDBus.html" title="GTestDBus"><span class="type">GTestDBus</span></a> *self</code></em>);</pre>
377
377
<p>Start a dbus-daemon instance and set DBUS_SESSION_BUS_ADDRESS. After this
378
378
call, it is safe for unit tests to start sending messages on the session bus.</p>
380
380
<a class="link" href="GTestDBus.html#g-test-dbus-down" title="g_test_dbus_down ()"><code class="function">g_test_dbus_down()</code></a> must be called in its teardown callback.</p>
381
381
<p>If this function is called from unit test's <code class="function">main()</code>, then <a class="link" href="GTestDBus.html#g-test-dbus-down" title="g_test_dbus_down ()"><code class="function">g_test_dbus_down()</code></a>
384
384
<a name="id-1.4.25.2.9.6.7"></a><h4>Parameters</h4>
385
385
<div class="informaltable"><table width="100%" border="0">