#include "components/autofill/core/browser/webdata/payments/autofill_wallet_credential_sync_bridge.h"
#include <stddef.h>
#include <memory>
#include <utility>
#include "base/strings/string_number_conversions.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/webdata/autofill_sync_metadata_table.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/os_crypt/sync/os_crypt_mocker.h"
#include "components/sync/base/data_type.h"
#include "components/sync/engine/data_type_activation_response.h"
#include "components/sync/model/client_tag_based_data_type_processor.h"
#include "components/sync/model/data_type_activation_request.h"
#include "components/sync/protocol/autofill_specifics.pb.h"
#include "components/sync/protocol/autofill_wallet_credential_specifics.pb.h"
#include "components/sync/protocol/entity_data.h"
#include "components/sync/protocol/sync.pb.h"
#include "components/sync/test/mock_commit_queue.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 {
AutofillWalletCredentialSpecifics;
DataTypeState;
EntityData;
MockDataTypeLocalChangeProcessor;
NiceMock;
Return;
std::vector<ServerCvc> ExtractServerCvcDataFromDataBatch(
std::unique_ptr<syncer::DataBatch> batch) { … }
}
class AutofillWalletCredentialSyncBridgeTest : public testing::Test { … };
TEST_F(AutofillWalletCredentialSyncBridgeTest, VerifyGetClientTag) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest, VerifyGetStorageKey) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest, IsEntityDataValid_ValidData) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest, IsEntityDataValid_InValidData) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest, MergeFullSyncData) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest,
ApplyIncrementalSyncChanges_AddCvc) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest,
ApplyIncrementalSyncChanges_DeleteCvc) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest,
ApplyIncrementalSyncChanges_UpdateCvc) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest, ServerCvcChanged_Add) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest, ServerCvcChanged_Update) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest, ServerCvcChanged_Remove) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest, ApplyDisableSyncChanges) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest,
ApplyDisableSyncChanges_NoServerCvcPresent) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest, GetDataForCommit) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest, GetAllDataForDebugging) { … }
TEST_F(AutofillWalletCredentialSyncBridgeTest,
DoesNotUpdateOrDeleteServerCvcWhenCardUpdated) { … }
}