Remove ForTesting suffix on BindNewEndpointAndPassDedicated[Remote/Receiver]ForTesting
Remove *ForTesting* surffix to use BindNewEndpointAndPassDedicated[Remote/Receiver]ForTesting for the product code. Bug: 1085031 Change-Id: I50d23286da87c445abc5c9e3b78e1249702841e3 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2404281 Reviewed-by: Ken Rockot <rockot@google.com> Reviewed-by: Xiaohan Wang <xhwang@chromium.org> Reviewed-by: Ahmed Fakhry <afakhry@chromium.org> Reviewed-by: Marijn Kruisselbrink <mek@chromium.org> Reviewed-by: Daniel Murphy <dmurph@chromium.org> Reviewed-by: Kentaro Hara <haraken@chromium.org> Reviewed-by: Kinuko Yasuda <kinuko@chromium.org> Reviewed-by: Colin Blundell <blundell@chromium.org> Reviewed-by: Dave Tapuska <dtapuska@chromium.org> Commit-Queue: Gyuyoung Kim <gyuyoung@igalia.com> Cr-Commit-Position: refs/heads/master@{#806826}
This commit is contained in:
PRESUBMIT.py
ash/display
chromeos/components/cdm_factory_daemon
components
content_capture
plugins
renderer
printing
viz
service
compositor_frame_fuzzer
content
browser
bluetooth
renderer_host
mock_render_widget_host.ccrender_frame_host_impl.ccrender_frame_proxy_host.ccrender_widget_host_input_event_router_unittest.ccrender_widget_host_unittest.ccrender_widget_host_view_aura_unittest.ccrender_widget_host_view_child_frame_unittest.ccrender_widget_host_view_mac_unittest.mm
web_contents_receiver_set_browsertest.ccpublic
renderer
test
mojo/public/cpp/bindings
storage/browser/blob
third_party/blink
common
associated_interfaces
renderer
core
modules
cache_storage
indexeddb
media_controls
media_controls_orientation_lock_delegate_test.ccmedia_controls_rotate_to_fullscreen_delegate_test.cc
screen_orientation
platform
@ -1200,7 +1200,7 @@ _DEPRECATED_MOJO_TYPES = (
|
||||
(
|
||||
'mojo::MakeRequest is deprecated.',
|
||||
'Use mojo::AssociatedRemote::'
|
||||
'BindNewEndpointAndPassDedicatedReceiverForTesting() instead.',
|
||||
'BindNewEndpointAndPassDedicatedReceiver() instead.',
|
||||
),
|
||||
),
|
||||
(
|
||||
|
@ -230,8 +230,7 @@ TEST_F(CrosDisplayConfigTest, OnDisplayConfigChanged) {
|
||||
TestObserver observer;
|
||||
mojo::AssociatedRemote<mojom::CrosDisplayConfigObserver> observer_remote;
|
||||
mojo::AssociatedReceiver<mojom::CrosDisplayConfigObserver> receiver(
|
||||
&observer,
|
||||
observer_remote.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
&observer, observer_remote.BindNewEndpointAndPassDedicatedReceiver());
|
||||
cros_display_config()->AddObserver(observer_remote.Unbind());
|
||||
base::RunLoop().RunUntilIdle();
|
||||
|
||||
@ -751,8 +750,7 @@ TEST_F(CrosDisplayConfigTest, TabletModeAutoRotation) {
|
||||
TestObserver observer;
|
||||
mojo::AssociatedRemote<mojom::CrosDisplayConfigObserver> observer_remote;
|
||||
mojo::AssociatedReceiver<mojom::CrosDisplayConfigObserver> receiver(
|
||||
&observer,
|
||||
observer_remote.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
&observer, observer_remote.BindNewEndpointAndPassDedicatedReceiver());
|
||||
cros_display_config()->AddObserver(observer_remote.Unbind());
|
||||
base::RunLoop().RunUntilIdle();
|
||||
|
||||
|
@ -84,8 +84,7 @@ class CdmStorageAdapterTest : public testing::Test {
|
||||
});
|
||||
cdm_storage_adapter_ = std::make_unique<CdmStorageAdapter>(
|
||||
mock_frame_interface_factory_.get(),
|
||||
daemon_storage_mojo_
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
daemon_storage_mojo_.BindNewEndpointAndPassDedicatedReceiver());
|
||||
task_environment_.RunUntilIdle();
|
||||
}
|
||||
|
||||
|
@ -130,7 +130,7 @@ class ContentDecryptionModuleAdapterTest : public testing::Test {
|
||||
ContentDecryptionModuleAdapterTest() {
|
||||
mojo::AssociatedRemote<cdm::mojom::ContentDecryptionModule> daemon_cdm_mojo;
|
||||
mock_daemon_cdm_ = std::make_unique<MockDaemonCdm>(
|
||||
daemon_cdm_mojo.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
daemon_cdm_mojo.BindNewEndpointAndPassDedicatedReceiver());
|
||||
cdm_adapter_ = base::WrapRefCounted<ContentDecryptionModuleAdapter>(
|
||||
new ContentDecryptionModuleAdapter(
|
||||
nullptr /* storage */, std::move(daemon_cdm_mojo),
|
||||
|
@ -47,8 +47,7 @@ class FakeContentCaptureSender {
|
||||
|
||||
mojo::PendingAssociatedReceiver<mojom::ContentCaptureReceiver>
|
||||
GetPendingAssociatedReceiver() {
|
||||
return content_capture_receiver_
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
return content_capture_receiver_.BindNewEndpointAndPassDedicatedReceiver();
|
||||
}
|
||||
|
||||
private:
|
||||
|
@ -278,11 +278,8 @@ WebViewPlugin::WebViewHelper::WebViewHelper(WebViewPlugin* plugin,
|
||||
blink::mojom::FrameWidgetHostInterfaceBase>(),
|
||||
blink::CrossVariantMojoAssociatedReceiver<
|
||||
blink::mojom::FrameWidgetInterfaceBase>(),
|
||||
// TODO(dtapuska): https://crbug.com/1085031. Have the suffix ForTesting
|
||||
// removed.
|
||||
blink_widget_host_receiver_
|
||||
.BindNewEndpointAndPassDedicatedRemoteForTesting(),
|
||||
blink_widget_.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
blink_widget_host_receiver_.BindNewEndpointAndPassDedicatedRemote(),
|
||||
blink_widget_.BindNewEndpointAndPassDedicatedReceiver());
|
||||
|
||||
// The WebFrame created here was already attached to the Page as its main
|
||||
// frame, and the WebFrameWidget has been initialized, so we can call
|
||||
|
@ -167,7 +167,7 @@ class FakePrintPreviewUI : public mojom::PrintPreviewUI {
|
||||
~FakePrintPreviewUI() override = default;
|
||||
|
||||
mojo::PendingAssociatedRemote<mojom::PrintPreviewUI> BindReceiver() {
|
||||
return receiver_.BindNewEndpointAndPassDedicatedRemoteForTesting();
|
||||
return receiver_.BindNewEndpointAndPassDedicatedRemote();
|
||||
}
|
||||
void SetQuitClosure(base::OnceClosure quit_closure) {
|
||||
quit_closure_ = std::move(quit_closure);
|
||||
|
@ -100,15 +100,15 @@ FuzzerBrowserProcess::BuildRootCompositorFrameSinkParams() {
|
||||
params->gpu_compositing = false;
|
||||
params->compositor_frame_sink =
|
||||
root_compositor_frame_sink_remote_
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
.BindNewEndpointAndPassDedicatedReceiver();
|
||||
params->compositor_frame_sink_client =
|
||||
root_compositor_frame_sink_client_.BindInterfaceRemote();
|
||||
params->display_private =
|
||||
display_private_.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
display_private_.BindNewEndpointAndPassDedicatedReceiver();
|
||||
params->display_client = display_client_.BindRemote();
|
||||
params->external_begin_frame_controller =
|
||||
external_begin_frame_controller_remote_
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
.BindNewEndpointAndPassDedicatedReceiver();
|
||||
return params;
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ constexpr char kDeviceName1[] = "Device1";
|
||||
mojo::AssociatedRemote<blink::mojom::WebBluetoothServerClient>
|
||||
CreateServerClient() {
|
||||
mojo::AssociatedRemote<blink::mojom::WebBluetoothServerClient> client;
|
||||
ignore_result(client.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
ignore_result(client.BindNewEndpointAndPassDedicatedReceiver());
|
||||
return client;
|
||||
}
|
||||
|
||||
|
@ -44,7 +44,7 @@ MockRenderWidgetHost* MockRenderWidgetHost::Create(
|
||||
int32_t routing_id) {
|
||||
mojo::AssociatedRemote<blink::mojom::Widget> blink_widget;
|
||||
auto blink_widget_receiver =
|
||||
blink_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
blink_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
return new MockRenderWidgetHost(delegate, agent_scheduling_group, routing_id,
|
||||
blink_widget.Unbind());
|
||||
}
|
||||
@ -83,7 +83,7 @@ MockRenderWidgetHost::MockRenderWidgetHost(
|
||||
acked_touch_event_type_ = blink::WebInputEvent::Type::kUndefined;
|
||||
mojo::AssociatedRemote<blink::mojom::WidgetHost> blink_widget_host;
|
||||
BindWidgetInterfaces(
|
||||
blink_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting(),
|
||||
blink_widget_host.BindNewEndpointAndPassDedicatedReceiver(),
|
||||
std::move(pending_blink_widget));
|
||||
}
|
||||
|
||||
|
@ -1699,8 +1699,8 @@ RenderFrameHostImpl::GetRemoteAssociatedInterfaces() {
|
||||
} else {
|
||||
// The channel may not be initialized in some tests environments. In this
|
||||
// case we set up a dummy interface provider.
|
||||
ignore_result(remote_interfaces
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
ignore_result(
|
||||
remote_interfaces.BindNewEndpointAndPassDedicatedReceiver());
|
||||
}
|
||||
remote_associated_interfaces_ =
|
||||
std::make_unique<blink::AssociatedInterfaceProvider>(
|
||||
|
@ -312,8 +312,8 @@ RenderFrameProxyHost::GetRemoteAssociatedInterfaces() {
|
||||
} else {
|
||||
// The channel may not be initialized in some tests environments. In this
|
||||
// case we set up a dummy interface provider.
|
||||
ignore_result(remote_interfaces
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
ignore_result(
|
||||
remote_interfaces.BindNewEndpointAndPassDedicatedReceiver());
|
||||
}
|
||||
remote_associated_interfaces_ =
|
||||
std::make_unique<blink::AssociatedInterfaceProvider>(
|
||||
|
@ -238,17 +238,17 @@ class RenderWidgetHostInputEventRouterTest : public testing::Test {
|
||||
mojo::AssociatedRemote<blink::mojom::WidgetHost> blink_widget_host;
|
||||
mojo::AssociatedRemote<blink::mojom::Widget> blink_widget;
|
||||
auto blink_widget_receiver =
|
||||
blink_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
blink_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
widget_host_root_->BindWidgetInterfaces(
|
||||
blink_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting(),
|
||||
blink_widget_host.BindNewEndpointAndPassDedicatedReceiver(),
|
||||
blink_widget.Unbind());
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidgetHost> frame_widget_host;
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidget> frame_widget;
|
||||
auto frame_widget_receiver =
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
widget_host_root_->BindFrameWidgetInterfaces(
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting(),
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiver(),
|
||||
frame_widget.Unbind());
|
||||
|
||||
view_root_ =
|
||||
|
@ -605,15 +605,15 @@ class RenderWidgetHostTest : public testing::Test {
|
||||
void ReinitalizeHost() {
|
||||
mojo::AssociatedRemote<blink::mojom::WidgetHost> widget_host;
|
||||
host_->BindWidgetInterfaces(
|
||||
widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting(),
|
||||
widget_host.BindNewEndpointAndPassDedicatedReceiver(),
|
||||
widget_.GetNewRemote());
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidgetHost> frame_widget_host;
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidget> frame_widget;
|
||||
auto frame_widget_receiver =
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
host_->BindFrameWidgetInterfaces(
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting(),
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiver(),
|
||||
frame_widget.Unbind());
|
||||
|
||||
host_->Init();
|
||||
|
@ -432,7 +432,7 @@ class MockRenderWidgetHostImpl : public RenderWidgetHostImpl {
|
||||
lastWheelOrTouchEventLatencyInfo = ui::LatencyInfo();
|
||||
mojo::AssociatedRemote<blink::mojom::WidgetHost> blink_widget_host;
|
||||
BindWidgetInterfaces(
|
||||
blink_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting(),
|
||||
blink_widget_host.BindNewEndpointAndPassDedicatedReceiver(),
|
||||
widget_.GetNewRemote());
|
||||
}
|
||||
|
||||
@ -556,11 +556,10 @@ class RenderWidgetHostViewAuraTest : public testing::Test {
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidgetHost>
|
||||
parent_frame_widget_host;
|
||||
auto parent_frame_widget_host_receiver =
|
||||
parent_frame_widget_host
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
parent_frame_widget_host.BindNewEndpointAndPassDedicatedReceiver();
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidget> parent_frame_widget;
|
||||
auto parent_frame_widget_receiver =
|
||||
parent_frame_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
parent_frame_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
parent_host_->BindFrameWidgetInterfaces(
|
||||
std::move(parent_frame_widget_host_receiver),
|
||||
parent_frame_widget.Unbind());
|
||||
@ -575,10 +574,10 @@ class RenderWidgetHostViewAuraTest : public testing::Test {
|
||||
widget_host_ = static_cast<MockRenderWidgetHostImpl*>(view_->host());
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidgetHost> frame_widget_host;
|
||||
auto frame_widget_host_receiver =
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiver();
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidget> frame_widget;
|
||||
auto frame_widget_receiver =
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
widget_host_->BindFrameWidgetInterfaces(
|
||||
std::move(frame_widget_host_receiver), frame_widget.Unbind());
|
||||
// Set the mouse_wheel_phase_handler_ timer timeout to 100ms.
|
||||
@ -6132,11 +6131,10 @@ TEST_F(InputMethodResultAuraTest, ChangeTextDirectionAndLayoutAlignment) {
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidgetHost>
|
||||
blink_frame_widget_host;
|
||||
auto blink_frame_widget_host_receiver =
|
||||
blink_frame_widget_host
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
blink_frame_widget_host.BindNewEndpointAndPassDedicatedReceiver();
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidget> blink_frame_widget;
|
||||
auto blink_frame_widget_receiver =
|
||||
blink_frame_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
blink_frame_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
static_cast<RenderWidgetHostImpl*>(views_[index]->GetRenderWidgetHost())
|
||||
->BindFrameWidgetInterfaces(std::move(blink_frame_widget_host_receiver),
|
||||
|
@ -129,15 +129,15 @@ class RenderWidgetHostViewChildFrameTest : public testing::Test {
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::WidgetHost> blink_widget_host;
|
||||
widget_host_->BindWidgetInterfaces(
|
||||
blink_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting(),
|
||||
blink_widget_host.BindNewEndpointAndPassDedicatedReceiver(),
|
||||
widget_.GetNewRemote());
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidgetHost> frame_widget_host;
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidget> frame_widget;
|
||||
auto frame_widget_receiver =
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
widget_host_->BindFrameWidgetInterfaces(
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting(),
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiver(),
|
||||
frame_widget.Unbind());
|
||||
|
||||
blink::ScreenInfo screen_info;
|
||||
|
@ -366,10 +366,10 @@ class MockRenderWidgetHostImpl : public RenderWidgetHostImpl {
|
||||
std::make_unique<FrameTokenMessageQueue>()) {
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidgetHost> frame_widget_host;
|
||||
auto frame_widget_host_receiver =
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiver();
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidget> frame_widget;
|
||||
auto frame_widget_receiver =
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
BindFrameWidgetInterfaces(std::move(frame_widget_host_receiver),
|
||||
frame_widget.Unbind());
|
||||
|
||||
@ -500,10 +500,10 @@ class RenderWidgetHostViewMacTest : public RenderViewHostImplTestHarness {
|
||||
process_host_->GetNextRoutingID()));
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidgetHost> frame_widget_host;
|
||||
auto frame_widget_host_receiver =
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiver();
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidget> frame_widget;
|
||||
auto frame_widget_receiver =
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
host_->BindFrameWidgetInterfaces(std::move(frame_widget_host_receiver),
|
||||
frame_widget.Unbind());
|
||||
host_->set_owner_delegate(&mock_owner_delegate_);
|
||||
|
@ -97,7 +97,7 @@ IN_PROC_BROWSER_TEST_F(WebContentsReceiverSetBrowserTest, OverrideForTesting) {
|
||||
->OnAssociatedInterfaceRequest(
|
||||
web_contents->GetMainFrame(),
|
||||
mojom::BrowserAssociatedInterfaceTestDriver::Name_,
|
||||
override_client.BindNewEndpointAndPassDedicatedReceiverForTesting()
|
||||
override_client.BindNewEndpointAndPassDedicatedReceiver()
|
||||
.PassHandle());
|
||||
run_loop.Run();
|
||||
|
||||
@ -119,7 +119,7 @@ IN_PROC_BROWSER_TEST_F(WebContentsReceiverSetBrowserTest,
|
||||
->OnAssociatedInterfaceRequest(
|
||||
web_contents->GetMainFrame(),
|
||||
mojom::WebContentsFrameReceiverSetTest::Name_,
|
||||
override_client.BindNewEndpointAndPassDedicatedReceiverForTesting()
|
||||
override_client.BindNewEndpointAndPassDedicatedReceiver()
|
||||
.PassHandle());
|
||||
|
||||
base::RunLoop run_loop;
|
||||
|
@ -688,12 +688,11 @@ BindFakeFrameWidgetInterfaces(RenderFrameHost* frame) {
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidgetHost> blink_frame_widget_host;
|
||||
auto blink_frame_widget_host_receiver =
|
||||
blink_frame_widget_host
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
blink_frame_widget_host.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidget> blink_frame_widget;
|
||||
auto blink_frame_widget_receiver =
|
||||
blink_frame_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
blink_frame_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
render_widget_host_impl->BindFrameWidgetInterfaces(
|
||||
std::move(blink_frame_widget_host_receiver), blink_frame_widget.Unbind());
|
||||
|
@ -18,9 +18,8 @@ FakeRenderWidgetHost::BindNewFrameWidgetInterfaces() {
|
||||
frame_widget_host_receiver_.reset();
|
||||
frame_widget_remote_.reset();
|
||||
return std::make_pair(
|
||||
frame_widget_host_receiver_
|
||||
.BindNewEndpointAndPassDedicatedRemoteForTesting(),
|
||||
frame_widget_remote_.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
frame_widget_host_receiver_.BindNewEndpointAndPassDedicatedRemote(),
|
||||
frame_widget_remote_.BindNewEndpointAndPassDedicatedReceiver());
|
||||
}
|
||||
|
||||
std::pair<mojo::PendingAssociatedRemote<blink::mojom::WidgetHost>,
|
||||
@ -29,8 +28,8 @@ FakeRenderWidgetHost::BindNewWidgetInterfaces() {
|
||||
widget_host_receiver_.reset();
|
||||
widget_remote_.reset();
|
||||
return std::make_pair(
|
||||
widget_host_receiver_.BindNewEndpointAndPassDedicatedRemoteForTesting(),
|
||||
widget_remote_.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
widget_host_receiver_.BindNewEndpointAndPassDedicatedRemote(),
|
||||
widget_remote_.BindNewEndpointAndPassDedicatedReceiver());
|
||||
}
|
||||
|
||||
void FakeRenderWidgetHost::AnimateDoubleTapZoomInMainFrame(
|
||||
|
@ -412,8 +412,8 @@ mojom::Renderer* MockRenderProcessHost::GetRendererInterface() {
|
||||
if (!renderer_interface_) {
|
||||
renderer_interface_ =
|
||||
std::make_unique<mojo::AssociatedRemote<mojom::Renderer>>();
|
||||
ignore_result(renderer_interface_
|
||||
->BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
ignore_result(
|
||||
renderer_interface_->BindNewEndpointAndPassDedicatedReceiver());
|
||||
}
|
||||
return renderer_interface_->get();
|
||||
}
|
||||
|
@ -335,14 +335,12 @@ void MockRenderThread::OnCreateWindow(
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidget> blink_frame_widget;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::FrameWidget>
|
||||
blink_frame_widget_receiver =
|
||||
blink_frame_widget
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
blink_frame_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidgetHost> blink_frame_widget_host;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::FrameWidgetHost>
|
||||
blink_frame_widget_host_receiver =
|
||||
blink_frame_widget_host
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
blink_frame_widget_host.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
reply->frame_widget = std::move(blink_frame_widget_receiver);
|
||||
reply->frame_widget_host = blink_frame_widget_host.Unbind();
|
||||
|
@ -1262,14 +1262,12 @@ TEST_F(RenderViewImplEnableZoomForDSFTest,
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidget> blink_frame_widget;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::FrameWidget>
|
||||
blink_frame_widget_receiver =
|
||||
blink_frame_widget
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
blink_frame_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidgetHost> blink_frame_widget_host;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::FrameWidgetHost>
|
||||
blink_frame_widget_host_receiver =
|
||||
blink_frame_widget_host
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
blink_frame_widget_host.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
widget_params->frame_widget = std::move(blink_frame_widget_receiver);
|
||||
widget_params->frame_widget_host = blink_frame_widget_host.Unbind();
|
||||
|
@ -210,23 +210,21 @@ class RenderWidgetUnittest : public testing::Test {
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidget> frame_widget_remote;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::FrameWidget>
|
||||
frame_widget_receiver =
|
||||
frame_widget_remote
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidgetHost> frame_widget_host;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::FrameWidgetHost>
|
||||
frame_widget_host_receiver =
|
||||
frame_widget_host
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::Widget> widget_remote;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::Widget> widget_receiver =
|
||||
widget_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
widget_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::WidgetHost> widget_host;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::WidgetHost>
|
||||
widget_host_receiver =
|
||||
widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
widget_host.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
web_view_ = blink::WebView::Create(/*client=*/&web_view_client_,
|
||||
/*is_hidden=*/false,
|
||||
|
@ -332,8 +332,7 @@ TEST_F(ServiceWorkerProviderContextTest, SetController) {
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainerHost>
|
||||
host_remote;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::ServiceWorkerContainerHost>
|
||||
host_receiver =
|
||||
host_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
host_receiver = host_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
// (1) In the case there is no WebSWProviderClient but SWProviderContext for
|
||||
// the provider, the passed reference should be adopted and owned by the
|
||||
@ -341,7 +340,7 @@ TEST_F(ServiceWorkerProviderContextTest, SetController) {
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainer>
|
||||
container_remote;
|
||||
auto container_receiver =
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
auto provider_context = base::MakeRefCounted<ServiceWorkerProviderContext>(
|
||||
blink::mojom::ServiceWorkerContainerType::kForWindow,
|
||||
std::move(container_receiver), host_remote.Unbind(),
|
||||
@ -377,13 +376,12 @@ TEST_F(ServiceWorkerProviderContextTest, SetController) {
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainerHost>
|
||||
host_remote;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::ServiceWorkerContainerHost>
|
||||
host_receiver =
|
||||
host_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
host_receiver = host_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainer>
|
||||
container_remote;
|
||||
auto container_receiver =
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
auto provider_context = base::MakeRefCounted<ServiceWorkerProviderContext>(
|
||||
blink::mojom::ServiceWorkerContainerType::kForWindow,
|
||||
std::move(container_receiver), host_remote.Unbind(),
|
||||
@ -411,12 +409,11 @@ TEST_F(ServiceWorkerProviderContextTest, SetController) {
|
||||
TEST_F(ServiceWorkerProviderContextTest, SetController_Null) {
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainerHost> host_remote;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::ServiceWorkerContainerHost>
|
||||
host_receiver =
|
||||
host_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
host_receiver = host_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainer> container_remote;
|
||||
auto container_receiver =
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
auto provider_context = base::MakeRefCounted<ServiceWorkerProviderContext>(
|
||||
blink::mojom::ServiceWorkerContainerType::kForWindow,
|
||||
std::move(container_receiver), host_remote.Unbind(),
|
||||
@ -443,10 +440,10 @@ TEST_F(ServiceWorkerProviderContextTest, SetControllerServiceWorker) {
|
||||
// ServiceWorkerContainer request.
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainerHost> host_remote;
|
||||
FakeServiceWorkerContainerHost host(
|
||||
host_remote.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
host_remote.BindNewEndpointAndPassDedicatedReceiver());
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainer> container_remote;
|
||||
auto container_receiver =
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
// (1) Test if setting the controller via the CTOR works.
|
||||
|
||||
@ -659,7 +656,7 @@ TEST_F(ServiceWorkerProviderContextTest, ControllerWithoutFetchHandler) {
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainer> container_remote;
|
||||
auto container_receiver =
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
auto provider_context = base::MakeRefCounted<ServiceWorkerProviderContext>(
|
||||
blink::mojom::ServiceWorkerContainerType::kForWindow,
|
||||
std::move(container_receiver),
|
||||
@ -682,12 +679,11 @@ TEST_F(ServiceWorkerProviderContextTest, PostMessageToClient) {
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainerHost> host_remote;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::ServiceWorkerContainerHost>
|
||||
host_receiver =
|
||||
host_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
host_receiver = host_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainer> container_remote;
|
||||
auto container_receiver =
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
auto provider_context = base::MakeRefCounted<ServiceWorkerProviderContext>(
|
||||
blink::mojom::ServiceWorkerContainerType::kForWindow,
|
||||
std::move(container_receiver), host_remote.Unbind(),
|
||||
@ -711,12 +707,11 @@ TEST_F(ServiceWorkerProviderContextTest, PostMessageToClient) {
|
||||
TEST_F(ServiceWorkerProviderContextTest, CountFeature) {
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainerHost> host_remote;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::ServiceWorkerContainerHost>
|
||||
host_receiver =
|
||||
host_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
host_receiver = host_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainer> container_remote;
|
||||
auto container_receiver =
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
auto provider_context = base::MakeRefCounted<ServiceWorkerProviderContext>(
|
||||
blink::mojom::ServiceWorkerContainerType::kForWindow,
|
||||
std::move(container_receiver), host_remote.Unbind(),
|
||||
@ -764,11 +759,10 @@ TEST_F(ServiceWorkerProviderContextTest, OnNetworkProviderDestroyed) {
|
||||
// Make the container host and container pointers.
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainerHost> host_remote;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::ServiceWorkerContainerHost>
|
||||
host_receiver =
|
||||
host_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
host_receiver = host_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainer> container_remote;
|
||||
auto container_receiver =
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
// Make the provider context.
|
||||
auto provider_context = base::MakeRefCounted<ServiceWorkerProviderContext>(
|
||||
@ -813,11 +807,10 @@ TEST_F(ServiceWorkerProviderContextTest,
|
||||
// Make the container host and container pointers.
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainerHost> host_remote;
|
||||
mojo::PendingAssociatedReceiver<blink::mojom::ServiceWorkerContainerHost>
|
||||
host_receiver =
|
||||
host_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
host_receiver = host_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
mojo::AssociatedRemote<blink::mojom::ServiceWorkerContainer> container_remote;
|
||||
auto container_receiver =
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
container_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
// Make the ServiceWorkerProviderContext, passing it the controller,
|
||||
// container, and container host.
|
||||
|
@ -12,7 +12,7 @@ MockWidget::~MockWidget() = default;
|
||||
|
||||
mojo::PendingAssociatedRemote<blink::mojom::Widget> MockWidget::GetNewRemote() {
|
||||
blink_widget_.reset();
|
||||
return blink_widget_.BindNewEndpointAndPassDedicatedRemoteForTesting();
|
||||
return blink_widget_.BindNewEndpointAndPassDedicatedRemote();
|
||||
}
|
||||
|
||||
const std::vector<blink::VisualProperties>&
|
||||
|
@ -283,8 +283,7 @@ void TestRenderFrame::Navigate(network::mojom::URLResponseHeadPtr head,
|
||||
mojom::CommitNavigationParamsPtr commit_params) {
|
||||
mock_navigation_client_.reset();
|
||||
BindNavigationClient(
|
||||
mock_navigation_client_
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
mock_navigation_client_.BindNewEndpointAndPassDedicatedReceiver());
|
||||
std::unique_ptr<blink::PendingURLLoaderFactoryBundle> pending_factory_bundle =
|
||||
ChildPendingURLLoaderFactoryBundle::CreateFromDefaultFactoryImpl(
|
||||
std::make_unique<network::NotImplementedURLLoaderFactory>());
|
||||
@ -314,8 +313,7 @@ void TestRenderFrame::NavigateWithError(
|
||||
const base::Optional<std::string>& error_page_content) {
|
||||
mock_navigation_client_.reset();
|
||||
BindNavigationClient(
|
||||
mock_navigation_client_
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
mock_navigation_client_.BindNewEndpointAndPassDedicatedReceiver());
|
||||
std::unique_ptr<blink::PendingURLLoaderFactoryBundle> pending_factory_bundle =
|
||||
ChildPendingURLLoaderFactoryBundle::CreateFromDefaultFactoryImpl(
|
||||
std::make_unique<network::NotImplementedURLLoaderFactory>());
|
||||
|
@ -280,17 +280,17 @@ bool TestRenderViewHost::CreateRenderView(
|
||||
mojo::AssociatedRemote<blink::mojom::WidgetHost> blink_widget_host;
|
||||
mojo::AssociatedRemote<blink::mojom::Widget> blink_widget;
|
||||
auto blink_widget_receiver =
|
||||
blink_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
blink_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
GetWidget()->BindWidgetInterfaces(
|
||||
blink_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting(),
|
||||
blink_widget_host.BindNewEndpointAndPassDedicatedReceiver(),
|
||||
blink_widget.Unbind());
|
||||
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidgetHost> frame_widget_host;
|
||||
mojo::AssociatedRemote<blink::mojom::FrameWidget> frame_widget;
|
||||
auto frame_widget_receiver =
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
GetWidget()->BindFrameWidgetInterfaces(
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting(),
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiver(),
|
||||
frame_widget.Unbind());
|
||||
|
||||
main_frame->SetRenderFrameCreated(true);
|
||||
|
@ -33,9 +33,9 @@ TestRenderWidgetHost::TestRenderWidgetHost(
|
||||
mojo::AssociatedRemote<blink::mojom::WidgetHost> blink_widget_host;
|
||||
mojo::AssociatedRemote<blink::mojom::Widget> blink_widget;
|
||||
auto blink_widget_receiver =
|
||||
blink_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
blink_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
BindWidgetInterfaces(
|
||||
blink_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting(),
|
||||
blink_widget_host.BindNewEndpointAndPassDedicatedReceiver(),
|
||||
blink_widget.Unbind());
|
||||
}
|
||||
|
||||
|
@ -1159,7 +1159,7 @@ over one end of the primary interface, or over one end of another associated
|
||||
interface which itself already has a primary interface.
|
||||
|
||||
If you want to test an associated interface endpoint without first
|
||||
associating it, you can use `AssociatedRemote::BindNewEndpointAndPassDedicatedReceiverForTesting`.
|
||||
associating it, you can use `AssociatedRemote::BindNewEndpointAndPassDedicatedReceiver`.
|
||||
This will create working associated interface endpoints which are not actually
|
||||
associated with anything else.
|
||||
|
||||
|
@ -145,8 +145,8 @@ class AssociatedReceiver {
|
||||
//
|
||||
// For testing, where the returned request is bound to e.g. a mock and there
|
||||
// are no other interfaces involved.
|
||||
PendingAssociatedRemote<Interface>
|
||||
BindNewEndpointAndPassDedicatedRemoteForTesting() WARN_UNUSED_RESULT {
|
||||
PendingAssociatedRemote<Interface> BindNewEndpointAndPassDedicatedRemote()
|
||||
WARN_UNUSED_RESULT {
|
||||
DCHECK(!is_bound()) << "AssociatedReceiver is already bound";
|
||||
|
||||
MessagePipe pipe;
|
||||
|
@ -180,8 +180,8 @@ class AssociatedRemote {
|
||||
//
|
||||
// For testing, where the returned request is bound to e.g. a mock and there
|
||||
// are no other interfaces involved.
|
||||
PendingAssociatedReceiver<Interface>
|
||||
BindNewEndpointAndPassDedicatedReceiverForTesting() WARN_UNUSED_RESULT {
|
||||
PendingAssociatedReceiver<Interface> BindNewEndpointAndPassDedicatedReceiver()
|
||||
WARN_UNUSED_RESULT {
|
||||
MessagePipe pipe;
|
||||
scoped_refptr<internal::MultiplexRouter> router0 =
|
||||
new internal::MultiplexRouter(
|
||||
|
@ -416,8 +416,7 @@ TEST_P(BlobBuilderFromStreamTest, ProgressEvents) {
|
||||
mojo::AssociatedRemote<blink::mojom::ProgressClient> progress_client_remote;
|
||||
mojo::AssociatedReceiver<blink::mojom::ProgressClient> progress_receiver(
|
||||
&progress_client,
|
||||
progress_client_remote
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
progress_client_remote.BindNewEndpointAndPassDedicatedReceiver());
|
||||
|
||||
mojo::DataPipe pipe;
|
||||
base::RunLoop loop;
|
||||
|
@ -20,7 +20,7 @@ class AssociatedInterfaceProvider::LocalProvider
|
||||
explicit LocalProvider(
|
||||
scoped_refptr<base::SingleThreadTaskRunner> task_runner) {
|
||||
associated_interface_provider_receiver_.Bind(
|
||||
remote_.BindNewEndpointAndPassDedicatedReceiverForTesting(),
|
||||
remote_.BindNewEndpointAndPassDedicatedReceiver(),
|
||||
std::move(task_runner));
|
||||
}
|
||||
|
||||
|
@ -4115,8 +4115,7 @@ class FakeFrameWidgetHost : public mojom::blink::FrameWidgetHost {
|
||||
mojo::PendingAssociatedRemote<mojom::blink::FrameWidgetHost>
|
||||
BindNewFrameWidgetInterfaces() {
|
||||
frame_widget_host_receiver_.reset();
|
||||
return frame_widget_host_receiver_
|
||||
.BindNewEndpointAndPassDedicatedRemoteForTesting();
|
||||
return frame_widget_host_receiver_.BindNewEndpointAndPassDedicatedRemote();
|
||||
}
|
||||
|
||||
int GetAndResetHasTouchEventHandlerCallCount(bool state) {
|
||||
|
@ -77,7 +77,7 @@ class PublicURLManagerTest : public testing::Test {
|
||||
|
||||
HeapMojoAssociatedRemote<BlobURLStore> url_store_remote(execution_context_);
|
||||
url_store_receiver_.Bind(
|
||||
url_store_remote.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
url_store_remote.BindNewEndpointAndPassDedicatedReceiver());
|
||||
url_manager().SetURLStoreForTesting(std::move(url_store_remote));
|
||||
}
|
||||
|
||||
|
@ -257,17 +257,16 @@ WebLocalFrameImpl* CreateProvisional(WebRemoteFrame& old_frame,
|
||||
mojo::AssociatedRemote<mojom::blink::FrameWidget> frame_widget_remote;
|
||||
mojo::PendingAssociatedReceiver<mojom::blink::FrameWidget>
|
||||
frame_widget_receiver =
|
||||
frame_widget_remote
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<mojom::blink::FrameWidgetHost> frame_widget_host;
|
||||
mojo::PendingAssociatedReceiver<mojom::blink::FrameWidgetHost>
|
||||
frame_widget_host_receiver =
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<mojom::blink::Widget> widget_remote;
|
||||
mojo::PendingAssociatedReceiver<mojom::blink::Widget> widget_receiver =
|
||||
widget_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
widget_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
// Create a local root, if necessary.
|
||||
if (!frame->Parent()) {
|
||||
@ -346,17 +345,16 @@ WebLocalFrameImpl* CreateLocalChild(WebRemoteFrame& parent,
|
||||
mojo::AssociatedRemote<mojom::blink::FrameWidget> frame_widget_remote;
|
||||
mojo::PendingAssociatedReceiver<mojom::blink::FrameWidget>
|
||||
frame_widget_receiver =
|
||||
frame_widget_remote
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<mojom::blink::FrameWidgetHost> frame_widget_host;
|
||||
mojo::PendingAssociatedReceiver<mojom::blink::FrameWidgetHost>
|
||||
frame_widget_host_receiver =
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<mojom::blink::Widget> widget_remote;
|
||||
mojo::PendingAssociatedReceiver<mojom::blink::Widget> widget_receiver =
|
||||
widget_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
widget_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
WebFrameWidget* frame_widget = WebFrameWidget::CreateForChildLocalRoot(
|
||||
widget_client, frame, frame_widget_host.Unbind(),
|
||||
@ -434,16 +432,16 @@ WebViewImpl* WebViewHelper::InitializeWithOpener(
|
||||
mojo::AssociatedRemote<mojom::blink::FrameWidget> frame_widget;
|
||||
mojo::PendingAssociatedReceiver<mojom::blink::FrameWidget>
|
||||
frame_widget_receiver =
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<mojom::blink::FrameWidgetHost> frame_widget_host;
|
||||
mojo::PendingAssociatedReceiver<mojom::blink::FrameWidgetHost>
|
||||
frame_widget_host_receiver =
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
frame_widget_host.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::AssociatedRemote<mojom::blink::Widget> widget_remote;
|
||||
mojo::PendingAssociatedReceiver<mojom::blink::Widget> widget_receiver =
|
||||
widget_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
widget_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
// TODO(dcheng): The main frame widget currently has a special case.
|
||||
// Eliminate this once WebView is no longer a WebWidget.
|
||||
@ -760,7 +758,7 @@ ScreenInfo TestWebWidgetClient::GetInitialScreenInfo() {
|
||||
mojo::PendingAssociatedRemote<mojom::blink::WidgetHost>
|
||||
TestWebWidgetClient::BindNewWidgetHost() {
|
||||
receiver_.reset();
|
||||
return receiver_.BindNewEndpointAndPassDedicatedRemoteForTesting();
|
||||
return receiver_.BindNewEndpointAndPassDedicatedRemote();
|
||||
}
|
||||
|
||||
bool TestWebWidgetClient::HaveScrollEventHandlers() const {
|
||||
|
@ -267,8 +267,7 @@ class CacheStorageTest : public PageTestBase {
|
||||
cache_ = std::move(cache);
|
||||
receiver_ = std::make_unique<
|
||||
mojo::AssociatedReceiver<mojom::blink::CacheStorageCache>>(
|
||||
cache_.get(),
|
||||
cache_remote.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
cache_.get(), cache_remote.BindNewEndpointAndPassDedicatedReceiver());
|
||||
return MakeGarbageCollected<Cache>(
|
||||
fetcher, cache_remote.Unbind(),
|
||||
blink::scheduler::GetSingleThreadTaskRunnerForTesting());
|
||||
|
@ -412,7 +412,7 @@ TEST_F(IDBRequestTest, ConnectionsAfterStopping) {
|
||||
mojo::AssociatedRemote<mojom::blink::IDBDatabase> remote;
|
||||
std::unique_ptr<BackendDatabaseWithMockedClose> mock_database =
|
||||
std::make_unique<BackendDatabaseWithMockedClose>(
|
||||
remote.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
remote.BindNewEndpointAndPassDedicatedReceiver());
|
||||
EXPECT_CALL(*mock_database, Close()).Times(1);
|
||||
|
||||
auto transaction_backend = std::make_unique<MockWebIDBTransaction>(
|
||||
@ -435,7 +435,7 @@ TEST_F(IDBRequestTest, ConnectionsAfterStopping) {
|
||||
mojo::AssociatedRemote<mojom::blink::IDBDatabase> remote;
|
||||
std::unique_ptr<BackendDatabaseWithMockedClose> mock_database =
|
||||
std::make_unique<BackendDatabaseWithMockedClose>(
|
||||
remote.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
remote.BindNewEndpointAndPassDedicatedReceiver());
|
||||
EXPECT_CALL(*mock_database, Close()).Times(1);
|
||||
|
||||
auto transaction_backend = std::make_unique<MockWebIDBTransaction>(
|
||||
|
@ -115,7 +115,7 @@ class WebIDBCursorImplTest : public testing::Test {
|
||||
WebIDBCursorImplTest() : null_key_(IDBKey::CreateNone()) {
|
||||
mojo::AssociatedRemote<mojom::blink::IDBCursor> remote;
|
||||
mock_cursor_ = std::make_unique<MockCursorImpl>(
|
||||
remote.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
remote.BindNewEndpointAndPassDedicatedReceiver());
|
||||
cursor_ = std::make_unique<WebIDBCursorImpl>(
|
||||
remote.Unbind(), 1,
|
||||
blink::scheduler::GetSingleThreadTaskRunnerForTesting());
|
||||
|
2
third_party/blink/renderer/modules/media_controls/media_controls_orientation_lock_delegate_test.cc
vendored
2
third_party/blink/renderer/modules/media_controls/media_controls_orientation_lock_delegate_test.cc
vendored
@ -113,7 +113,7 @@ class MockChromeClientForOrientationLockDelegate final
|
||||
HeapMojoAssociatedRemote<device::mojom::blink::ScreenOrientation>
|
||||
screen_orientation(frame.DomWindow());
|
||||
ScreenOrientationClient().BindPendingReceiver(
|
||||
screen_orientation.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
screen_orientation.BindNewEndpointAndPassDedicatedReceiver());
|
||||
ScreenOrientationController::From(*frame.DomWindow())
|
||||
->SetScreenOrientationAssociatedRemoteForTests(
|
||||
std::move(screen_orientation));
|
||||
|
@ -56,8 +56,7 @@ class MockChromeClient : public EmptyChromeClient {
|
||||
EmptyChromeClient::InstallSupplements(frame);
|
||||
HeapMojoAssociatedRemote<device::mojom::blink::ScreenOrientation>
|
||||
screen_orientation(frame.DomWindow());
|
||||
ignore_result(
|
||||
screen_orientation.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
ignore_result(screen_orientation.BindNewEndpointAndPassDedicatedReceiver());
|
||||
ScreenOrientationController::From(*frame.DomWindow())
|
||||
->SetScreenOrientationAssociatedRemoteForTests(
|
||||
std::move(screen_orientation));
|
||||
|
3
third_party/blink/renderer/modules/screen_orientation/screen_orientation_controller_test.cc
vendored
3
third_party/blink/renderer/modules/screen_orientation/screen_orientation_controller_test.cc
vendored
@ -63,8 +63,7 @@ class ScreenOrientationControllerTest : public PageTestBase {
|
||||
PageTestBase::SetUp(IntSize());
|
||||
HeapMojoAssociatedRemote<device::mojom::blink::ScreenOrientation>
|
||||
screen_orientation(GetFrame().DomWindow());
|
||||
ignore_result(
|
||||
screen_orientation.BindNewEndpointAndPassDedicatedReceiverForTesting());
|
||||
ignore_result(screen_orientation.BindNewEndpointAndPassDedicatedReceiver());
|
||||
Controller()->SetScreenOrientationAssociatedRemoteForTests(
|
||||
std::move(screen_orientation));
|
||||
}
|
||||
|
@ -131,7 +131,7 @@ TEST_F(HeapMojoAssociatedReceiverSetGCWithContextObserverTest,
|
||||
auto& associated_receiver_set = owner()->associated_receiver_set();
|
||||
mojo::AssociatedRemote<sample::blink::Service> associated_remote;
|
||||
auto associated_receiver =
|
||||
associated_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
associated_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::ReceiverId rid = associated_receiver_set.Add(
|
||||
std::move(associated_receiver), task_runner());
|
||||
@ -148,7 +148,7 @@ TEST_F(HeapMojoAssociatedReceiverSetGCWithoutContextObserverTest,
|
||||
auto& associated_receiver_set = owner()->associated_receiver_set();
|
||||
mojo::AssociatedRemote<sample::blink::Service> associated_remote;
|
||||
auto associated_receiver =
|
||||
associated_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
associated_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::ReceiverId rid = associated_receiver_set.Add(
|
||||
std::move(associated_receiver), task_runner());
|
||||
@ -167,7 +167,7 @@ TEST_F(HeapMojoAssociatedReceiverSetGCWithContextObserverTest,
|
||||
|
||||
mojo::AssociatedRemote<sample::blink::Service> associated_remote;
|
||||
auto associated_receiver =
|
||||
associated_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
associated_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::ReceiverId rid = owner()->associated_receiver_set().Add(
|
||||
std::move(associated_receiver), task_runner());
|
||||
@ -188,7 +188,7 @@ TEST_F(HeapMojoAssociatedReceiverSetGCWithContextObserverTest,
|
||||
auto& associated_receiver_set = owner()->associated_receiver_set();
|
||||
mojo::AssociatedRemote<sample::blink::Service> associated_remote;
|
||||
auto associated_receiver =
|
||||
associated_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
associated_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::ReceiverId rid = associated_receiver_set.Add(
|
||||
std::move(associated_receiver), task_runner());
|
||||
@ -205,7 +205,7 @@ TEST_F(HeapMojoAssociatedReceiverSetGCWithoutContextObserverTest,
|
||||
auto& associated_receiver_set = owner()->associated_receiver_set();
|
||||
mojo::AssociatedRemote<sample::blink::Service> associated_remote;
|
||||
auto associated_receiver =
|
||||
associated_remote.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
associated_remote.BindNewEndpointAndPassDedicatedReceiver();
|
||||
|
||||
mojo::ReceiverId rid = associated_receiver_set.Add(
|
||||
std::move(associated_receiver), task_runner());
|
||||
|
@ -64,9 +64,9 @@ class HeapMojoAssociatedRemote {
|
||||
std::move(task_runner));
|
||||
}
|
||||
mojo::PendingAssociatedReceiver<Interface>
|
||||
BindNewEndpointAndPassDedicatedReceiverForTesting() WARN_UNUSED_RESULT {
|
||||
BindNewEndpointAndPassDedicatedReceiver() WARN_UNUSED_RESULT {
|
||||
return wrapper_->associated_remote()
|
||||
.BindNewEndpointAndPassDedicatedReceiverForTesting();
|
||||
.BindNewEndpointAndPassDedicatedReceiver();
|
||||
}
|
||||
void Bind(mojo::PendingAssociatedRemote<Interface> pending_associated_remote,
|
||||
scoped_refptr<base::SequencedTaskRunner> task_runner) {
|
||||
|
Reference in New Issue
Block a user