Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(160)

Side by Side Diff: mojo/public/cpp/system/tests/handle_unittest.cc

Issue 2104333003: Split mojo/public/cpp/system/tests/core_unittest.cc, part 2 (of 2, apparently). (Closed) Base URL: https://github.com/domokit/mojo.git@work794_wait_many_no_handles
Patch Set: Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698