Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5455)

Unified Diff: chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js

Issue 318563002: [fsp] Introduce BufferingFileStreamReader to read files in bigger chunks. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed naming. Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js
diff --git a/chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js b/chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js
index 28401a7d73a6081425b811ff972aeda5b77669e6..78d67e45369108124a9b97e6703f0f0af2e5e1de 100644
--- a/chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js
+++ b/chrome/test/data/extensions/api_test/file_system_provider/big_file/test.js
@@ -145,10 +145,9 @@ function onReadFileRequested(options, onSuccess, onError) {
if (filePath == '/' + TESTING_6GB_FILE.name) {
if (options.offset < TESTING_TEXT_OFFSET ||
- options.offset + options.length >
- TESTING_TEXT_OFFSET + TESTING_TEXT.length) {
+ options.offset >= TESTING_TEXT_OFFSET + TESTING_TEXT.length) {
console.error('Reading from a wrong location in the file!');
- onError('INVALID_FAILED'); // enum ProviderError.
+ onError('FAILED'); // enum ProviderError.
return;
}

Powered by Google App Engine
This is Rietveld 408576698