#include "libtorrent/ip_filter.hpp"#include <boost/utility.hpp>#include "test.hpp"Go to the source code of this file.
Functions | |
| template<class Addr> | |
| bool | compare (ip_range< Addr > const &lhs, ip_range< Addr > const &rhs) |
| void | test_rules_invariant (std::vector< ip_range< address_v4 > > const &r, ip_filter const &f) |
| int | test_main () |
| bool compare | ( | ip_range< Addr > const & | lhs, | |
| ip_range< Addr > const & | rhs | |||
| ) | [inline] |
Definition at line 13 of file test_ip_filter.cpp.
References libtorrent::ip_range< Addr >::first, libtorrent::ip_range< Addr >::flags, and libtorrent::ip_range< Addr >::last.
| int test_main | ( | ) |
Definition at line 41 of file test_ip_filter.cpp.
References libtorrent::ip_filter::add_rule(), libtorrent::ip_filter::export_filter(), asio::ip::address_v4::from_string(), TEST_CHECK, and test_rules_invariant().
| void test_rules_invariant | ( | std::vector< ip_range< address_v4 > > const & | r, | |
| ip_filter const & | f | |||
| ) |
Definition at line 21 of file test_ip_filter.cpp.
References libtorrent::ip_filter::access(), asio::ip::address_v4::from_string(), asio::placeholders::iterator, and TEST_CHECK.
Referenced by test_main().
1.5.6