From 4deeb43f8b7c1b21d3545228db86de2c73c9fd43 Mon Sep 17 00:00:00 2001 From: "brettw@chromium.org" Date: Thu, 17 Feb 2011 23:59:39 +0000 Subject: Implement proxying for FileRef and FileChooser. This also changes the FileRef interface to remove the Query function, since there is no close function, there's no way to cancel the current request, which makes memory management of the info structure very difficult. Review URL: http://codereview.chromium.org/6519057 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75331 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/tests/test_file_ref.cc | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ppapi/tests/test_file_ref.cc') diff --git a/ppapi/tests/test_file_ref.cc b/ppapi/tests/test_file_ref.cc index c336548..4403646 100644 --- a/ppapi/tests/test_file_ref.cc +++ b/ppapi/tests/test_file_ref.cc @@ -380,7 +380,7 @@ std::string TestFileRef::TestQueryAndTouchFile() { // 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 @@ std::string TestFileRef::TestQueryAndTouchFile() { // 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(); -- cgit v1.1