| 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 */ | |
| 5 | 4 |
| 6 #include <errno.h> | 5 #include <errno.h> |
| 7 #include <fcntl.h> | 6 #include <fcntl.h> |
| 8 #include <string.h> | 7 #include <string.h> |
| 9 #include <gmock/gmock.h> | 8 #include <gmock/gmock.h> |
| 10 #include <ppapi/c/ppb_file_io.h> | 9 #include <ppapi/c/ppb_file_io.h> |
| 11 #include <ppapi/c/pp_directory_entry.h> | 10 #include <ppapi/c/pp_directory_entry.h> |
| 12 #include <ppapi/c/pp_errors.h> | 11 #include <ppapi/c/pp_errors.h> |
| 13 #include <ppapi/c/pp_instance.h> | 12 #include <ppapi/c/pp_instance.h> |
| 14 #if defined(WIN32) | 13 #if defined(WIN32) |
| (...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 621 EXPECT_LT(0, dirents[0].d_ino); // 0 is an invalid inode number. | 620 EXPECT_LT(0, dirents[0].d_ino); // 0 is an invalid inode number. |
| 622 EXPECT_EQ(sizeof(dirent), dirents[0].d_off); | 621 EXPECT_EQ(sizeof(dirent), dirents[0].d_off); |
| 623 EXPECT_EQ(sizeof(dirent), dirents[0].d_reclen); | 622 EXPECT_EQ(sizeof(dirent), dirents[0].d_reclen); |
| 624 EXPECT_STREQ(fileref_name_cstr_1, dirents[0].d_name); | 623 EXPECT_STREQ(fileref_name_cstr_1, dirents[0].d_name); |
| 625 EXPECT_LT(0, dirents[1].d_ino); // 0 is an invalid inode number. | 624 EXPECT_LT(0, dirents[1].d_ino); // 0 is an invalid inode number. |
| 626 EXPECT_EQ(sizeof(dirent), dirents[1].d_off); | 625 EXPECT_EQ(sizeof(dirent), dirents[1].d_off); |
| 627 EXPECT_EQ(sizeof(dirent), dirents[1].d_reclen); | 626 EXPECT_EQ(sizeof(dirent), dirents[1].d_reclen); |
| 628 EXPECT_STREQ(fileref_name_cstr_2, dirents[1].d_name); | 627 EXPECT_STREQ(fileref_name_cstr_2, dirents[1].d_name); |
| 629 } | 628 } |
| 630 | 629 |
| OLD | NEW |