mirror of
https://github.com/mfontanini/libtins
synced 2026-01-23 02:35:57 +01:00
Prefix HAVE_ config.h macros with TINS_
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
#include "dot11/dot11_control.h"
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11.h"
|
||||
@@ -101,4 +101,4 @@ TEST_F(Dot11AckTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "dot11/dot11_assoc.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_mgmt.h"
|
||||
@@ -90,4 +90,4 @@ TEST_F(Dot11AssocRequestTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "dot11/dot11_assoc.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_mgmt.h"
|
||||
@@ -98,4 +98,4 @@ TEST_F(Dot11AssocResponseTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "dot11/dot11_auth.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_mgmt.h"
|
||||
@@ -106,4 +106,4 @@ TEST_F(Dot11AuthenticationTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "dot11/dot11_beacon.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "rsn_information.h"
|
||||
@@ -479,4 +479,4 @@ TEST_F(Dot11BeaconTest, RemoveOption) {
|
||||
EXPECT_EQ(old_buffer, new_buffer);
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "dot11/dot11_control.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11.h"
|
||||
@@ -94,4 +94,4 @@ TEST_F(Dot11BlockAckRequestTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_control.h"
|
||||
@@ -78,4 +78,4 @@ TEST_F(Dot11CFEndTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_control.h"
|
||||
@@ -78,4 +78,4 @@ TEST_F(Dot11EndCFAckTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_data.h"
|
||||
@@ -168,4 +168,4 @@ TEST_F(Dot11DataTest, Source_Dest_BSSID_Address3) {
|
||||
EXPECT_EQ(data.bssid_addr(), "00:18:f8:f5:c2:c6");
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "dot11/dot11_auth.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_mgmt.h"
|
||||
@@ -88,4 +88,4 @@ TEST_F(Dot11DeauthenticationTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "dot11/dot11_assoc.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_mgmt.h"
|
||||
@@ -89,4 +89,4 @@ TEST_F(Dot11DisassocTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11.h"
|
||||
@@ -165,4 +165,4 @@ TEST_F(Dot11Test, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "dot11/dot11_probe.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_mgmt.h"
|
||||
@@ -72,4 +72,4 @@ TEST_F(Dot11ProbeRequestTest, FromBytes) {
|
||||
test_equals_expected(*inner);
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "dot11/dot11_probe.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_mgmt.h"
|
||||
@@ -97,4 +97,4 @@ TEST_F(Dot11ProbeResponseTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_control.h"
|
||||
@@ -78,4 +78,4 @@ TEST_F(Dot11PSPollTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "dot11/dot11_assoc.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_mgmt.h"
|
||||
@@ -97,4 +97,4 @@ TEST_F(Dot11ReAssocRequestTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "dot11/dot11_assoc.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_mgmt.h"
|
||||
@@ -86,4 +86,4 @@ TEST_F(Dot11ReAssocResponseTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include "tests/dot11_control.h"
|
||||
@@ -78,4 +78,4 @@ TEST_F(Dot11RTSTest, Serialize) {
|
||||
EXPECT_TRUE(std::equal(buffer.begin(), buffer.end(), expected_packet));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#include "dot11/dot11_data.h"
|
||||
#include "dot11/dot11_beacon.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <vector>
|
||||
@@ -53,4 +53,4 @@ TEST_F(PPITest, ConstructorFromBufferUsingEncapsulatedDot11WithOptions) {
|
||||
EXPECT_TRUE(dot11->search_option(static_cast<Dot11::OptionTypes>(61)) != NULL);
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "radiotap.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <cstring>
|
||||
@@ -400,4 +400,4 @@ TEST_F(RadioTapTest, SerializationWorksFine) {
|
||||
);
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -19,9 +19,9 @@
|
||||
#include "packet.h"
|
||||
#include "utils.h"
|
||||
#include "config.h"
|
||||
#ifdef HAVE_ACK_TRACKER
|
||||
#ifdef TINS_HAVE_ACK_TRACKER
|
||||
#include "tcp_ip/ack_tracker.h"
|
||||
#endif // HAVE_ACK_TRACKER
|
||||
#endif // TINS_HAVE_ACK_TRACKER
|
||||
|
||||
using namespace std;
|
||||
using namespace std::chrono;
|
||||
@@ -513,7 +513,7 @@ TEST_F(FlowTest, StreamFollower_FollowStream) {
|
||||
}
|
||||
|
||||
|
||||
#ifdef HAVE_ACK_TRACKER
|
||||
#ifdef TINS_HAVE_ACK_TRACKER
|
||||
|
||||
using namespace boost;
|
||||
using namespace boost::icl;
|
||||
@@ -707,7 +707,7 @@ TEST_F(FlowTest, AckNumbersAreCorrect) {
|
||||
EXPECT_EQ(9898U, stream.server_flow().ack_tracker().ack_number());
|
||||
}
|
||||
|
||||
#endif // HAVE_ACK_TRACKER
|
||||
#endif // TINS_HAVE_ACK_TRACKER
|
||||
|
||||
#else
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#ifdef HAVE_DOT11
|
||||
#ifdef TINS_HAVE_DOT11
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <cstring>
|
||||
@@ -46,4 +46,4 @@ TEST_F(WEPDecryptTest, Decrypt1) {
|
||||
EXPECT_FALSE(decrypter.decrypt(dot11));
|
||||
}
|
||||
|
||||
#endif // HAVE_DOT11
|
||||
#endif // TINS_HAVE_DOT11
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#include "config.h"
|
||||
|
||||
#if defined(HAVE_DOT11) && defined(HAVE_WPA2_DECRYPTION)
|
||||
#if defined(TINS_HAVE_DOT11) && defined(TINS_HAVE_WPA2_DECRYPTION)
|
||||
|
||||
#include <gtest/gtest.h>
|
||||
#include <cstring>
|
||||
@@ -283,4 +283,4 @@ TEST_F(WPA2DecryptTest, DecryptCCMPAndTKIPWithoutUsingBeacon) {
|
||||
}
|
||||
}
|
||||
|
||||
#endif // defined(HAVE_DOT11) && defined(HAVE_WPA2_DECRYPTION)
|
||||
#endif // defined(TINS_HAVE_DOT11) && defined(TINS_HAVE_WPA2_DECRYPTION)
|
||||
|
||||
Reference in New Issue
Block a user