mirror of
https://github.com/mfontanini/libtins
synced 2026-01-27 20:24:26 +01:00
Split dot11.h and dot11.cpp into several files.
This commit is contained in:
@@ -1,9 +1,5 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
#include <stdint.h>
|
||||
#include "dot11.h"
|
||||
#include "tests/dot11.h"
|
||||
#include "tests/dot11_control.h"
|
||||
|
||||
|
||||
using namespace std;
|
||||
@@ -59,12 +55,12 @@ TEST_F(Dot11EndCFAckTest, CopyAssignmentOperator) {
|
||||
|
||||
TEST_F(Dot11EndCFAckTest, ClonePDU) {
|
||||
Dot11EndCFAck dot1(expected_packet, sizeof(expected_packet));
|
||||
std::auto_ptr<Dot11EndCFAck> dot2(dot1.clone());
|
||||
Internals::smart_ptr<Dot11EndCFAck>::type dot2(dot1.clone());
|
||||
test_equals(dot1, *dot2);
|
||||
}
|
||||
|
||||
TEST_F(Dot11EndCFAckTest, FromBytes) {
|
||||
std::auto_ptr<PDU> dot11(Dot11::from_bytes(expected_packet, sizeof(expected_packet)));
|
||||
Internals::smart_ptr<PDU>::type dot11(Dot11::from_bytes(expected_packet, sizeof(expected_packet)));
|
||||
ASSERT_TRUE(dot11.get());
|
||||
const Dot11EndCFAck *inner = dot11->find_pdu<Dot11EndCFAck>();
|
||||
ASSERT_TRUE(inner);
|
||||
|
||||
Reference in New Issue
Block a user