// Path: chronos/src/androidTest/java/com/redmadrobot/chronos/mock/gui/SampleHeavyActivity.java
// public final class SampleHeavyActivity extends MockActivity {
// 
//     private boolean isOutOfMemory = false;
// 
//     @Contract(pure = true)
//     public boolean isOutOfMemory() {
//         return isOutOfMemory;
//     }
// 
//     public final int run() {
//         return runOperation(new HeavyOperation());
//     }
// 
//     @SuppressWarnings("UnusedDeclaration")
//     public final void onOperationFinished(final HeavyOperationResult result) {
//         isOutOfMemory = ((HeavyOperation) result.getOperation()).gotOutOfMemory();
//     }
// }
// 
// Path: chronos/src/androidTest/java/com/redmadrobot/chronos/util/TimingUtils.java
// public static void sleep() {
//     try {
//         Thread.sleep(TestSettings.RESPONSE_WAIT);
//     } catch (InterruptedException e) {
//         //ignore it
//     }
// }


import com.redmadrobot.chronos.mock.gui.SampleHeavyActivity;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.MediumTest;
import android.test.suitebuilder.annotation.SmallTest;
import java.util.LinkedList;
import java.util.List;
import static com.redmadrobot.chronos.util.TimingUtils.sleep;
package com.redmadrobot.chronos;





/**
 * Test for proper memory management.
 *
 * @author maximefimov
 */
public class MemoryTest extends AndroidTestCase {

    @SmallTest
    public void testSingleResultFits() {
// Path: chronos/src/androidTest/java/com/redmadrobot/chronos/mock/gui/SampleHeavyActivity.java
// public final class SampleHeavyActivity extends MockActivity {
// 
//     private boolean isOutOfMemory = false;
// 
//     @Contract(pure = true)
//     public boolean isOutOfMemory() {
//         return isOutOfMemory;
//     }
// 
//     public final int run() {
//         return runOperation(new HeavyOperation());
//     }
// 
//     @SuppressWarnings("UnusedDeclaration")
//     public final void onOperationFinished(final HeavyOperationResult result) {
//         isOutOfMemory = ((HeavyOperation) result.getOperation()).gotOutOfMemory();
//     }
// }
// 
// Path: chronos/src/androidTest/java/com/redmadrobot/chronos/util/TimingUtils.java
// public static void sleep() {
//     try {
//         Thread.sleep(TestSettings.RESPONSE_WAIT);
//     } catch (InterruptedException e) {
//         //ignore it
//     }
// }


// Path: chronos/src/androidTest/java/com/redmadrobot/chronos/MemoryTest.java
import com.redmadrobot.chronos.mock.gui.SampleHeavyActivity;
import android.test.AndroidTestCase;
import android.test.suitebuilder.annotation.MediumTest;
import android.test.suitebuilder.annotation.SmallTest;
import java.util.LinkedList;
import java.util.List;
import static com.redmadrobot.chronos.util.TimingUtils.sleep;

package com.redmadrobot.chronos;





/**
 * Test for proper memory management.
 *
 * @author maximefimov
 */
public class MemoryTest extends AndroidTestCase {

    @SmallTest
    public void testSingleResultFits() {
        final SampleHeavyActivity activity = new SampleHeavyActivity();