| 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 | 7 |
| 9 #include "nacl_io/error.h" | 8 #include "nacl_io/error.h" |
| 10 #include "nacl_io/ioctl.h" | 9 #include "nacl_io/ioctl.h" |
| 11 #include "nacl_io/kernel_proxy.h" | 10 #include "nacl_io/kernel_proxy.h" |
| 12 #include "nacl_io/mount_dev.h" | 11 #include "nacl_io/mount_dev.h" |
| 13 #include "nacl_io/mount_node.h" | 12 #include "nacl_io/mount_node.h" |
| 14 #include "nacl_io/mount_node_dir.h" | 13 #include "nacl_io/mount_node_dir.h" |
| (...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 EXPECT_EQ(1, file->GetLinks()); | 188 EXPECT_EQ(1, file->GetLinks()); |
| 190 EXPECT_EQ(2, file->RefCount()); | 189 EXPECT_EQ(2, file->RefCount()); |
| 191 EXPECT_EQ(0, root->RemoveChild("F2")); | 190 EXPECT_EQ(0, root->RemoveChild("F2")); |
| 192 EXPECT_EQ(0, file->GetLinks()); | 191 EXPECT_EQ(0, file->GetLinks()); |
| 193 EXPECT_EQ(1, file->RefCount()); | 192 EXPECT_EQ(1, file->RefCount()); |
| 194 EXPECT_EQ(2, s_AllocNum); | 193 EXPECT_EQ(2, s_AllocNum); |
| 195 | 194 |
| 196 file.reset(); | 195 file.reset(); |
| 197 EXPECT_EQ(1, s_AllocNum); | 196 EXPECT_EQ(1, s_AllocNum); |
| 198 } | 197 } |
| OLD | NEW |