chromium/components/commerce/core/compare/product_specifications_server_proxy_unittest.cc

// Copyright 2024 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/compare/product_specifications_server_proxy.h"

#include <memory>
#include <optional>

#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/commerce/core/mock_account_checker.h"
#include "components/commerce/core/pref_names.h"
#include "components/commerce/core/test_utils.h"
#include "components/endpoint_fetcher/endpoint_fetcher.h"
#include "components/endpoint_fetcher/mock_endpoint_fetcher.h"
#include "components/prefs/testing_pref_service.h"
#include "net/http/http_status_code.h"
#include "services/data_decoder/public/cpp/data_decoder.h"
#include "services/data_decoder/public/cpp/test_support/in_process_data_decoder.h"
#include "services/network/public/cpp/shared_url_loader_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"

namespace commerce {
namespace {

const std::string kSimpleResponse =;

}  // namespace

class MockProductSpecificationsServerProxy
    : public ProductSpecificationsServerProxy {};

class ProductSpecificationsServerProxyTest : public testing::Test {};

TEST_F(ProductSpecificationsServerProxyTest, JsonToProductSpecifications) {}

TEST_F(ProductSpecificationsServerProxyTest,
       GetProductSpecificationsForClusterIds) {}

TEST_F(ProductSpecificationsServerProxyTest,
       GetProductSpecificationsForClusterIds_ApiDisabled) {}

TEST_F(ProductSpecificationsServerProxyTest,
       GetProductSpecificationsForClusterIds_BadJson) {}

TEST_F(ProductSpecificationsServerProxyTest,
       GetProductSpecificationsForClusterIds_BadNetwork) {}

}  // namespace commerce