| 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 6464564397e054ba363b17e069f6a9450bb07f58..23b464fdc1e01d6e23398078acaac5ef03653288 100644
|
| --- a/mojo/edk/system/remote_data_pipe_impl_unittest.cc
|
| +++ b/mojo/edk/system/remote_data_pipe_impl_unittest.cc
|
| @@ -291,11 +291,11 @@ TEST_F(RemoteDataPipeImplTest, SendConsumerDuringTwoPhaseWrite) {
|
| DataPipeConsumerDispatcher::Create();
|
| consumer->Init(dp);
|
|
|
| - uint32_t num_bytes = static_cast<uint32_t>(10u * sizeof(int32_t));
|
| void* write_ptr = nullptr;
|
| + uint32_t num_bytes = 0u;
|
| EXPECT_EQ(MOJO_RESULT_OK,
|
| dp->ProducerBeginWriteData(MakeUserPointer(&write_ptr),
|
| - MakeUserPointer(&num_bytes), false));
|
| + MakeUserPointer(&num_bytes)));
|
| ASSERT_GE(num_bytes, 1u * sizeof(int32_t));
|
|
|
| // Write the consumer to MP 0 (port 0). Wait and receive on MP 1 (port 0).
|
| @@ -401,21 +401,21 @@ TEST_F(RemoteDataPipeImplTest, SendConsumerDuringSecondTwoPhaseWrite) {
|
| DataPipeConsumerDispatcher::Create();
|
| consumer->Init(dp);
|
|
|
| - uint32_t num_bytes = static_cast<uint32_t>(10u * sizeof(int32_t));
|
| void* write_ptr = nullptr;
|
| + uint32_t num_bytes = 0u;
|
| EXPECT_EQ(MOJO_RESULT_OK,
|
| dp->ProducerBeginWriteData(MakeUserPointer(&write_ptr),
|
| - MakeUserPointer(&num_bytes), false));
|
| + MakeUserPointer(&num_bytes)));
|
| ASSERT_GE(num_bytes, 1u * sizeof(int32_t));
|
| *static_cast<int32_t*>(write_ptr) = 123456;
|
| EXPECT_EQ(MOJO_RESULT_OK, dp->ProducerEndWriteData(
|
| static_cast<uint32_t>(1u * sizeof(int32_t))));
|
|
|
| - num_bytes = static_cast<uint32_t>(10u * sizeof(int32_t));
|
| write_ptr = nullptr;
|
| + num_bytes = 0u;
|
| EXPECT_EQ(MOJO_RESULT_OK,
|
| dp->ProducerBeginWriteData(MakeUserPointer(&write_ptr),
|
| - MakeUserPointer(&num_bytes), false));
|
| + MakeUserPointer(&num_bytes)));
|
| ASSERT_GE(num_bytes, 1u * sizeof(int32_t));
|
|
|
| // Write the consumer to MP 0 (port 0). Wait and receive on MP 1 (port 0).
|
|
|