summaryrefslogtreecommitdiff
path: root/test/MockPieceSelector.h
blob: 7723c97a39ddca8435ef9e54f58a583b7cb7bab0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#ifndef D_MOCK_PIECE_SELECTOR_H
#define D_MOCK_PIECE_SELECTOR_H

#include "PieceSelector.h"

namespace aria2 {

class MockPieceSelector:public PieceSelector {
public:
  virtual bool select
  (size_t& index, const unsigned char* bitfield, size_t nbits) const
  {
    return false;
  }
};

} // namespace aria2

#endif // D_MOCK_PIECE_SELECTOR_H