| Index: blimp/net/blob_channel/mock_blob_channel_sender.h
|
| diff --git a/blimp/net/blob_channel/mock_blob_channel_sender.h b/blimp/net/blob_channel/mock_blob_channel_sender.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..fb7c6fda1ed8d98dc613a8e0f113147a99084c6f
|
| --- /dev/null
|
| +++ b/blimp/net/blob_channel/mock_blob_channel_sender.h
|
| @@ -0,0 +1,30 @@
|
| +// 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 BLIMP_NET_BLOB_CHANNEL_MOCK_BLOB_CHANNEL_SENDER_H_
|
| +#define BLIMP_NET_BLOB_CHANNEL_MOCK_BLOB_CHANNEL_SENDER_H_
|
| +
|
| +#include <string>
|
| +#include <vector>
|
| +
|
| +#include "blimp/net/blob_channel/blob_channel_sender.h"
|
| +#include "testing/gmock/include/gmock/gmock.h"
|
| +
|
| +namespace blimp {
|
| +
|
| +class BLIMP_NET_EXPORT MockBlobChannelSender : public BlobChannelSender {
|
| + public:
|
| + MockBlobChannelSender();
|
| + ~MockBlobChannelSender() override;
|
| +
|
| + MOCK_METHOD2(PutBlob, void(const BlobId& id, BlobDataPtr data));
|
| + MOCK_METHOD1(DeliverBlob, void(const BlobId& id));
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(MockBlobChannelSender);
|
| +};
|
| +
|
| +} // namespace blimp
|
| +
|
| +#endif // BLIMP_NET_BLOB_CHANNEL_MOCK_BLOB_CHANNEL_SENDER_H_
|
|
|