| 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 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 | 498 |
| 500 int fd = ki_open("/dummy", O_RDONLY); | 499 int fd = ki_open("/dummy", O_RDONLY); |
| 501 EXPECT_NE(0, fd); | 500 EXPECT_NE(0, fd); |
| 502 | 501 |
| 503 char buf[20]; | 502 char buf[20]; |
| 504 EXPECT_EQ(-1, ki_read(fd, &buf[0], 20)); | 503 EXPECT_EQ(-1, ki_read(fd, &buf[0], 20)); |
| 505 // The Mount should be able to return whatever error it wants and have it | 504 // The Mount should be able to return whatever error it wants and have it |
| 506 // propagate through. | 505 // propagate through. |
| 507 EXPECT_EQ(1234, errno); | 506 EXPECT_EQ(1234, errno); |
| 508 } | 507 } |
| OLD | NEW |