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

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: Addressed comments. 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 85ad713aa89e76e0216072fd108f0dea59b8ea65..98ee057e8274f53f84ed179fc3b73b73edb9397f 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
@@ -104,10 +104,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;
}
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698