Searched refs:connect_to_database (Results 1 - 5 of 5) sorted by relevance

/external/cmockery/cmockery_0_1_2/src/example/
H A Dproduct_database.c20 return connect_to_database("products.abcd.org", 322);
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...]
H A Ddatabase.h35 DatabaseConnection* connect_to_database(const char * const url,
H A Dcustomer_database.c25 return connect_to_database("customers.abcd.org", 321);
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

Completed in 631 milliseconds