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

Unified Diff: ppapi/tests/test_file_ref.cc

Issue 6596026: Don't allow multiple opens for Pepper FileSystem. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 10 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 | « ppapi/proxy/ppb_file_system_proxy.cc ('k') | ppapi/tests/test_file_system.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_file_ref.cc
diff --git a/ppapi/tests/test_file_ref.cc b/ppapi/tests/test_file_ref.cc
index 4403646d20d1440fddd2434a0d5af4fc9820366e..1596333cbbb90ec4b8ce95e4199e846328cbcb3c 100644
--- a/ppapi/tests/test_file_ref.cc
+++ b/ppapi/tests/test_file_ref.cc
@@ -254,20 +254,6 @@ std::string TestFileRef::TestMakeDirectory() {
if (rv != PP_OK)
return ReportError("FileSystem::Open", rv);
- // Open aborted (see the DirectoryReader test for comments).
- callback.reset_run_count();
- rv = pp::FileSystem_Dev(instance_, PP_FILESYSTEMTYPE_LOCALTEMPORARY)
- .Open(1024, callback);
- if (callback.run_count() > 0)
- return "FileSystem::Open ran callback synchronously.";
- if (rv == PP_ERROR_WOULDBLOCK) {
- rv = callback.WaitForResult();
- if (rv != PP_ERROR_ABORTED)
- return "FileSystem::Open not aborted.";
- } else if (rv != PP_OK) {
- return ReportError("FileSystem::Open", rv);
- }
-
// MakeDirectory.
pp::FileRef_Dev dir_ref(file_system, "/test_dir_make_directory");
rv = dir_ref.MakeDirectory(callback);
« no previous file with comments | « ppapi/proxy/ppb_file_system_proxy.cc ('k') | ppapi/tests/test_file_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698