summaryrefslogtreecommitdiffstats
path: root/webkit/fileapi/isolated_file_util_unittest.cc
diff options
context:
space:
mode:
authorcalvinlo@chromium.org <calvinlo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-07 13:05:37 +0000
committercalvinlo@chromium.org <calvinlo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-07 13:05:37 +0000
commit97cd41f02088ddef523ada998533a44d56b325a2 (patch)
tree98635dd56058ccc283576dbc8e7c3b8310bd6eee /webkit/fileapi/isolated_file_util_unittest.cc
parent261f8312a6c992f70381c864d489d787f958ec8f (diff)
downloadchromium_src-97cd41f02088ddef523ada998533a44d56b325a2.zip
chromium_src-97cd41f02088ddef523ada998533a44d56b325a2.tar.gz
chromium_src-97cd41f02088ddef523ada998533a44d56b325a2.tar.bz2
Update callers of CreateFileSystemOperation so more detailed error codes can be returned. Where applicable, convert net errors to base platform errors.
BUG=141617 TBR=tony@chromium.org Review URL: https://chromiumcodereview.appspot.com/10920087 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@155377 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/fileapi/isolated_file_util_unittest.cc')
-rw-r--r--webkit/fileapi/isolated_file_util_unittest.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/webkit/fileapi/isolated_file_util_unittest.cc b/webkit/fileapi/isolated_file_util_unittest.cc
index 03953c8..f6ddaad 100644
--- a/webkit/fileapi/isolated_file_util_unittest.cc
+++ b/webkit/fileapi/isolated_file_util_unittest.cc
@@ -304,7 +304,11 @@ TEST_F(IsolatedFileUtilTest, UnregisteredPathsTest) {
ASSERT_FALSE(url.is_valid());
// We should not be able to create a new operation for an invalid URL.
- ASSERT_EQ(NULL, file_system_context()->CreateFileSystemOperation(url));
+ base::PlatformFileError error_code;
+ FileSystemOperation* operation =
+ file_system_context()->CreateFileSystemOperation(url, &error_code);
+ ASSERT_EQ(NULL, operation);
+ ASSERT_EQ(base::PLATFORM_FILE_ERROR_INVALID_URL, error_code);
}
}