#include "components/commerce/core/account_checker.h"
#include <queue>
#include <string>
#include <unordered_map>
#include "base/check.h"
#include "base/functional/callback.h"
#include "base/run_loop.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "components/commerce/core/commerce_constants.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/commerce/core/pref_names.h"
#include "components/endpoint_fetcher/mock_endpoint_fetcher.h"
#include "components/prefs/testing_pref_service.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "components/sync/base/features.h"
#include "components/sync/base/user_selectable_type.h"
#include "components/sync/test/test_sync_service.h"
#include "components/sync/test/test_sync_user_settings.h"
#include "net/http/http_status_code.h"
#include "net/traffic_annotation/network_traffic_annotation_test_helper.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"
_;
InSequence;
namespace {
constexpr base::TimeDelta kTimeout = …;
const char kPostData[] = …;
}
namespace commerce {
class SpyAccountChecker : public AccountChecker { … };
class AccountCheckerTest : public testing::Test { … };
TEST_F(AccountCheckerTest,
TestFetchWaaStatusOnSignin_ReplaceSyncPromosWithSignInPromosDisabled) { … }
TEST_F(AccountCheckerTest, TestFetchPriceEmailPref) { … }
TEST_F(AccountCheckerTest, TestSendPriceEmailPrefOnPrefChange) { … }
TEST_F(AccountCheckerTest, TestBookmarksSyncState) { … }
TEST_F(AccountCheckerTest, TestBookmarksSyncState_NoBookmarks) { … }
}