| OLD | NEW |
| 1 // Copyright (c) 2011 The Native Client 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 "native_client/tests/ppapi_browser/ppb_file_io/common.h" | 5 #include "native_client/tests/ppapi_browser/ppb_file_io/common.h" |
| 6 | 6 |
| 7 #include <string.h> | 7 #include <string.h> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "native_client/src/shared/platform/nacl_check.h" | 10 #include "native_client/src/shared/platform/nacl_check.h" |
| 11 #include "native_client/src/third_party/ppapi/c/pp_errors.h" | 11 #include "native_client/src/third_party/ppapi/c/pp_errors.h" |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 TestCallbackData* callback_data = reinterpret_cast<TestCallbackData*>(data); | 174 TestCallbackData* callback_data = reinterpret_cast<TestCallbackData*>(data); |
| 175 int32_t pp_error = PPBFileIO()->Flush(callback_data->existing_file_io, | 175 int32_t pp_error = PPBFileIO()->Flush(callback_data->existing_file_io, |
| 176 MakeTestableCompletionCallback( | 176 MakeTestableCompletionCallback( |
| 177 "FlushFileForSetupCallback", | 177 "FlushFileForSetupCallback", |
| 178 FlushFileForSetupCallback, | 178 FlushFileForSetupCallback, |
| 179 callback_data)); | 179 callback_data)); |
| 180 EXPECT(pp_error == PP_OK_COMPLETIONPENDING); | 180 EXPECT(pp_error == PP_OK_COMPLETIONPENDING); |
| 181 } | 181 } |
| 182 | 182 |
| 183 } // namespace common | 183 } // namespace common |
| OLD | NEW |