summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2014-08-31 00:13:59 +0100
committerPhilip Withnall <philip@tecnocode.co.uk>2014-09-18 00:22:05 +0100
commit31c69604484a0c1a0e9913c2db760c2f63b72883 (patch)
tree9f4dd07a190bfe0b36c3eadd57f4e3a2f4921bc8 /docs
parent760ca0235f7b0e6413cd31cb371f5e3e83a8c490 (diff)
downloadlibgdata-31c69604484a0c1a0e9913c2db760c2f63b72883.tar.gz
tests: Add a dummy GDataAuthorizer implementation
This will come in useful when testing services which don’t support ClientLogin authorisation, such as Google Tasks. Such services require OAuth authorisation, which requires user interaction. That puts up a big barrier to running the unit tests frequently, and Google seem to provide no ‘playground’ API key which could be used to bypass this requirement for testing purposes. The idea is that traces are recorded for tests using an OAuth authoriser (requiring user interaction), then the dummy authoriser is substituted when the tests are run offline against the pre-recorded traces. This will require custom message matching in uhttpmock to ignore the Authorization header, which will differ between the OAuth and dummy authorisers.
Diffstat (limited to 'docs')
-rw-r--r--docs/reference/Makefile.am5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/reference/Makefile.am b/docs/reference/Makefile.am
index 5957d380..af248c7e 100644
--- a/docs/reference/Makefile.am
+++ b/docs/reference/Makefile.am
@@ -66,7 +66,10 @@ IGNORE_HFILES = \
gdata-buffer.h \
gdata-batch-private.h \
gdata-batch-feed.h \
- gdata-gd-feed-link.h
+ gdata-gd-feed-link.h \
+ gdata-dummy-authorizer.c \
+ gdata-dummy-authorizer.h \
+ $(NULL)
# Images to copy into HTML directory.
# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png