| Index: components/download/internal/test/mock_model_client.h
|
| diff --git a/components/download/internal/test/mock_model_client.h b/components/download/internal/test/mock_model_client.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..2b82f0cd4be2b2914d9175634b72a29f3c6a18d1
|
| --- /dev/null
|
| +++ b/components/download/internal/test/mock_model_client.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2017 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.
|
| +
|
| +#include "components/download/internal/model.h"
|
| +
|
| +#include "components/download/internal/entry.h"
|
| +#include "testing/gmock/include/gmock/gmock.h"
|
| +
|
| +#ifndef COMPONENTS_DOWNLOAD_INTERNAL_TEST_MOCK_MODEL_CLIENT_H_
|
| +#define COMPONENTS_DOWNLOAD_INTERNAL_TEST_MOCK_MODEL_CLIENT_H_
|
| +
|
| +namespace download {
|
| +namespace test {
|
| +
|
| +class MockModelClient : public Model::Client {
|
| + public:
|
| + MockModelClient();
|
| + ~MockModelClient() override;
|
| +
|
| + // Model::Client implementation.
|
| + MOCK_METHOD1(OnInitialized, void(bool));
|
| + MOCK_METHOD1(OnDestroyed, void(bool));
|
| + MOCK_METHOD3(OnItemAdded, void(bool, DownloadClient, const std::string&));
|
| + MOCK_METHOD3(OnItemUpdated, void(bool, DownloadClient, const std::string&));
|
| + MOCK_METHOD3(OnItemRemoved, void(bool, DownloadClient, const std::string&));
|
| +};
|
| +
|
| +} // namespace test
|
| +} // namespace download
|
| +
|
| +#endif // COMPONENTS_DOWNLOAD_INTERNAL_TEST_MOCK_MODEL_CLIENT_H_
|
|
|