chromium/components/commerce/core/mock_shopping_service.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/commerce/core/mock_shopping_service.h"

#include "base/functional/callback.h"
#include "base/task/sequenced_task_runner.h"
#include "components/commerce/core/mock_cluster_manager.h"
#include "components/commerce/core/product_specifications/mock_product_specifications_service.h"
#include "components/sync/test/mock_data_type_local_change_processor.h"

namespace commerce {

// static
std::unique_ptr<KeyedService> MockShoppingService::Build() {}

MockShoppingService::MockShoppingService()
    :{}

MockShoppingService::~MockShoppingService() = default;

void MockShoppingService::SetupPermissiveMock() {}

void MockShoppingService::SetAccountChecker(AccountChecker* account_checker) {}

void MockShoppingService::SetResponseForGetProductInfoForUrl(
    std::optional<commerce::ProductInfo> product_info) {}

void MockShoppingService::SetResponseForGetPriceInsightsInfoForUrl(
    std::optional<commerce::PriceInsightsInfo> price_insights_info) {}

void MockShoppingService::SetResponseForGetUrlInfosForActiveWebWrappers(
    std::vector<commerce::UrlInfo> url_infos) {}

void MockShoppingService::SetResponsesForGetUpdatedProductInfoForBookmarks(
    std::map<int64_t, ProductInfo> bookmark_updates) {}

void MockShoppingService::SetResponseForGetMerchantInfoForUrl(
    std::optional<commerce::MerchantInfo> merchant_info) {}

void MockShoppingService::SetResponseForIsShoppingPage(
    std::optional<bool> is_shopping_page) {}

void MockShoppingService::SetSubscribeCallbackValue(
    bool subscribe_should_succeed) {}

void MockShoppingService::SetUnsubscribeCallbackValue(
    bool unsubscribe_should_succeed) {}

void MockShoppingService::SetIsSubscribedCallbackValue(bool is_subscribed) {}

void MockShoppingService::SetGetAllSubscriptionsCallbackValue(
    std::vector<CommerceSubscription> subscriptions) {}

void MockShoppingService::SetIsShoppingListEligible(bool eligible) {}

void MockShoppingService::SetIsReady(bool ready) {}

void MockShoppingService::SetIsMerchantViewerEnabled(bool is_enabled) {}

void MockShoppingService::SetGetAllPriceTrackedBookmarksCallbackValue(
    std::vector<const bookmarks::BookmarkNode*> bookmarks) {}

void MockShoppingService::SetGetAllShoppingBookmarksValue(
    std::vector<const bookmarks::BookmarkNode*> bookmarks) {}

void MockShoppingService::SetIsPriceInsightsEligible(bool is_eligible) {}

void MockShoppingService::SetIsDiscountEligibleToShowOnNavigation(
    bool is_eligible) {}

void MockShoppingService::SetResponseForGetDiscountInfoForUrl(
    const std::vector<DiscountInfo>& infos) {}

void MockShoppingService::SetIsParcelTrackingEligible(bool is_eligible) {}

void MockShoppingService::SetGetAllParcelStatusesCallbackValue(
    std::vector<ParcelTrackingStatus> parcels) {}

void StopTrackingParcel(const std::string& tracking_id,
                        base::OnceCallback<void(bool)> callback) {}

void MockShoppingService::SetResponseForGetProductSpecificationsForUrls(
    ProductSpecifications specs) {}

void MockShoppingService::SetQueryHistoryForUrlCallbackValue(
    history::QueryURLResult result) {}

}  // namespace commerce