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

Unified Diff: cc/test/remote_proto_channel_bridge.h

Issue 2494623002: cc: Remove client/engine LayerTreeHostInProcess. (Closed)
Patch Set: .. Created 4 years, 1 month 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_compositor_test.cc ('k') | cc/test/remote_proto_channel_bridge.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/remote_proto_channel_bridge.h
diff --git a/cc/test/remote_proto_channel_bridge.h b/cc/test/remote_proto_channel_bridge.h
deleted file mode 100644
index 4404c7d6dc9277cfcb19da40bc8cf8f0dd82f8f8..0000000000000000000000000000000000000000
--- a/cc/test/remote_proto_channel_bridge.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CC_TEST_REMOTE_PROTO_CHANNEL_BRIDGE_H_
-#define CC_TEST_REMOTE_PROTO_CHANNEL_BRIDGE_H_
-
-#include "base/macros.h"
-#include "cc/test/test_hooks.h"
-#include "cc/trees/remote_proto_channel.h"
-
-// The RemoteProtoChannelBridge mocks out the external network layer for the
-// unit tests by sending messages directly between the RemoteProtoChannels for
-// the server and client LayerTreeHost.
-namespace cc {
-class RemoteProtoChannelBridge;
-
-class FakeRemoteProtoChannel : public RemoteProtoChannel {
- public:
- explicit FakeRemoteProtoChannel(RemoteProtoChannelBridge* bridge);
- ~FakeRemoteProtoChannel() override;
-
- // RemoteProtoChannel implementation
- void SetProtoReceiver(ProtoReceiver* receiver) override;
-
- virtual void OnProtoReceived(std::unique_ptr<proto::CompositorMessage> proto);
-
- bool HasReceiver() const;
-
- protected:
- RemoteProtoChannelBridge* bridge_;
-
- private:
- RemoteProtoChannel::ProtoReceiver* receiver_;
-};
-
-class FakeRemoteProtoChannelMain : public FakeRemoteProtoChannel {
- public:
- explicit FakeRemoteProtoChannelMain(RemoteProtoChannelBridge* bridge);
-
- void SendCompositorProto(const proto::CompositorMessage& proto) override;
-};
-
-class FakeRemoteProtoChannelImpl : public FakeRemoteProtoChannel {
- public:
- explicit FakeRemoteProtoChannelImpl(RemoteProtoChannelBridge* bridge);
-
- void SendCompositorProto(const proto::CompositorMessage& proto) override;
-};
-
-class RemoteProtoChannelBridge {
- public:
- RemoteProtoChannelBridge();
- ~RemoteProtoChannelBridge();
-
- FakeRemoteProtoChannelMain channel_main;
- FakeRemoteProtoChannelImpl channel_impl;
-};
-
-} // namespace cc
-
-#endif // CC_TEST_REMOTE_PROTO_CHANNEL_BRIDGE_H_
« no previous file with comments | « cc/test/remote_compositor_test.cc ('k') | cc/test/remote_proto_channel_bridge.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698