1
0
mirror of https://github.com/mfontanini/libtins synced 2026-01-27 12:14:26 +01:00

TCP Options are now implemented using std::vector.

This commit is contained in:
Matias Fontanini
2012-08-02 12:00:56 -03:00
parent 50ce6e0a04
commit cb81c65640
3 changed files with 62 additions and 117 deletions

View File

@@ -36,6 +36,12 @@ TEST_F(TCPTest, CopyConstructor) {
test_equals(tcp1, tcp2);
}
TEST_F(TCPTest, CopyAssignmentOperator) {
TCP tcp1(0x6d1f, 0x78f2);
TCP tcp2 = tcp1;
test_equals(tcp1, tcp2);
}
TEST_F(TCPTest, CompleteConstructor) {
TCP tcp(0x6d1f, 0x78f2);
EXPECT_EQ(tcp.dport(), 0x6d1f);