[evolution-data-server/openismus-work-3-8: 34/43] test-client-custom-summary: Added test for the 'x-evolution-any-field' NULL special case



commit 38c7cc2742f85c5a54c5bfd369c140ce5bd911d7
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Sun Dec 1 14:40:24 2013 +0900

    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'.

 tests/libebook/client/test-client-custom-summary.c |   22 ++++++++++++++++++++
 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 3fadc5e..daef9b5 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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]