123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- #include <stdio.h>
- #include <stdlib.h>
- #include <unistd.h>
- #include <string.h>
- #include <stdint.h>
- #include <linux/if_ether.h>
- #include "Constants.h"
- #include "Logger.h"
- #include "linux/msm_ipa.h"
- #include "TestsUtils.h"
- #include "TestBase.h"
- #include "Pipe.h"
- #include "RoutingDriverWrapper.h"
- #include "HeaderInsertion.h"
- #include "Filtering.h"
- #include "IPAFilteringTable.h"
- #define MAX_PACKET_SIZE 1024
- class RNDISAggregationTestFixture:public TestBase
- {
- public:
-
- RNDISAggregationTestFixture();
-
- virtual bool Setup();
-
- virtual bool Teardown();
- virtual bool Run();
- virtual bool AddRules() = 0;
- virtual bool TestLogic() = 0;
- bool AddRulesNoAgg();
- bool AddRulesDeAggEther();
- bool AddRulesAggTimeLimit();
- bool AddRulesAggByteLimit();
- bool AddRulesAggByteLimit(bool bAggForceClose);
- bool AddRulesAggPacketLimit();
- bool AddRulesAggDualFC();
- bool AddRulesAggDualFcRoutingBased();
-
- static Pipe m_IpaToUsbPipeAgg;
-
- static Pipe m_UsbToIpaPipe;
-
- static Pipe m_IpaToUsbPipe;
-
- static Pipe m_UsbToIpaPipeDeagg;
-
- static Pipe m_IpaToUsbPipeAggTime;
-
- static Pipe m_IpaToUsbPipeAggPktLimit;
-
- static Pipe m_HsicToIpaPipe;
-
- static RoutingDriverWrapper m_Routing;
- static Filtering m_Filtering;
- static HeaderInsertion m_HeaderInsertion;
- protected:
- enum ipa_ip_type m_eIP;
- };
|