// Path: chronos/src/androidTest/java/com/redmadrobot/chronos/mock/operation/HeavyOperation.java
// public final class HeavyOperation extends ChronosOperation<BigObject> {
// 
//     private boolean hasOutOfMemory = false;
// 
//     @Contract(pure = true)
//     public final boolean gotOutOfMemory() {
//         return hasOutOfMemory;
//     }
// 
//     @Nullable
//     @Override
//     public BigObject run() {
//         sleep(TestSettings.OPERATION_WAIT);
//         BigObject result = null;
//         try {
//             result = new BigObject();
//         } catch (OutOfMemoryError error) {
//             hasOutOfMemory = true;
//         }
//         return result;
//     }
// 
//     @NonNull
//     @Override
//     public Class<? extends ChronosOperationResult<BigObject>> getResultClass() {
//         return HeavyOperationResult.class;
//     }
// }
// 
// Path: chronos/src/androidTest/java/com/redmadrobot/chronos/mock/operation/HeavyOperationResult.java
// public final class HeavyOperationResult extends ChronosOperationResult<BigObject> {
// 
// }


import com.redmadrobot.chronos.mock.operation.HeavyOperation;
import com.redmadrobot.chronos.mock.operation.HeavyOperationResult;
import org.jetbrains.annotations.Contract;
package com.redmadrobot.chronos.mock.gui;



/**
 * Mock activity that does memory-consuming operations.
 *
 * @author maximefimov
 */
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")
// Path: chronos/src/androidTest/java/com/redmadrobot/chronos/mock/operation/HeavyOperation.java
// public final class HeavyOperation extends ChronosOperation<BigObject> {
// 
//     private boolean hasOutOfMemory = false;
// 
//     @Contract(pure = true)
//     public final boolean gotOutOfMemory() {
//         return hasOutOfMemory;
//     }
// 
//     @Nullable
//     @Override
//     public BigObject run() {
//         sleep(TestSettings.OPERATION_WAIT);
//         BigObject result = null;
//         try {
//             result = new BigObject();
//         } catch (OutOfMemoryError error) {
//             hasOutOfMemory = true;
//         }
//         return result;
//     }
// 
//     @NonNull
//     @Override
//     public Class<? extends ChronosOperationResult<BigObject>> getResultClass() {
//         return HeavyOperationResult.class;
//     }
// }
// 
// Path: chronos/src/androidTest/java/com/redmadrobot/chronos/mock/operation/HeavyOperationResult.java
// public final class HeavyOperationResult extends ChronosOperationResult<BigObject> {
// 
// }


// Path: chronos/src/androidTest/java/com/redmadrobot/chronos/mock/gui/SampleHeavyActivity.java
import com.redmadrobot.chronos.mock.operation.HeavyOperation;
import com.redmadrobot.chronos.mock.operation.HeavyOperationResult;
import org.jetbrains.annotations.Contract;

package com.redmadrobot.chronos.mock.gui;



/**
 * Mock activity that does memory-consuming operations.
 *
 * @author maximefimov
 */
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) {