| 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 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 184 EXPECT_EQ(3, raw_handle->RefCount()); | 183 EXPECT_EQ(3, raw_handle->RefCount()); |
| 185 | 184 |
| 186 handle.reset(); | 185 handle.reset(); |
| 187 EXPECT_EQ(2, raw_handle->RefCount()); | 186 EXPECT_EQ(2, raw_handle->RefCount()); |
| 188 | 187 |
| 189 proxy->AcquireHandle(5, &handle); | 188 proxy->AcquireHandle(5, &handle); |
| 190 EXPECT_EQ(3, raw_handle->RefCount()); | 189 EXPECT_EQ(3, raw_handle->RefCount()); |
| 191 EXPECT_EQ(raw_handle, handle.get()); | 190 EXPECT_EQ(raw_handle, handle.get()); |
| 192 } | 191 } |
| 193 | 192 |
| OLD | NEW |