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

Side by Side Diff: components/download/internal/test_support/mock_store.h

Issue 2870753003: Add a Model to the download component. (Closed)
Patch Set: Created 3 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
OLDNEW
(Empty)
1 // Copyright 2017 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 #include "components/download/internal/store.h"
6
7 #include "components/download/internal/entry.h"
8 #include "testing/gmock/include/gmock/gmock.h"
9
10 #ifndef COMPONENTS_DOWNLOAD_INTERNAL_TEST_SUPPORT_MOCK_STORE_H_
11 #define COMPONENTS_DOWNLOAD_INTERNAL_TEST_SUPPORT_MOCK_STORE_H_
12
13 namespace download {
14
15 class MockStore : public Store {
16 public:
17 MockStore();
18 ~MockStore() override;
19
20 // Store implementation.
21 MOCK_METHOD0(IsInitialized, bool());
22 MOCK_METHOD1(Initialize, void(const InitCallback&));
23 MOCK_METHOD1(Destroy, void(const StoreCallback&));
24 MOCK_METHOD2(Update, void(const Entry&, const StoreCallback&));
25 MOCK_METHOD2(Remove, void(const std::string&, const StoreCallback&));
26 };
27
28 } // namespace download
29
30 #endif // COMPONENTS_DOWNLOAD_INTERNAL_TEST_SUPPORT_MOCK_STORE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698