123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115 |
- #include <stdio.h>
- #include <stdlib.h>
- #include <unistd.h>
- #include <string.h>
- #include <stdint.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 NUM_PACKETS 5
- #define NUM_PACKETS_FC 4
- #define MAX_PACKET_SIZE 1024
- #define MAX_PACKETS_IN_MBIM_TESTS 10
- #define MAX_PACKETS_IN_NDP 8
- #define MAX_NDPS_IN_PACKET 8
- class MBIMAggregationTestFixtureConf11:public TestBase
- {
- public:
-
- MBIMAggregationTestFixtureConf11(bool generic_agg);
- virtual int SetupKernelModule();
-
- virtual bool Setup();
-
- virtual bool Teardown();
- virtual bool Run();
- virtual bool AddRules() = 0;
- virtual bool TestLogic() = 0;
- bool AddRules1HeaderAggregation();
- bool AddRules1HeaderAggregation(bool bAggForceClose);
- bool AddRulesDeaggregation();
- bool AddRules1HeaderAggregationTime();
- bool AddRules1HeaderAggregation0Limits();
- bool AddRulesAggDualFC(Pipe *input, Pipe *output1, Pipe *output2);
- bool AddRulesAggDualFcRoutingBased(Pipe *input, Pipe *output1, Pipe *output2);
-
- static Pipe m_IpaToUsbPipeAgg;
- static Pipe m_UsbToIpaPipe;
- static Pipe m_IpaToUsbPipe;
- static Pipe m_UsbToIpaPipeDeagg;
- static Pipe m_IpaToUsbPipeAggTime;
- static Pipe m_IpaToUsbPipeAgg0Limits;
- static RoutingDriverWrapper m_Routing;
- static Filtering m_Filtering;
- static HeaderInsertion m_HeaderInsertion;
- protected:
- enum ipa_ip_type m_eIP;
- bool mGenericAgg;
- };
|