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

Unified Diff: blimp/common/blob_cache/mock_blob_cache.h

Issue 1891083002: Blimp: Add BlobChannelReceiver and bindings interface. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@blobchannel-sender
Patch Set: wez feedback Created 4 years, 8 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 | « blimp/common/BUILD.gn ('k') | blimp/common/blob_cache/mock_blob_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/common/blob_cache/mock_blob_cache.h
diff --git a/blimp/common/blob_cache/mock_blob_cache.h b/blimp/common/blob_cache/mock_blob_cache.h
new file mode 100644
index 0000000000000000000000000000000000000000..b152ad1546cebdae72d1a9805d542b74846d070b
--- /dev/null
+++ b/blimp/common/blob_cache/mock_blob_cache.h
@@ -0,0 +1,28 @@
+// 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_COMMON_BLOB_CACHE_MOCK_BLOB_CACHE_H_
+#define BLIMP_COMMON_BLOB_CACHE_MOCK_BLOB_CACHE_H_
+
+#include "blimp/common/blob_cache/blob_cache.h"
+#include "testing/gmock/include/gmock/gmock.h"
+
+namespace blimp {
+
+class MockBlobCache : public BlobCache {
+ public:
+ MockBlobCache();
+ ~MockBlobCache() override;
+
+ MOCK_CONST_METHOD1(Contains, bool(const BlobId&));
+ MOCK_METHOD2(Put, void(const BlobId&, BlobDataPtr));
+ MOCK_CONST_METHOD1(Get, BlobDataPtr(const BlobId&));
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(MockBlobCache);
+};
+
+} // namespace blimp
+
+#endif // BLIMP_COMMON_BLOB_CACHE_MOCK_BLOB_CACHE_H_
« no previous file with comments | « blimp/common/BUILD.gn ('k') | blimp/common/blob_cache/mock_blob_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698