diff options
| author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-17 23:59:39 +0000 |
|---|---|---|
| committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-02-17 23:59:39 +0000 |
| commit | 4deeb43f8b7c1b21d3545228db86de2c73c9fd43 (patch) | |
| tree | 9b44b6a5908d3948eb74d41f1dc69433c5a963d7 /ppapi/tests/test_file_ref.cc | |
| parent | c2a6aa323905a384677df735ccaa68ac700b1587 (diff) | |
| download | chromium_src-4deeb43f8b7c1b21d3545228db86de2c73c9fd43.zip chromium_src-4deeb43f8b7c1b21d3545228db86de2c73c9fd43.tar.gz chromium_src-4deeb43f8b7c1b21d3545228db86de2c73c9fd43.tar.bz2 | |
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
Diffstat (limited to 'ppapi/tests/test_file_ref.cc')
| -rw-r--r-- | ppapi/tests/test_file_ref.cc | 11 |
1 files changed, 6 insertions, 5 deletions
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(); |
