diff options
author | Stef Walter <stefw@gnome.org> | 2012-02-10 16:11:52 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2012-02-10 16:12:28 +0100 |
commit | e05601b4f136ff9a6baf698c8260bf6cca8c69cb (patch) | |
tree | 28f1ff1bd64ad16a8a5122e0b8165cf232c9c413 /gcr/gcr-mock-prompter.c | |
parent | 5ef12d63fed8037151bdcbe904abe7c88ce5e507 (diff) | |
download | gcr-e05601b4f136ff9a6baf698c8260bf6cca8c69cb.tar.gz |
gcr: More checks and docs for GcrPrompt
Diffstat (limited to 'gcr/gcr-mock-prompter.c')
-rw-r--r-- | gcr/gcr-mock-prompter.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/gcr/gcr-mock-prompter.c b/gcr/gcr-mock-prompter.c index e506b3b..e72ef85 100644 --- a/gcr/gcr-mock-prompter.c +++ b/gcr/gcr-mock-prompter.c @@ -35,24 +35,19 @@ /** * SECTION:gcr-mock-prompter * @title: GcrMockPrompter - * @short_description: XXX + * @short_description: a mock GcrSystemPrompter for testing * - * XXXX - */ - -/** - * GcrMockPrompter: + * A mock GcrSystemPrompter used for testing against. * - * XXX - */ - -/** - * GcrMockPrompterClass: + * Use gcr_mock_prompter_start() to start the mock prompter in another + * thread. The returned string is the dbus address of the mock prompter. + * You can pass this to gcr_system_prompt_open() as the prompter bus name. * - * The class for #GcrMockPrompter. + * Use the gcr_mock_prompter_expect_confirm_ok() function and friends before + * prompting to verify that the prompts are displayed as expected, and to + * provide a response. */ - GType _gcr_mock_prompt_get_type (void) G_GNUC_CONST; #define GCR_TYPE_MOCK_PROMPT (_gcr_mock_prompt_get_type ()) #define GCR_MOCK_PROMPT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GCR_TYPE_MOCK_PROMPT, GcrMockPrompt)) |