123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- #include <stdio.h>
- #include <stdlib.h>
- #include <unistd.h>
- #include <string.h>
- #include <stdint.h>
- #include "IPAInterruptsTestFixture.h"
- #include "Constants.h"
- #include "TestsUtils.h"
- #include "linux/msm_ipa.h"
- class SuspendTestDeferred: public IPAInterruptsTestFixture {
- public:
- SuspendTestDeferred() {
- m_name = "SuspendTestDeferred";
- m_description = "This test will send data on a suspended pipe(Deferred context) ";
- Register(*this);
- }
- bool Setup()
- {
- bool bRetVal = true;
-
- ConfigureScenario(IPA_TEST_CONFIGURATION_19);
- RegSuspendHandler(true,true,0);
-
- bRetVal &= m_IpaToUsbPipe.Init();
- bRetVal &= m_UsbToIpaPipe.Init();
- return bRetVal;
- }
- };
- class SuspendTest: public IPAInterruptsTestFixture {
- public:
- SuspendTest() {
- m_name = "SuspendTest";
- m_description = "This test will send data on a suspended pipe";
- Register(*this);
- }
- bool Setup()
- {
- bool bRetVal = true;
-
- ConfigureScenario(IPA_TEST_CONFIGURATION_19);
- RegSuspendHandler(false,true,0);
-
- bRetVal &= m_IpaToUsbPipe.Init();
- bRetVal &= m_UsbToIpaPipe.Init();
- return bRetVal;
- }
- };
- static SuspendTest suspendTest;
- static SuspendTestDeferred suspendTestDeferred;
|