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

Side by Side 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, 7 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef BLIMP_COMMON_BLOB_CACHE_MOCK_BLOB_CACHE_H_
6 #define BLIMP_COMMON_BLOB_CACHE_MOCK_BLOB_CACHE_H_
7
8 #include "blimp/common/blob_cache/blob_cache.h"
9 #include "testing/gmock/include/gmock/gmock.h"
10
11 namespace blimp {
12
13 class MockBlobCache : public BlobCache {
14 public:
15 MockBlobCache();
16 ~MockBlobCache() override;
17
18 MOCK_CONST_METHOD1(Contains, bool(const BlobId&));
19 MOCK_METHOD2(Put, void(const BlobId&, BlobDataPtr));
20 MOCK_CONST_METHOD1(Get, BlobDataPtr(const BlobId&));
21
22 private:
23 DISALLOW_COPY_AND_ASSIGN(MockBlobCache);
24 };
25
26 } // namespace blimp
27
28 #endif // BLIMP_COMMON_BLOB_CACHE_MOCK_BLOB_CACHE_H_
OLDNEW
« 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