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

Side by Side Diff: components/download/internal/test/mock_model_client.h

Issue 2881173003: Download Service : Added leveldb proto layer (Closed)
Patch Set: Removed Model::Destroy Created 3 years, 6 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
1 // Copyright 2017 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/download/internal/model.h" 5 #include "components/download/internal/model.h"
6 6
7 #include "components/download/internal/entry.h" 7 #include "components/download/internal/entry.h"
8 #include "testing/gmock/include/gmock/gmock.h" 8 #include "testing/gmock/include/gmock/gmock.h"
9 9
10 #ifndef COMPONENTS_DOWNLOAD_INTERNAL_TEST_MOCK_MODEL_CLIENT_H_ 10 #ifndef COMPONENTS_DOWNLOAD_INTERNAL_TEST_MOCK_MODEL_CLIENT_H_
11 #define COMPONENTS_DOWNLOAD_INTERNAL_TEST_MOCK_MODEL_CLIENT_H_ 11 #define COMPONENTS_DOWNLOAD_INTERNAL_TEST_MOCK_MODEL_CLIENT_H_
12 12
13 namespace download { 13 namespace download {
14 namespace test { 14 namespace test {
15 15
16 class MockModelClient : public Model::Client { 16 class MockModelClient : public Model::Client {
17 public: 17 public:
18 MockModelClient(); 18 MockModelClient();
19 ~MockModelClient() override; 19 ~MockModelClient() override;
20 20
21 // Model::Client implementation. 21 // Model::Client implementation.
22 MOCK_METHOD1(OnInitialized, void(bool)); 22 MOCK_METHOD1(OnInitialized, void(bool));
23 MOCK_METHOD1(OnDestroyed, void(bool));
24 MOCK_METHOD3(OnItemAdded, void(bool, DownloadClient, const std::string&)); 23 MOCK_METHOD3(OnItemAdded, void(bool, DownloadClient, const std::string&));
25 MOCK_METHOD3(OnItemUpdated, void(bool, DownloadClient, const std::string&)); 24 MOCK_METHOD3(OnItemUpdated, void(bool, DownloadClient, const std::string&));
26 MOCK_METHOD3(OnItemRemoved, void(bool, DownloadClient, const std::string&)); 25 MOCK_METHOD3(OnItemRemoved, void(bool, DownloadClient, const std::string&));
27 }; 26 };
28 27
29 } // namespace test 28 } // namespace test
30 } // namespace download 29 } // namespace download
31 30
32 #endif // COMPONENTS_DOWNLOAD_INTERNAL_TEST_MOCK_MODEL_CLIENT_H_ 31 #endif // COMPONENTS_DOWNLOAD_INTERNAL_TEST_MOCK_MODEL_CLIENT_H_
OLDNEW
« no previous file with comments | « components/download/internal/test/entry_utils.cc ('k') | components/download/internal/test/noop_store.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698