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

Unified Diff: mojo/edk/system/remote_data_pipe_impl_unittest.cc

Issue 1946423002: EDK: Remove Core::AddDispatcher(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: mojo/edk/system/remote_data_pipe_impl_unittest.cc
diff --git a/mojo/edk/system/remote_data_pipe_impl_unittest.cc b/mojo/edk/system/remote_data_pipe_impl_unittest.cc
index ee1dd45113f3b0e8bbf2195164c06cb08e1da736..91f7160e1b9dbb32e2954ab9246ab6e2dade1c6a 100644
--- a/mojo/edk/system/remote_data_pipe_impl_unittest.cc
+++ b/mojo/edk/system/remote_data_pipe_impl_unittest.cc
@@ -177,9 +177,8 @@ TEST_F(RemoteDataPipeImplTest, SendConsumerWithClosedProducer) {
// This is the consumer dispatcher we'll send.
auto consumer = DataPipeConsumerDispatcher::Create();
consumer->Init(dp.Clone());
- Handle consumer_handle(std::move(consumer), MOJO_HANDLE_RIGHT_TRANSFER |
- MOJO_HANDLE_RIGHT_READ |
- MOJO_HANDLE_RIGHT_WRITE);
+ Handle consumer_handle(std::move(consumer),
+ DataPipeConsumerDispatcher::kDefaultHandleRights);
// Write to the producer and close it, before sending the consumer.
int32_t elements[10] = {123};
@@ -300,9 +299,8 @@ TEST_F(RemoteDataPipeImplTest, SendConsumerDuringTwoPhaseWrite) {
// This is the consumer dispatcher we'll send.
auto consumer = DataPipeConsumerDispatcher::Create();
consumer->Init(dp.Clone());
- Handle consumer_handle(std::move(consumer), MOJO_HANDLE_RIGHT_TRANSFER |
- MOJO_HANDLE_RIGHT_READ |
- MOJO_HANDLE_RIGHT_WRITE);
+ Handle consumer_handle(std::move(consumer),
+ DataPipeConsumerDispatcher::kDefaultHandleRights);
void* write_ptr = nullptr;
uint32_t num_bytes = 0u;
@@ -415,9 +413,8 @@ TEST_F(RemoteDataPipeImplTest, SendConsumerDuringSecondTwoPhaseWrite) {
// This is the consumer dispatcher we'll send.
auto consumer = DataPipeConsumerDispatcher::Create();
consumer->Init(dp.Clone());
- Handle consumer_handle(std::move(consumer), MOJO_HANDLE_RIGHT_TRANSFER |
- MOJO_HANDLE_RIGHT_READ |
- MOJO_HANDLE_RIGHT_WRITE);
+ Handle consumer_handle(std::move(consumer),
+ DataPipeConsumerDispatcher::kDefaultHandleRights);
void* write_ptr = nullptr;
uint32_t num_bytes = 0u;
« no previous file with comments | « mojo/edk/system/platform_handle_dispatcher_unittest.cc ('k') | mojo/edk/system/remote_message_pipe_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698