#include "components/autofill/core/browser/webdata/payments/autofill_wallet_usage_data_sync_bridge.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/files/scoped_temp_dir.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/test_autofill_clock.h"
#include "components/autofill/core/browser/webdata/autofill_sync_metadata_table.h"
#include "components/autofill/core/browser/webdata/autofill_webdata_backend.h"
#include "components/autofill/core/browser/webdata/mock_autofill_webdata_backend.h"
#include "components/autofill/core/browser/webdata/payments/payments_autofill_table.h"
#include "components/autofill/core/browser/webdata/payments/payments_sync_bridge_util.h"
#include "components/autofill/core/common/autofill_constants.h"
#include "components/sync/base/data_type.h"
#include "components/sync/model/sync_data.h"
#include "components/sync/protocol/autofill_specifics.pb.h"
#include "components/sync/protocol/entity_data.h"
#include "components/sync/protocol/sync.pb.h"
#include "components/sync/test/mock_data_type_local_change_processor.h"
#include "components/webdata/common/web_database.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace autofill {
namespace {
ScopedTempDir;
AutofillWalletUsageSpecifics;
EntityData;
MockDataTypeLocalChangeProcessor;
NiceMock;
Return;
const std::string kExpectedClientTagAndStorageKey = …;
std::vector<VirtualCardUsageData> ExtractVirtualCardUsageDataFromDataBatch(
std::unique_ptr<syncer::DataBatch> batch) { … }
}
class AutofillWalletUsageDataSyncBridgeTest : public testing::Test { … };
TEST_F(AutofillWalletUsageDataSyncBridgeTest, VerifyGetClientTag) { … }
TEST_F(AutofillWalletUsageDataSyncBridgeTest, VerifyGetStorageKey) { … }
TEST_F(AutofillWalletUsageDataSyncBridgeTest, GetDataForCommit) { … }
TEST_F(AutofillWalletUsageDataSyncBridgeTest, GetAllDataForDebugging) { … }
TEST_F(AutofillWalletUsageDataSyncBridgeTest, ApplyIncrementalSyncChanges) { … }
TEST_F(AutofillWalletUsageDataSyncBridgeTest, ApplyDisableSyncChanges) { … }
TEST_F(AutofillWalletUsageDataSyncBridgeTest, ApplySyncData_LogDataValidity) { … }
}