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; |