From 3901cbb959c76d8403d41af18b93f5f4612cda42 Mon Sep 17 00:00:00 2001 From: "teravest@chromium.org" Date: Thu, 17 Oct 2013 13:27:12 +0000 Subject: Pepper: Fix SetLength permissions in FileIO test. The permissions passed to Open() are incorrect when testing abort behavior for SetLength(). I ran into this when moving FileIO to the browser, in which case sometimes SetLength() would actually get a chance to respond before being aborted. BUG=246396 Review URL: https://codereview.chromium.org/27449003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@229123 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/tests/test_file_io.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ppapi/tests/test_file_io.cc b/ppapi/tests/test_file_io.cc index 9b0bc27..21e5481 100644 --- a/ppapi/tests/test_file_io.cc +++ b/ppapi/tests/test_file_io.cc @@ -724,7 +724,7 @@ std::string TestFileIO::TestAbortCalls() { { { pp::FileIO file_io(instance_); - callback.WaitForResult(file_io.Open(file_ref, PP_FILEOPENFLAG_READ, + callback.WaitForResult(file_io.Open(file_ref, PP_FILEOPENFLAG_WRITE, callback.GetCallback())); CHECK_CALLBACK_BEHAVIOR(callback); ASSERT_EQ(PP_OK, callback.result()); -- cgit v1.1