1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
|
/*
* Copyright 2013 MongoDB, Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#ifndef TEST_LIBMONGOC_H
#define TEST_LIBMONGOC_H
char *gen_collection_name (const char *prefix);
void suppress_one_message (void);
char *test_framework_getenv (const char *name);
bool test_framework_getenv_bool (const char *name);
char *test_framework_get_host (void);
uint16_t test_framework_get_port (void);
char *test_framework_get_admin_user (void);
char *test_framework_get_admin_password (void);
bool test_framework_get_ssl (void);
char *test_framework_add_user_password (const char *uri_str,
const char *user,
const char *password);
char *test_framework_get_uri_str_no_auth (const char *database_name);
char *test_framework_get_uri_str (void);
mongoc_uri_t *test_framework_get_uri (void);
mongoc_client_t *test_framework_client_new (void);
mongoc_client_pool_t *test_framework_client_pool_new (void);
bool test_framework_is_mongos (void);
bool test_framework_is_replset (void);
int test_framework_skip_if_mongos (void);
int test_framework_skip_if_replset (void);
bool test_framework_max_wire_version_at_least (int version);
typedef struct _debug_stream_stats_t {
int n_destroyed;
int n_failed;
} debug_stream_stats_t;
void test_framework_set_debug_stream (mongoc_client_t *client,
debug_stream_stats_t *stats);
#endif
|