OLD | NEW |
(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/model.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_MODEL_CLIENT_H_ |
| 11 #define COMPONENTS_DOWNLOAD_INTERNAL_TEST_SUPPORT_MOCK_MODEL_CLIENT_H_ |
| 12 |
| 13 namespace download { |
| 14 |
| 15 class MockModelClient : public Model::Client { |
| 16 public: |
| 17 MockModelClient(); |
| 18 ~MockModelClient() override; |
| 19 |
| 20 // DownloadModel::Client implementation. |
| 21 MOCK_METHOD1(OnInitialized, void(bool)); |
| 22 MOCK_METHOD1(OnDestroyed, void(bool)); |
| 23 MOCK_METHOD2(OnStoreUpdateFailed, void(DownloadClient, const std::string&)); |
| 24 MOCK_METHOD3(OnItemAdded, void(bool, DownloadClient, const std::string&)); |
| 25 }; |
| 26 |
| 27 } // namespace download |
| 28 |
| 29 #endif // COMPONENTS_DOWNLOAD_INTERNAL_TEST_SUPPORT_MOCK_MODEL_CLIENT_H_ |
OLD | NEW |