OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <errno.h> | 7 #include <errno.h> |
8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <stddef.h> |
9 #include <stdio.h> | 10 #include <stdio.h> |
10 #include <string.h> | 11 #include <string.h> |
11 #include <sys/stat.h> | 12 #include <sys/stat.h> |
12 #include <sys/types.h> | 13 #include <sys/types.h> |
13 | 14 |
14 #include <algorithm> | 15 #include <algorithm> |
15 #include <vector> | 16 #include <vector> |
16 | 17 |
17 #include "ppapi/c/pp_errors.h" | 18 #include "ppapi/c/pp_errors.h" |
18 #include "ppapi/c/ppb_file_io.h" | 19 #include "ppapi/c/ppb_file_io.h" |
(...skipping 1341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1360 if ((invalid_combination && callback.result() == PP_OK) || | 1361 if ((invalid_combination && callback.result() == PP_OK) || |
1361 (!invalid_combination && | 1362 (!invalid_combination && |
1362 ((callback.result() == PP_OK) != create_if_doesnt_exist))) { | 1363 ((callback.result() == PP_OK) != create_if_doesnt_exist))) { |
1363 return ReportOpenError(open_flags); | 1364 return ReportOpenError(open_flags); |
1364 } | 1365 } |
1365 | 1366 |
1366 return std::string(); | 1367 return std::string(); |
1367 } | 1368 } |
1368 | 1369 |
1369 // TODO(viettrungluu): Test Close(). crbug.com/69457 | 1370 // TODO(viettrungluu): Test Close(). crbug.com/69457 |
OLD | NEW |