File: test_request_list.h

package info (click to toggle)
libtorrent 0.15.7-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 5,152 kB
  • sloc: cpp: 35,007; sh: 4,488; ansic: 4,397; makefile: 575; xml: 163
file content (29 lines) | stat: -rw-r--r-- 671 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <cppunit/extensions/HelperMacros.h>

#include "protocol/request_list.h"

class TestRequestList : public CppUnit::TestFixture {
  CPPUNIT_TEST_SUITE(TestRequestList);
  CPPUNIT_TEST(test_basic);
  CPPUNIT_TEST(test_single_request);
  CPPUNIT_TEST(test_single_canceled);

  CPPUNIT_TEST(test_choke_normal);
  CPPUNIT_TEST(test_choke_unchoke_discard);
  CPPUNIT_TEST(test_choke_unchoke_transfer);

  CPPUNIT_TEST_SUITE_END();

public:
  void setUp() {}
  void tearDown() {}

  void test_basic();

  void test_single_request();
  void test_single_canceled();

  void test_choke_normal();
  void test_choke_unchoke_discard();
  void test_choke_unchoke_transfer();
};