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

Unified Diff: media/mojo/services/media_apptest.cc

Issue 1635603002: Make use of CreateInterfacePtrAndBind() where appropriate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: tweaks Created 4 years, 11 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 | « mash/wm/window_manager_application.cc ('k') | media/mojo/services/mojo_cdm.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/media_apptest.cc
diff --git a/media/mojo/services/media_apptest.cc b/media/mojo/services/media_apptest.cc
index 6def35e82361675cf83f1f304b97520323d13c01..65d93640ccc3fc55d7627db0743d51e91bf7b096 100644
--- a/media/mojo/services/media_apptest.cc
+++ b/media/mojo/services/media_apptest.cc
@@ -101,14 +101,11 @@ class MediaAppTest : public mojo::test::ApplicationTestBase {
interfaces::DemuxerStreamPtr video_stream;
new MojoDemuxerStreamImpl(&video_demuxer_stream_, GetProxy(&video_stream));
- interfaces::RendererClientPtr client_ptr;
- renderer_client_binding_.Bind(GetProxy(&client_ptr));
-
EXPECT_CALL(*this, OnRendererInitialized(expected_result))
.Times(Exactly(1))
.WillOnce(InvokeWithoutArgs(run_loop_.get(), &base::RunLoop::Quit));
- renderer_->Initialize(std::move(client_ptr), nullptr,
- std::move(video_stream),
+ renderer_->Initialize(renderer_client_binding_.CreateInterfacePtrAndBind(),
+ nullptr, std::move(video_stream),
base::Bind(&MediaAppTest::OnRendererInitialized,
base::Unretained(this)));
}
« no previous file with comments | « mash/wm/window_manager_application.cc ('k') | media/mojo/services/mojo_cdm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698