~brianaker/libmemcached/gear-clean

« back to all changes in this revision

Viewing changes to libtest/framework.h

  • Committer: Brian Aker
  • Date: 2012-08-02 16:14:34 UTC
  • mto: This revision was merged to the branch mainline in revision 1058.
  • Revision ID: brian@tangent.org-20120802161434-gj4slc2hchroierg
Update to support new warnings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
 
47
47
#include <vector>
48
48
 
 
49
namespace { class Collection; }
 
50
typedef std::vector<libtest::Collection*> Suites;
 
51
 
 
52
namespace libtest {
 
53
 
49
54
class Framework {
50
55
public:
51
56
 
52
57
public:
53
58
  test_return_t create();
54
59
 
 
60
  const std::string& name() const
 
61
  {
 
62
    return _name;
 
63
  }
 
64
 
55
65
  void create(test_callback_create_fn* arg)
56
66
  {
57
67
    _create= arg;
62
72
    _destroy= arg;
63
73
  }
64
74
 
65
 
  void collections(collection_st* arg)
66
 
  {
67
 
    _collections= arg;
68
 
  }
 
75
  void collections(collection_st* arg);
69
76
 
70
77
  void set_on_error(test_callback_error_fn *arg)
71
78
  {
100
107
 
101
108
  libtest::Collection& collection();
102
109
 
103
 
  Framework(libtest::SignalThread&, const std::string&);
104
 
 
105
110
  virtual ~Framework();
106
111
 
107
112
  Framework(libtest::SignalThread&,
108
113
            const std::string&,
 
114
            const std::string&,
109
115
            const std::string&);
110
116
 
111
117
  bool match(const char* arg);
150
156
    return _failed;
151
157
  }
152
158
 
 
159
  Suites& suites()
 
160
  {
 
161
    return _collection;
 
162
  }
 
163
 
153
164
private:
154
165
  Framework& operator=(const Framework&);
155
166
 
156
 
  collection_st *_collections;
157
 
 
158
167
  uint32_t _total;
159
168
  uint32_t _success;
160
169
  uint32_t _skipped;
179
188
  bool _socket;
180
189
  void *_creators_ptr;
181
190
  unsigned long int _servers_to_run;
182
 
  std::vector<libtest::Collection*> _collection;
 
191
  Suites _collection;
183
192
  libtest::SignalThread& _signal;
184
193
  std::string _only_run;
185
194
  std::string _wildcard;
 
195
  std::string _name;
186
196
};
 
197
 
 
198
} // namespace libtest