OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 | 4 |
5 // This file tests the C++ wrappers in mojo/public/cpp/system/handle.h. | 5 // This file tests the C++ wrappers in mojo/public/cpp/system/handle.h. |
6 | 6 |
7 #include "mojo/public/cpp/system/handle.h" | 7 #include "mojo/public/cpp/system/handle.h" |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <utility> | 10 #include <utility> |
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // |ScopedSharedBufferHandle|. | 164 // |ScopedSharedBufferHandle|. |
165 ScopedSharedBufferHandle buffer1; | 165 ScopedSharedBufferHandle buffer1; |
166 EXPECT_EQ(MOJO_RESULT_OK, CreateSharedBuffer(nullptr, 1024, &buffer1)); | 166 EXPECT_EQ(MOJO_RESULT_OK, CreateSharedBuffer(nullptr, 1024, &buffer1)); |
167 EXPECT_TRUE(buffer1.is_valid()); | 167 EXPECT_TRUE(buffer1.is_valid()); |
168 | 168 |
169 buffer1 = buffer1.Pass(); | 169 buffer1 = buffer1.Pass(); |
170 | 170 |
171 EXPECT_TRUE(buffer1.is_valid()); | 171 EXPECT_TRUE(buffer1.is_valid()); |
172 } | 172 } |
173 | 173 |
| 174 // TODO(vtl): Test |CloseRaw()|. |
| 175 // TODO(vtl): Test |reset()| more thoroughly? |
| 176 |
174 } // namespace mojo | 177 } // namespace mojo |
175 } // namespace | 178 } // namespace |
OLD | NEW |