summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-17 13:27:12 +0000
committerteravest@chromium.org <teravest@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-17 13:27:12 +0000
commit3901cbb959c76d8403d41af18b93f5f4612cda42 (patch)
treed6604dc06865f01e54f6a3b2fdd73160ee607685
parent604c3ebab678f96eef8fcddaced2fd6696413d88 (diff)
downloadchromium_src-3901cbb959c76d8403d41af18b93f5f4612cda42.zip
chromium_src-3901cbb959c76d8403d41af18b93f5f4612cda42.tar.gz
chromium_src-3901cbb959c76d8403d41af18b93f5f4612cda42.tar.bz2
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
-rw-r--r--ppapi/tests/test_file_io.cc2
1 files changed, 1 insertions, 1 deletions
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());