2010-09-07 20:26:19 -05:00
|
|
|
#ifndef RUST_TEST_UTIL_H
|
|
|
|
#define RUST_TEST_UTIL_H
|
|
|
|
|
|
|
|
class rust_test_util : public rust_test {
|
|
|
|
public:
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
class rust_array_list_test : public rust_test {
|
|
|
|
public:
|
|
|
|
bool run();
|
|
|
|
const char *name() {
|
|
|
|
return "rust_array_list_test";
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class rust_synchronized_indexed_list_test : public rust_test {
|
|
|
|
public:
|
|
|
|
rust_srv srv;
|
|
|
|
synchronized_indexed_list<indexed_list_element<int> > list;
|
|
|
|
|
2010-09-10 03:21:29 -05:00
|
|
|
rust_synchronized_indexed_list_test() {
|
2010-09-07 20:26:19 -05:00
|
|
|
// Nop.
|
|
|
|
}
|
|
|
|
|
|
|
|
class worker : public rust_thread {
|
|
|
|
public:
|
|
|
|
rust_synchronized_indexed_list_test *parent;
|
|
|
|
worker(rust_synchronized_indexed_list_test *parent) : parent(parent) {
|
|
|
|
// Nop.
|
|
|
|
}
|
|
|
|
void run();
|
|
|
|
};
|
|
|
|
bool run();
|
|
|
|
const char *name() {
|
|
|
|
return "rust_synchronized_indexed_list_test";
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* RUST_TEST_UTIL_H */
|