ReadDirectory should return NOT_A_DIRECTORY error if the target is a file

BUG=54309
TEST=LocalFileSystemOperationTest.TestReadDirFailure,ObfuscatedFileUtilTest.TestReadDirectoryOnFile


Review URL: https://chromiumcodereview.appspot.com/11953011

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177921 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/webkit/fileapi/obfuscated_file_util_unittest.cc b/webkit/fileapi/obfuscated_file_util_unittest.cc
index 3f11572..3de146e 100644
--- a/webkit/fileapi/obfuscated_file_util_unittest.cc
+++ b/webkit/fileapi/obfuscated_file_util_unittest.cc
@@ -1085,7 +1085,7 @@
 
   context.reset(NewContext(NULL));
   std::vector<base::FileUtilProxy::Entry> entries;
-  EXPECT_EQ(base::PLATFORM_FILE_ERROR_NOT_FOUND,
+  EXPECT_EQ(base::PLATFORM_FILE_ERROR_NOT_A_DIRECTORY,
             FileUtilHelper::ReadDirectory(
                 context.get(), ofu(), url, &entries));