| 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
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..a5149f15dcd695c184d9632ea2275e6b47b270b2
|
| --- /dev/null
|
| +++ b/cc/test/remote_proto_channel_bridge.h
|
| @@ -0,0 +1,52 @@
|
| +// Copyright 2015 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/base/cc_export.h"
|
| +#include "cc/trees/remote_proto_channel.h"
|
| +
|
| +namespace cc {
|
| +class RemoteProtoChannelBridge;
|
| +
|
| +class CC_EXPORT FakeRemoteProtoChannel : public RemoteProtoChannel {
|
| + public:
|
| + explicit FakeRemoteProtoChannel(RemoteProtoChannelBridge* bridge);
|
| + ~FakeRemoteProtoChannel() override;
|
| +
|
| + // RemoteProtoChannel implementation
|
| + void SetProtoReceiver(ProtoReceiver* receiver) override;
|
| +
|
| + RemoteProtoChannelBridge* bridge_;
|
| + RemoteProtoChannel::ProtoReceiver* receiver_;
|
| +};
|
| +
|
| +class CC_EXPORT FakeRemoteProtoChannelMain : public FakeRemoteProtoChannel {
|
| + public:
|
| + explicit FakeRemoteProtoChannelMain(RemoteProtoChannelBridge* bridge);
|
| +
|
| + void SendCompositorProto(const proto::CompositorMessage& proto) override;
|
| +};
|
| +
|
| +class CC_EXPORT FakeRemoteProtoChannelImpl : public FakeRemoteProtoChannel {
|
| + public:
|
| + explicit FakeRemoteProtoChannelImpl(RemoteProtoChannelBridge* bridge);
|
| +
|
| + void SendCompositorProto(const proto::CompositorMessage& proto) override;
|
| +};
|
| +
|
| +class CC_EXPORT RemoteProtoChannelBridge {
|
| + public:
|
| + RemoteProtoChannelBridge();
|
| + ~RemoteProtoChannelBridge();
|
| +
|
| + FakeRemoteProtoChannelMain channel_main;
|
| + FakeRemoteProtoChannelImpl channel_impl;
|
| +};
|
| +
|
| +} // namespace cc
|
| +
|
| +#endif // CC_TEST_REMOTE_PROTO_CHANNEL_BRIDGE_H_
|
|
|