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

Unified Diff: media/audio/audio_input_device_unittest.cc

Issue 2852803002: Remove base::SharedMemory::ShareToProcess. (Closed)
Patch Set: Compile error. Created 3 years, 8 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
« no previous file with comments | « gpu/ipc/service/gpu_channel_test_common.cc ('k') | media/audio/audio_output_device_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_input_device_unittest.cc
diff --git a/media/audio/audio_input_device_unittest.cc b/media/audio/audio_input_device_unittest.cc
index 28e9efce6c491e3821b5e87e372e2eaccbae1796..cad333150e2aaf02cef7dac523d26cf8d8fbf018 100644
--- a/media/audio/audio_input_device_unittest.cc
+++ b/media/audio/audio_input_device_unittest.cc
@@ -120,9 +120,9 @@ TEST(AudioInputDeviceTest, CreateStream) {
SyncSocket::TransitDescriptor audio_device_socket_descriptor;
ASSERT_TRUE(renderer_socket.PrepareTransitDescriptor(
base::GetCurrentProcessHandle(), &audio_device_socket_descriptor));
- base::SharedMemoryHandle duplicated_memory_handle;
- ASSERT_TRUE(shared_memory.ShareToProcess(base::GetCurrentProcessHandle(),
- &duplicated_memory_handle));
+ base::SharedMemoryHandle duplicated_memory_handle =
+ shared_memory.handle().Duplicate();
+ ASSERT_TRUE(duplicated_memory_handle.IsValid());
base::MessageLoopForIO io_loop;
MockCaptureCallback callback;
@@ -143,6 +143,7 @@ TEST(AudioInputDeviceTest, CreateStream) {
base::RunLoop().Run();
device->Stop();
base::RunLoop().RunUntilIdle();
+ duplicated_memory_handle.Close();
}
} // namespace media.
« no previous file with comments | « gpu/ipc/service/gpu_channel_test_common.cc ('k') | media/audio/audio_output_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698