#include <sstream>
#include "base/base64.h"
#include "base/hash/sha1.h"
#include "base/test/scoped_feature_list.h"
#include "base/time/time.h"
#include "base/uuid.h"
#include "chrome/browser/commerce/product_specifications/product_specifications_service_factory.h"
#include "chrome/browser/sync/test/integration/product_specifications_helper.h"
#include "chrome/browser/sync/test/integration/sync_integration_test_util.h"
#include "chrome/browser/sync/test/integration/sync_test.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "components/commerce/core/product_specifications/product_specifications_service.h"
#include "components/commerce/core/product_specifications/product_specifications_set.h"
#include "components/sync/base/data_type.h"
#include "components/sync/base/hash_util.h"
#include "components/sync/base/time.h"
#include "components/sync/base/unique_position.h"
#include "components/sync/protocol/entity_specifics.pb.h"
#include "components/sync/protocol/product_comparison_specifics.pb.h"
#include "content/public/test/browser_test.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "third_party/protobuf/src/google/protobuf/io/zero_copy_stream_impl_lite.h"
namespace {
const char kNonUniqueName[] = …;
const char kUuid[] = …;
const char kName[] = …;
const char kNewName[] = …;
const std::vector<std::string> kUrls = …;
const int64_t kCreationTimeEpochMillis = …;
const int64_t kUpdateTimeEpochMillis = …;
UnorderedElementsAre;
sync_pb::EntitySpecifics GetTopLevelEntities(const std::string& uuid,
const std::string& name) { … }
std::vector<sync_pb::EntitySpecifics> GetItemEntities(
const std::string& top_level_uuid,
const std::vector<std::string>& urls) { … }
std::string CreateSerializedProtoField(int field_number,
const std::string& value) { … }
MATCHER_P2(HasUnknownFields, uuid, unknown_fields, "") { … }
class SingleClientProductSpecificationsSyncTest : public SyncTest { … };
IN_PROC_BROWSER_TEST_F(SingleClientProductSpecificationsSyncTest,
DownloadWhenSyncEnabled) { … }
IN_PROC_BROWSER_TEST_F(SingleClientProductSpecificationsSyncTest,
PreservesUnsupportedFieldsDataOnCommits) { … }
}