| 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 "nacl_io/kernel_handle.h" | 13 #include "nacl_io/kernel_handle.h" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 182 EXPECT_EQ(3, raw_handle->RefCount()); | 181 EXPECT_EQ(3, raw_handle->RefCount()); |
| 183 | 182 |
| 184 handle.reset(); | 183 handle.reset(); |
| 185 EXPECT_EQ(2, raw_handle->RefCount()); | 184 EXPECT_EQ(2, raw_handle->RefCount()); |
| 186 | 185 |
| 187 proxy->AcquireHandle(5, &handle); | 186 proxy->AcquireHandle(5, &handle); |
| 188 EXPECT_EQ(3, raw_handle->RefCount()); | 187 EXPECT_EQ(3, raw_handle->RefCount()); |
| 189 EXPECT_EQ(raw_handle, handle.get()); | 188 EXPECT_EQ(raw_handle, handle.get()); |
| 190 } | 189 } |
| 191 | 190 |
| OLD | NEW |