forked from mit-cml/appinventor-sources
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We store the backpack in a new “user file” named backpack.xml (the other user file supported is “android.keystore” for the user’s signing key). As an optimization we remove the backpack.xml file if we store “[]” in it (the empty backpack represented as an empty JSON string). Change-Id: I16fb747f31e59d30535f690c1b35c80bde53629f
- Loading branch information
Showing
10 changed files
with
119 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -211,25 +211,6 @@ public void testUploadBeforeAdd() throws BlocksTruncatedException { | |
} | ||
} | ||
|
||
public void testUploadUserFileBeforeAdd() { | ||
final String USER_ID = "900"; | ||
final String USER_EMAIL = "[email protected]"; | ||
storage.getUser(USER_ID, USER_EMAIL); | ||
try { | ||
storage.uploadUserFile(USER_ID, FILE_NAME1, "does not matter", | ||
StorageUtil.DEFAULT_CHARSET); | ||
fail("Allowed upload before add"); | ||
} catch (IllegalStateException ignored) { | ||
// File upload should be preceded by add | ||
} | ||
try { | ||
storage.uploadRawUserFile(USER_ID, FILE_NAME2, "does not matter".getBytes()); | ||
fail("Allowed upload before add"); | ||
} catch (IllegalStateException ignored) { | ||
// File upload should be preceded by add | ||
} | ||
} | ||
|
||
public void testMuliRoleFile() { | ||
final String USER_ID = "1000"; | ||
final String USER_EMAIL = "[email protected]"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters