ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/ermyth/test/balloc.C
(Generate patch)

Comparing ermyth/test/balloc.C (file contents):
Revision 1.1 by pippijn, Tue Aug 28 17:18:26 2007 UTC vs.
Revision 1.2 by pippijn, Thu Aug 30 19:56:26 2007 UTC

1/* 1/*
2 * balloc.C: Test and time the block allocator 2 * balloc.C: Test and time the block allocator
3 * Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team 3 * Copyright © 2007 Pippijn van Steenhoven / The Ermyth Team
4 * Rights to this code are documented in doc/poddoc/gplicense.pod 4 * Rights to this code are documented in doc/poddoc/gplicense.pod
5 * 5 *
6 * $Id: balloc.C,v 1.1 2007/08/28 17:18:26 pippijn Exp $ 6 * $Id: balloc.C,v 1.2 2007/08/30 19:56:26 pippijn Exp $
7 */ 7 */
8 8
9#include "unit/test.h" 9#include "unit/test.h"
10 10
11#ifndef TIMING 11#ifndef TIMING
25 typedef indexing_vector<user_t, &user_t::mu_index> login_vector; 25 typedef indexing_vector<user_t, &user_t::mu_index> login_vector;
26 typedef indexing_vector<mymemo_t, &mymemo_t::mu_index> memo_vector; 26 typedef indexing_vector<mymemo_t, &mymemo_t::mu_index> memo_vector;
27 typedef unordered_vector<char *> mzignore_vector; // memo ignores 27 typedef unordered_vector<char *> mzignore_vector; // memo ignores
28 28
29 myuser_balloc () 29 myuser_balloc ()
30 : has_metadata (MYUSER) 30 : has_metadata (metadata::MYUSER)
31 { 31 {
32 } 32 }
33 33
34 char name[NICKLEN]; 34 char name[NICKLEN];
35 char pass[NICKLEN]; 35 char pass[NICKLEN];
69 typedef indexing_vector<user_t, &user_t::mu_index> login_vector; 69 typedef indexing_vector<user_t, &user_t::mu_index> login_vector;
70 typedef indexing_vector<mymemo_t, &mymemo_t::mu_index> memo_vector; 70 typedef indexing_vector<mymemo_t, &mymemo_t::mu_index> memo_vector;
71 typedef unordered_vector<char *> mzignore_vector; // memo ignores 71 typedef unordered_vector<char *> mzignore_vector; // memo ignores
72 72
73 myuser_noballoc () 73 myuser_noballoc ()
74 : has_metadata (MYUSER) 74 : has_metadata (metadata::MYUSER)
75 { 75 {
76 } 76 }
77 77
78 char name[NICKLEN]; 78 char name[NICKLEN];
79 char pass[NICKLEN]; 79 char pass[NICKLEN];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines