File: test_fixture.cc

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 (20 lines) | stat: -rw-r--r-- 337 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "config.h"

#include "test_fixture.h"

#include "torrent/utils/log.h"

#include <iostream>

void
test_fixture::setUp() {
  mock_init();

  log_add_group_output(torrent::LOG_CONNECTION_BIND, "test_output");
  log_add_group_output(torrent::LOG_CONNECTION_FD, "test_output");
}

void
test_fixture::tearDown() {
  mock_cleanup();
}