aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjruesga <jorge@ruesga.com>2012-10-02 00:40:06 +0200
committerjruesga <jorge@ruesga.com>2012-10-02 00:40:06 +0200
commitf59d49db099be5e5a36840553cb2172f38d61a40 (patch)
tree56f6b5dcdd740dea798454cde841d718fc3672ed /tests
parentbf8ccefeb9d6b8f6b00099c7ba5d04fcc75357d7 (diff)
downloadandroid_packages_apps_CMFileManager-f59d49db099be5e5a36840553cb2172f38d61a40.tar.gz
android_packages_apps_CMFileManager-f59d49db099be5e5a36840553cb2172f38d61a40.tar.bz2
android_packages_apps_CMFileManager-f59d49db099be5e5a36840553cb2172f38d61a40.zip
Shell improvements
* Change the shell console to better detect the cancel of a async program * Create start control command to clean buffer before start a new command * Add device specific buffer size * Improve ListCommand, using Java to get the parent folder. * Compute folder is disabled by default. * Correct some bugs when using root directory
Diffstat (limited to 'tests')
-rw-r--r--tests/src/com/cyanogenmod/explorer/commands/shell/AbstractConsoleTest.java2
-rw-r--r--tests/src/com/cyanogenmod/explorer/console/ConsoleBuilderTest.java5
2 files changed, 3 insertions, 4 deletions
diff --git a/tests/src/com/cyanogenmod/explorer/commands/shell/AbstractConsoleTest.java b/tests/src/com/cyanogenmod/explorer/commands/shell/AbstractConsoleTest.java
index c659de6b..723d8460 100644
--- a/tests/src/com/cyanogenmod/explorer/commands/shell/AbstractConsoleTest.java
+++ b/tests/src/com/cyanogenmod/explorer/commands/shell/AbstractConsoleTest.java
@@ -45,7 +45,7 @@ public abstract class AbstractConsoleTest extends android.test.AndroidTestCase {
if (isRootConsoleNeeded()) {
this.mConsole = ConsoleBuilder.createPrivilegedConsole(getContext(), INITIAL_DIR);
} else {
- this.mConsole = ConsoleBuilder.createNonPrivilegedConsole(INITIAL_DIR);
+ this.mConsole = ConsoleBuilder.createNonPrivilegedConsole(getContext(), INITIAL_DIR);
}
super.setUp();
diff --git a/tests/src/com/cyanogenmod/explorer/console/ConsoleBuilderTest.java b/tests/src/com/cyanogenmod/explorer/console/ConsoleBuilderTest.java
index 569854ac..dd9bcca9 100644
--- a/tests/src/com/cyanogenmod/explorer/console/ConsoleBuilderTest.java
+++ b/tests/src/com/cyanogenmod/explorer/console/ConsoleBuilderTest.java
@@ -65,11 +65,10 @@ public class ConsoleBuilderTest extends android.test.AndroidTestCase {
* Method that performs a test over creating a non privileged console.
*
* @throws Exception If test failed
- * @{link {@link ConsoleBuilder#createNonPrivilegedConsole(String)}
+ * @{link {@link ConsoleBuilder#createNonPrivilegedConsole(android.content.Context, String)}
*/
- @SuppressWarnings("static-method")
public void testCreateNonPrivilegedConsole() throws Exception {
- Console console = ConsoleBuilder.createNonPrivilegedConsole(PATH);
+ Console console = ConsoleBuilder.createNonPrivilegedConsole(getContext(), PATH);
try {
assertNotNull("console==null", console); //$NON-NLS-1$
} finally {