com.android.repository.testframework
Class FakeProgressRunner

java.lang.Object
  extended by com.android.repository.testframework.FakeProgressRunner
All Implemented Interfaces:
ProgressRunner

public class FakeProgressRunner
extends java.lang.Object
implements ProgressRunner

A basic ProgressRunner that uses a FakeProgressIndicator.


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.android.repository.api.ProgressRunner
ProgressRunner.ProgressRunnable
 
Constructor Summary
FakeProgressRunner()
           
 
Method Summary
 FakeProgressIndicator getProgressIndicator()
           
 void runAsyncWithProgress(ProgressRunner.ProgressRunnable r)
          Runs a task synchronously.
 void runSyncWithoutProgress(java.lang.Runnable r)
          Runs a ProgressRunner.ProgressRunnable synchronously.
 void runSyncWithProgress(ProgressRunner.ProgressRunnable r)
          Runs a task asynchronously.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FakeProgressRunner

public FakeProgressRunner()
Method Detail

runAsyncWithProgress

public void runAsyncWithProgress(@NonNull
                                 ProgressRunner.ProgressRunnable r)
Description copied from interface: ProgressRunner
Runs a task synchronously.

Specified by:
runAsyncWithProgress in interface ProgressRunner

runSyncWithProgress

public void runSyncWithProgress(@NonNull
                                ProgressRunner.ProgressRunnable r)
Description copied from interface: ProgressRunner
Runs a task asynchronously.

Specified by:
runSyncWithProgress in interface ProgressRunner

runSyncWithoutProgress

public void runSyncWithoutProgress(@NonNull
                                   java.lang.Runnable r)
Description copied from interface: ProgressRunner
Runs a ProgressRunner.ProgressRunnable synchronously. Useful if e.g. it must be run on a certain thread.

Specified by:
runSyncWithoutProgress in interface ProgressRunner

getProgressIndicator

public FakeProgressIndicator getProgressIndicator()