chromium/third_party/blink/renderer/modules/content_index/content_description_type_converter_test.cc

// Copyright 2019 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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) {}

// Migration adapters for operator==(ContentIconDefinition).
std::optional<String> GetSizesOrNone(const ContentIconDefinition* cid) {}

std::optional<String> GetTypeOrNone(const ContentIconDefinition* cid) {}

}  // anonymous namespace

// TODO(crbug.com/1070871): Use fooOr() and drop migration adapters above.
bool operator==(const Member<ContentIconDefinition>& cid1,
                const Member<ContentIconDefinition>& cid2) {}

bool operator==(const ContentDescription& cd1, const ContentDescription& cd2) {}

TEST(ContentDescriptionConversionTest, RoundTrip) {}

TEST(ContentDescriptionConversionTest, EnumRoundTrip) {}

}  // namespace blink