| 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 <pthread.h> | 7 #include <pthread.h> |
| 9 #include <sys/stat.h> | 8 #include <sys/stat.h> |
| 10 | 9 |
| 11 #include <map> | 10 #include <map> |
| 12 #include <string> | 11 #include <string> |
| 13 | 12 |
| 14 #include "gmock/gmock.h" | 13 #include "gmock/gmock.h" |
| (...skipping 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 | 501 |
| 503 int fd = ki_open("/dummy", O_RDONLY); | 502 int fd = ki_open("/dummy", O_RDONLY); |
| 504 EXPECT_NE(0, fd); | 503 EXPECT_NE(0, fd); |
| 505 | 504 |
| 506 char buf[20]; | 505 char buf[20]; |
| 507 EXPECT_EQ(-1, ki_read(fd, &buf[0], 20)); | 506 EXPECT_EQ(-1, ki_read(fd, &buf[0], 20)); |
| 508 // The Mount should be able to return whatever error it wants and have it | 507 // The Mount should be able to return whatever error it wants and have it |
| 509 // propagate through. | 508 // propagate through. |
| 510 EXPECT_EQ(1234, errno); | 509 EXPECT_EQ(1234, errno); |
| 511 } | 510 } |
| OLD | NEW |