chromium/components/commerce/core/compare/cluster_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/cluster_server_proxy.h"

#include <memory>
#include <optional>

#include "base/functional/callback.h"
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/run_loop.h"
#include "base/test/gtest_util.h"
#include "base/test/task_environment.h"
#include "base/values.h"
#include "components/commerce/core/commerce_types.h"
#include "components/commerce/core/mock_account_checker.h"
#include "components/commerce/core/pref_names.h"
#include "components/endpoint_fetcher/endpoint_fetcher.h"
#include "components/endpoint_fetcher/mock_endpoint_fetcher.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "net/http/http_status_code.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 "services/network/public/cpp/weak_wrapper_shared_url_loader_factory.h"
#include "services/network/test/test_url_loader_factory.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

_;

namespace commerce {
namespace {

const char kTestServerUrl[] =;
const uint64_t kProduct1Id =;
const uint64_t kProduct2Id =;

const std::string kSimpleResponse =;

std::string GetPostData() {}

class FakeClusterServerProxy : public ClusterServerProxy {};

class ClusterServerProxyTest : public testing::Test {};

TEST_F(ClusterServerProxyTest, TestGetComparableProducts) {}

TEST_F(ClusterServerProxyTest, TestGetComparableProductsWithServerError) {}

}  // namespace
}  // namespace commerce