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

Unified Diff: ppapi/tests/test_file_ref.cc

Issue 6519057: Implement proxying for FileRef and FileChooser.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Fix ppapi tests to account for query change 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/serialized_var.cc ('k') | webkit/plugins/ppapi/ppb_file_ref_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/tests/test_file_ref.cc
===================================================================
--- ppapi/tests/test_file_ref.cc (revision 75293)
+++ ppapi/tests/test_file_ref.cc (working copy)
@@ -380,7 +380,7 @@
// Query.
PP_FileInfo_Dev info;
- rv = file_ref.Query(&info, callback);
+ rv = file_io.Query(&info, callback);
if (rv == PP_ERROR_WOULDBLOCK)
rv = callback.WaitForResult();
if (rv != PP_OK)
@@ -397,15 +397,16 @@
// TODO(viettrungluu): this test causes a bunch of LOG(WARNING)s; investigate.
callback.reset_run_count();
// TODO(viettrungluu): check |info| for late writes.
- rv = pp::FileRef_Dev(file_system, "/file_touch").Query(&info, callback);
+ rv = pp::FileRef_Dev(file_system, "/file_touch").Touch(
+ last_access_time, last_modified_time, callback);
if (callback.run_count() > 0)
- return "FileSystem::Query ran callback synchronously.";
+ return "FileSystem::Touch ran callback synchronously.";
if (rv == PP_ERROR_WOULDBLOCK) {
rv = callback.WaitForResult();
if (rv != PP_ERROR_ABORTED)
- return "FileSystem::Query not aborted.";
+ return "FileSystem::Touch not aborted.";
} else if (rv != PP_OK) {
- return ReportError("FileSystem::Query", rv);
+ return ReportError("FileSystem::Touch", rv);
}
PASS();
« no previous file with comments | « ppapi/proxy/serialized_var.cc ('k') | webkit/plugins/ppapi/ppb_file_ref_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698