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

Unified Diff: blimp/engine/renderer/blob_channel_sender_proxy_unittest.cc

Issue 2189503004: BlobChannelService is modified to be Mojo Service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into bcs Created 4 years, 4 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 | « blimp/engine/mojo/blob_channel_service.cc ('k') | blimp/engine/session/blimp_engine_session.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/renderer/blob_channel_sender_proxy_unittest.cc
diff --git a/blimp/engine/renderer/blob_channel_sender_proxy_unittest.cc b/blimp/engine/renderer/blob_channel_sender_proxy_unittest.cc
index 1420a207640680ce9445e84bbc20697ac3b33a5f..597a35ee9de7d438218aaa5a705f0becf3c74735 100644
--- a/blimp/engine/renderer/blob_channel_sender_proxy_unittest.cc
+++ b/blimp/engine/renderer/blob_channel_sender_proxy_unittest.cc
@@ -27,14 +27,16 @@ const char kBlobPayload[] = "bar";
class BlobChannelSenderProxyTest : public testing::Test {
public:
- BlobChannelSenderProxyTest() {}
+ BlobChannelSenderProxyTest()
+ : mojo_service_impl_(
+ base::MakeUnique<BlobChannelService>(&mock_sender_)) {}
void SetUp() override {
// Set up communication path from the Proxy to a sender mock:
// blob_channel_sender_proxy_ => (mojo) => mojo_service_impl_ =>
// mock_sender_;
mojom::BlobChannelPtr mojo_ptr;
- BlobChannelService::Create(&mock_sender_, GetProxy(&mojo_ptr));
+ mojo_service_impl_->BindRequest(GetProxy(&mojo_ptr));
blob_channel_sender_proxy_ =
BlobChannelSenderProxy::CreateForTest(std::move(mojo_ptr));
}
« no previous file with comments | « blimp/engine/mojo/blob_channel_service.cc ('k') | blimp/engine/session/blimp_engine_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698