#include "third_party/blink/renderer/modules/content_index/content_description_type_converter.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/mojom/content_index/content_index.mojom-blink.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_content_description.h"
#include "third_party/blink/renderer/bindings/modules/v8/v8_content_icon_definition.h"
#include "third_party/blink/renderer/platform/testing/task_environment.h"
#include "third_party/blink/renderer/platform/weborigin/kurl.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
#include "third_party/blink/renderer/platform/wtf/vector.h"
namespace blink {
namespace {
const blink::ContentDescription* CreateDescription(const WTF::String& category,
const WTF::String& url) { … }
std::optional<String> GetSizesOrNone(const ContentIconDefinition* cid) { … }
std::optional<String> GetTypeOrNone(const ContentIconDefinition* cid) { … }
}
bool operator==(const Member<ContentIconDefinition>& cid1,
const Member<ContentIconDefinition>& cid2) { … }
bool operator==(const ContentDescription& cd1, const ContentDescription& cd2) { … }
TEST(ContentDescriptionConversionTest, RoundTrip) { … }
TEST(ContentDescriptionConversionTest, EnumRoundTrip) { … }
}