| OLD | NEW | 
|    1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |    1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 
|    2 // Use of this source code is governed by a BSD-style license that can be |    2 // Use of this source code is governed by a BSD-style license that can be | 
|    3 // found in the LICENSE file. |    3 // found in the LICENSE file. | 
|    4  |    4  | 
|    5 #include "ppapi/tests/test_file_io.h" |    5 #include "ppapi/tests/test_file_io.h" | 
|    6  |    6  | 
|    7 #include <stdio.h> |    7 #include <stdio.h> | 
|    8 #include <string.h> |    8 #include <string.h> | 
|    9  |    9  | 
|   10 #include "ppapi/c/pp_errors.h" |   10 #include "ppapi/c/pp_errors.h" | 
| (...skipping 466 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  477     }  // Destroy |file_io|. |  477     }  // Destroy |file_io|. | 
|  478     if (rv == PP_ERROR_WOULDBLOCK) { |  478     if (rv == PP_ERROR_WOULDBLOCK) { | 
|  479       rv = callback.WaitForResult(); |  479       rv = callback.WaitForResult(); | 
|  480       if (rv != PP_ERROR_ABORTED) |  480       if (rv != PP_ERROR_ABORTED) | 
|  481         return "FileIO::Flush not aborted."; |  481         return "FileIO::Flush not aborted."; | 
|  482     } else if (rv != PP_OK) { |  482     } else if (rv != PP_OK) { | 
|  483       return ReportError("FileIO::Flush", rv); |  483       return ReportError("FileIO::Flush", rv); | 
|  484     } |  484     } | 
|  485   } |  485   } | 
|  486  |  486  | 
|  487   // TODO(viettrungluu): Also test that Close() aborts callbacks. |  | 
|  488   // crbug.com/69457 |  | 
|  489  |  | 
|  490   PASS(); |  487   PASS(); | 
|  491 } |  488 } | 
|  492  |  | 
|  493 // TODO(viettrungluu): Test Close(). crbug.com/69457 |  | 
| OLD | NEW |