Searched defs:connect_to_database (Results 1 - 2 of 2) sorted by relevance

/external/cmockery/cmockery_0_1_2/src/example/
H A Dcustomer_database_test.c35 DatabaseConnection* connect_to_database(const char * const database_url, function
41 will_return(connect_to_database, 0x0DA7ABA53);
45 /* This test fails as the mock function connect_to_database() will have no
H A Dproduct_database_test.c27 DatabaseConnection* connect_to_database(const char * const url, function
35 expect_string(connect_to_database, url, "products.abcd.org");
36 expect_value(connect_to_database, port, 322);
37 will_return(connect_to_database, 0xDA7ABA53);
42 * passed to connect_to_database() by connect_to_product_database(). */
44 expect_string(connect_to_database, url, "products.abcd.com");
45 expect_value(connect_to_database, port, 322);
46 will_return(connect_to_database, 0xDA7ABA53);
50 /* This test will fail since the mock connect_to_database() will attempt to
54 expect_string(connect_to_database, ur
[all...]

Completed in 86 milliseconds