~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to subversion/tests/libsvn_wc/utils.h

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2015-08-07 21:32:47 UTC
  • mfrom: (0.2.15) (4.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20150807213247-ozyewtmgsr6tkewl
Tags: 1.9.0-1
* Upload to unstable
* New upstream release.
  + Security fixes
    - CVE-2015-3184: Mixed anonymous/authenticated path-based authz with
      httpd 2.4
    - CVE-2015-3187: svn_repos_trace_node_locations() reveals paths hidden
      by authz
* Add >= 2.7 requirement for python-all-dev Build-Depends, needed to run
  tests.
* Remove Build-Conflicts against ruby-test-unit.  (Closes: #791844)
* Remove patches/apache_module_dependency in favor of expressing the
  dependencies in authz_svn.load/dav_svn.load.
* Build-Depend on apache2-dev (>= 2.4.16) to ensure ap_some_authn_required()
  is available when building mod_authz_svn and Depend on apache2-bin (>=
  2.4.16) for runtime support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include <apr_pools.h>
27
27
#include "svn_error.h"
 
28
#include "svn_client.h"
 
29
 
28
30
#include "../svn_test.h"
29
31
 
30
32
#ifdef __cplusplus
53
55
  svn_wc_context_t *wc_ctx;
54
56
  /* The repository URL. */
55
57
  const char *repos_url;
 
58
  /* Local path to the repository */
 
59
  const char *repos_dir;
56
60
  /* The absolute local path of the WC root. */
57
61
  const char *wc_abspath;
58
62
  /* A pool that can be used for all allocations. */
83
87
          (svn_dirent_join((b)->wc_abspath, (path), (b)->pool))
84
88
 
85
89
/* Create a file on disk at PATH, with TEXT as its content. */
86
 
void
 
90
svn_error_t *
87
91
sbox_file_write(svn_test__sandbox_t *b, const char *path, const char *text);
88
92
 
89
93
/* Schedule for addition the single node that exists on disk at PATH,
162
166
 
163
167
/* */
164
168
svn_error_t *
 
169
sbox_wc_resolve_prop(svn_test__sandbox_t *b, const char *path,
 
170
                     const char *propname,
 
171
                     svn_wc_conflict_choice_t conflict_choice);
 
172
 
 
173
/* */
 
174
svn_error_t *
165
175
sbox_wc_move(svn_test__sandbox_t *b, const char *src, const char *dst);
166
176
 
167
177
/* Set property NAME to VALUE on PATH. If VALUE=NULL, delete the property. */
175
185
svn_error_t *
176
186
sbox_add_and_commit_greek_tree(svn_test__sandbox_t *b);
177
187
 
 
188
/* Initial data to store in NODES */
 
189
typedef struct svn_test__nodes_data_t
 
190
{
 
191
  int op_depth;
 
192
  const char *local_relpath;
 
193
  const char *presence;
 
194
  int repos_id;
 
195
  const char *repos_relpath;
 
196
  svn_revnum_t revision;
 
197
  svn_boolean_t moved_here;
 
198
  const char *moved_to;
 
199
  svn_node_kind_t kind;
 
200
  const char *properties;
 
201
  const char *depth;
 
202
  const char *checksum;
 
203
  const char *symlink_target;
 
204
  svn_revnum_t last_revision;
 
205
  apr_time_t last_date;
 
206
  const char *last_author;
 
207
  svn_boolean_t file_external;
 
208
  const char *inherited_props;
 
209
  svn_filesize_t recorded_size;
 
210
  apr_time_t recorded_time;
 
211
} svn_test__nodes_data_t;
 
212
 
 
213
/* Initial data to store in ACTUAL */
 
214
typedef struct svn_test__actual_data_t
 
215
{
 
216
  const char *local_relpath;
 
217
  const char *properties;
 
218
  const char *changelist;
 
219
  const char *conflict_data;
 
220
} svn_test__actual_data_t;
178
221
 
179
222
/* Create a WC directory at WC_ABSPATH containing a fake WC DB, generated by
180
223
 * executing the SQL statements EXTRA_STATEMENTS in addition to the standard
182
225
svn_error_t *
183
226
svn_test__create_fake_wc(const char *wc_abspath,
184
227
                         const char *extra_statements,
185
 
                         apr_pool_t *result_pool,
 
228
                         const svn_test__nodes_data_t nodes[],
 
229
                         const svn_test__actual_data_t actuals[],
186
230
                         apr_pool_t *scratch_pool);
187
231
 
188
232
 
 
233
/* Create a client context for the specified sandbox */
 
234
svn_error_t *
 
235
svn_test__create_client_ctx(svn_client_ctx_t **ctx,
 
236
                            svn_test__sandbox_t *sbox,
 
237
                            apr_pool_t *result_pool);
 
238
 
 
239
 
189
240
#ifdef __cplusplus
190
241
}
191
242
#endif /* __cplusplus */