| Index: ppapi/tests/test_file_io.cc
|
| diff --git a/ppapi/tests/test_file_io.cc b/ppapi/tests/test_file_io.cc
|
| index 79995ff083edaae91e48ccd150a7b90523039713..788212b7277c8dead2fbc3c157d68aac3b0680f8 100644
|
| --- a/ppapi/tests/test_file_io.cc
|
| +++ b/ppapi/tests/test_file_io.cc
|
| @@ -941,10 +941,14 @@ std::string TestFileIO::TestWillWriteWillSetLength() {
|
| if (!trusted)
|
| return ReportError("FileIOTrusted", PP_ERROR_FAILED);
|
|
|
| - // Get file descriptor.
|
| - int32_t fd = trusted->GetOSFileDescriptor(file_io.pp_resource());
|
| - if (fd < 0)
|
| - return "FileIO::GetOSFileDescriptor() returned a bad file descriptor.";
|
| + // Get file descriptor. This is only supported in-process for now, so don't
|
| + // test out of process.
|
| + const PPB_Testing_Dev* testing_interface = GetTestingInterface();
|
| + if (testing_interface && !testing_interface->IsOutOfProcess()) {
|
| + int32_t fd = trusted->GetOSFileDescriptor(file_io.pp_resource());
|
| + if (fd < 0)
|
| + return "FileIO::GetOSFileDescriptor() returned a bad file descriptor.";
|
| + }
|
|
|
| // Calling WillWrite.
|
| rv = trusted->WillWrite(
|
|
|