Commit fb422cb8 authored by Julie Jeongeun Kim's avatar Julie Jeongeun Kim Committed by Commit Bot

Clean up old Mojo types for mojom::RendererAudioOutputStreamFactory

This CL cleans up old Mojo types for
mojom::RendererAudioOutputStreamFactory with replacing
InterfaceRequest with PendingReceiver.

Bug: 955171
Change-Id: I51c557d3187f5f264ed0d69116ce5239763bfabd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1880228Reviewed-by: default avatarOlga Sharonova <olka@chromium.org>
Reviewed-by: default avatarOksana Zhuravlova <oksamyt@chromium.org>
Commit-Queue: Julie Kim <jkim@igalia.com>
Cr-Commit-Position: refs/heads/master@{#709721}
parent 311c90e5
......@@ -14,7 +14,6 @@
#include "base/test/task_environment.h"
#include "base/threading/thread.h"
#include "media/audio/audio_output_ipc.h"
#include "mojo/public/cpp/bindings/interface_request.h"
#include "mojo/public/cpp/bindings/pending_receiver.h"
#include "mojo/public/cpp/bindings/receiver.h"
#include "mojo/public/cpp/system/message_pipe.h"
......@@ -62,7 +61,7 @@ class FakeRemoteFactory : public mojom::RendererAudioOutputStreamFactory {
void Bind(mojo::ScopedMessagePipeHandle handle) {
EXPECT_FALSE(receiver_.is_bound());
receiver_.Bind(
mojo::InterfaceRequest<mojom::RendererAudioOutputStreamFactory>(
mojo::PendingReceiver<mojom::RendererAudioOutputStreamFactory>(
std::move(handle)));
}
......@@ -103,7 +102,7 @@ class AudioOutputIPCFactoryTest : public testing::Test {
TEST_F(AudioOutputIPCFactoryTest, CallFactoryFromIOThread) {
// This test makes sure that AudioOutputIPCFactory correctly binds the
// RendererAudioOutputStreamFactoryPtr to the IO thread.
// RendererAudioOutputStreamFactory to the IO thread.
base::test::SingleThreadTaskEnvironment task_environment;
base::RunLoop run_loop;
auto io_thread = MakeIOThread();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment