summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristanvb@openismus.com>2013-12-01 14:40:24 +0900
committerTristan Van Berkom <tristanvb@openismus.com>2013-12-01 17:32:01 +0900
commit38c7cc2742f85c5a54c5bfd369c140ce5bd911d7 (patch)
treeed7d3a6a9bb2cf82333e78a282be3ef150fa3caa
parentf70610636d3a81cc53e64fc8ab2cdfb5652a1639 (diff)
downloadevolution-data-server-38c7cc2742f85c5a54c5bfd369c140ce5bd911d7.tar.gz
test-client-custom-summary: Added test for the 'x-evolution-any-field' NULL special case
x-evolution-any-field with a NULL value (or byte) means 'get all contacts'.
-rw-r--r--tests/libebook/client/test-client-custom-summary.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/libebook/client/test-client-custom-summary.c b/tests/libebook/client/test-client-custom-summary.c
index 3fadc5e41..daef9b5ae 100644
--- a/tests/libebook/client/test-client-custom-summary.c
+++ b/tests/libebook/client/test-client-custom-summary.c
@@ -399,6 +399,28 @@ main (gint argc,
suites[i].custom,
FALSE);
+ /* Special case should not be a fallback query */
+ add_client_test (
+ suites[i].prefix,
+ "/AnyFieldContains/NULL",
+ suites[i].func,
+ e_book_query_any_field_contains (NULL),
+ N_CONTACTS,
+ suites[i].direct,
+ suites[i].custom,
+ FALSE);
+
+ /* Special case should not be a fallback query */
+ add_client_test (
+ suites[i].prefix,
+ "/AnyFieldContains/\"\"",
+ suites[i].func,
+ e_book_query_any_field_contains (""),
+ N_CONTACTS,
+ suites[i].direct,
+ suites[i].custom,
+ FALSE);
+
/* Add search tests that fetch contacts */
add_client_test (
suites[i].prefix,