Chromium Code Reviews| Index: blimp/net/blob_channel/mock_blob_channel_receiver.h |
| diff --git a/blimp/net/blob_channel/mock_blob_channel_receiver.h b/blimp/net/blob_channel/mock_blob_channel_receiver.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..2ddf16c6d838084f9a2a33e1722b9b70c0fb7522 |
| --- /dev/null |
| +++ b/blimp/net/blob_channel/mock_blob_channel_receiver.h |
| @@ -0,0 +1,27 @@ |
| +// 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_RECEIVER_H_ |
| +#define BLIMP_NET_BLOB_CHANNEL_MOCK_BLOB_CHANNEL_RECEIVER_H_ |
| + |
| +#include <string> |
| +#include <vector> |
| + |
| +#include "blimp/net/blob_channel/blob_channel_receiver.h" |
| +#include "testing/gmock/include/gmock/gmock.h" |
| + |
| +namespace blimp { |
| + |
| +class MockBlobChannelReceiver : public BlobChannelReceiver { |
| + public: |
| + MockBlobChannelReceiver(); |
| + ~MockBlobChannelReceiver(); |
| + |
| + MOCK_METHOD1(Get, BlobDataPtr(const BlobId& id)); |
| + MOCK_METHOD2(OnBlobReceived, void(const BlobId& id, BlobDataPtr data)); |
| +}; |
|
Wez
2016/05/25 02:47:44
DISALLOW_COPY_AND_ASSIGN here too?
Kevin M
2016/05/25 20:23:38
Done.
|
| + |
| +} // namespace blimp |
| + |
| +#endif // BLIMP_NET_BLOB_CHANNEL_MOCK_BLOB_CHANNEL_RECEIVER_H_ |