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

Unified Diff: cc/test/remote_proto_channel_bridge.cc

Issue 2320823003: cc/blimp: Remove Initialize and Close messages. (Closed)
Patch Set: format Created 4 years, 3 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 | « cc/test/remote_proto_channel_bridge.h ('k') | cc/test/test_hooks.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/remote_proto_channel_bridge.cc
diff --git a/cc/test/remote_proto_channel_bridge.cc b/cc/test/remote_proto_channel_bridge.cc
index 6d9002c9a91c38dc046a51e07d8d53f1a9d62f0c..60011e8ebc9141c08ebb7c2045e172a7515db1ef 100644
--- a/cc/test/remote_proto_channel_bridge.cc
+++ b/cc/test/remote_proto_channel_bridge.cc
@@ -35,9 +35,8 @@ bool FakeRemoteProtoChannel::HasReceiver() const {
}
FakeRemoteProtoChannelMain::FakeRemoteProtoChannelMain(
- RemoteProtoChannelBridge* bridge,
- TestHooks* test_hooks)
- : FakeRemoteProtoChannel(bridge), test_hooks_(test_hooks) {}
+ RemoteProtoChannelBridge* bridge)
+ : FakeRemoteProtoChannel(bridge) {}
void FakeRemoteProtoChannelMain::SendCompositorProto(
const proto::CompositorMessage& proto) {
@@ -49,12 +48,6 @@ void FakeRemoteProtoChannelMain::SendCompositorProto(
switch (to_impl_proto.message_type()) {
case proto::CompositorMessageToImpl::UNKNOWN:
return;
- case proto::CompositorMessageToImpl::INITIALIZE_IMPL:
- test_hooks_->CreateRemoteClientHost(to_impl_proto);
- return;
- case proto::CompositorMessageToImpl::CLOSE_IMPL:
- test_hooks_->DestroyRemoteClientHost();
- return;
default:
bridge_->channel_impl.OnProtoReceived(
base::MakeUnique<proto::CompositorMessage>(proto));
@@ -71,8 +64,8 @@ void FakeRemoteProtoChannelImpl::SendCompositorProto(
base::MakeUnique<proto::CompositorMessage>(proto));
}
-RemoteProtoChannelBridge::RemoteProtoChannelBridge(TestHooks* test_hooks)
- : channel_main(this, test_hooks), channel_impl(this) {}
+RemoteProtoChannelBridge::RemoteProtoChannelBridge()
+ : channel_main(this), channel_impl(this) {}
RemoteProtoChannelBridge::~RemoteProtoChannelBridge() {}
« no previous file with comments | « cc/test/remote_proto_channel_bridge.h ('k') | cc/test/test_hooks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698