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

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

Issue 1230313010: media: Add ServiceFactory mojo interface and implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase only Created 5 years, 5 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 | « media/mojo/services/BUILD.gn ('k') | media/mojo/services/mojo_cdm_factory.h » ('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 805ce955a79ff93872e74e6108f26c64eba8684a..34f855d03d52b93a5cadb0538eaaee6b3f95151c 100644
--- a/media/mojo/services/media_apptest.cc
+++ b/media/mojo/services/media_apptest.cc
@@ -13,6 +13,7 @@
#include "media/cdm/key_system_names.h"
#include "media/mojo/interfaces/content_decryption_module.mojom.h"
#include "media/mojo/interfaces/media_renderer.mojom.h"
+#include "media/mojo/interfaces/service_factory.mojom.h"
#include "media/mojo/services/media_type_converters.h"
#include "media/mojo/services/mojo_demuxer_stream_impl.h"
#include "mojo/application/public/cpp/application_connection.h"
@@ -61,8 +62,9 @@ class MediaAppTest : public mojo::test::ApplicationTestBase {
mojo::ApplicationConnection* connection =
application_impl()->ConnectToApplication(request.Pass());
- connection->ConnectToService(&cdm_);
- connection->ConnectToService(&media_renderer_);
+ connection->ConnectToService(&service_factory_);
+ service_factory_->CreateCdm(mojo::GetProxy(&cdm_));
+ service_factory_->CreateRenderer(mojo::GetProxy(&media_renderer_));
run_loop_.reset(new base::RunLoop());
}
@@ -106,6 +108,7 @@ class MediaAppTest : public mojo::test::ApplicationTestBase {
protected:
scoped_ptr<base::RunLoop> run_loop_;
+ interfaces::ServiceFactoryPtr service_factory_;
interfaces::ContentDecryptionModulePtr cdm_;
interfaces::MediaRendererPtr media_renderer_;
« no previous file with comments | « media/mojo/services/BUILD.gn ('k') | media/mojo/services/mojo_cdm_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698