~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/archive/archive_test.cc

  • Committer: Brian Aker
  • Date: 2010-10-26 21:34:15 UTC
  • mto: (1887.2.1 merge)
  • mto: This revision was merged to the branch mainline in revision 1888.
  • Revision ID: brian@tangent.org-20101026213415-666ezkzx542h8uf0
Adding cache.h for definition.

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <fcntl.h>
23
23
#include <unistd.h>
24
24
#include <cstdlib>
25
 
#include <memory>
26
25
 
27
26
#if TIME_WITH_SYS_TIME
28
27
# include <sys/time.h>
35
34
# endif
36
35
#endif
37
36
 
38
 
#include <boost/scoped_ptr.hpp>
39
 
 
40
37
#define COMMENT_STRING "Your bases"
41
38
#define FRM_STRING "My bases"
42
39
#define TEST_FILENAME "test.az"
114
111
  int error;
115
112
  unsigned int x;
116
113
  int written_rows= 0;
117
 
  boost::scoped_ptr<azio_stream> writer_handle_ap(new azio_stream);
118
 
  boost::scoped_ptr<azio_stream> reader_handle_ap(new azio_stream);
119
 
  azio_stream &writer_handle= *writer_handle_ap.get();
120
 
  azio_stream &reader_handle= *reader_handle_ap.get();
 
114
  azio_stream writer_handle, reader_handle;
121
115
 
122
116
  memcpy(test_string, TEST_STRING_INIT, 1024);
123
117
 
291
285
int size_test(uint64_t length, uint64_t rows_to_test_for,
292
286
              az_method method)
293
287
{
294
 
  boost::scoped_ptr<azio_stream> writer_handle_ap(new azio_stream);
295
 
  boost::scoped_ptr<azio_stream> reader_handle_ap(new azio_stream);
296
 
  azio_stream &writer_handle= *writer_handle_ap.get();
297
 
  azio_stream &reader_handle= *reader_handle_ap.get();
 
288
  azio_stream writer_handle, reader_handle;
298
289
  uint64_t write_length;
299
290
  uint64_t read_length;
300
291
  uint64_t count;