#include "third_party/blink/public/common/manifest/manifest_icon_selector.h"
#include <string>
#include <vector>
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace blink {
Purpose;
namespace {
const int kIdealIconSize = …;
const int kMinimumIconSize = …;
const int kMaxWidthToHeightRatio = …;
}
class ManifestIconSelectorTest : public testing::TestWithParam<bool> { … };
TEST_P(ManifestIconSelectorTest, NoIcons) { … }
TEST_P(ManifestIconSelectorTest, NoSizes) { … }
TEST_P(ManifestIconSelectorTest, MIMETypeFiltering) { … }
TEST_P(ManifestIconSelectorTest, PurposeFiltering) { … }
TEST_P(ManifestIconSelectorTest, IdealSizeIsUsedFirst) { … }
TEST_P(ManifestIconSelectorTest, FirstIconWithIdealSizeIsUsedFirst) { … }
TEST_P(ManifestIconSelectorTest, FallbackToSmallestLargerIcon) { … }
TEST_P(ManifestIconSelectorTest, FallbackToLargestIconLargerThanMinimum) { … }
TEST_P(ManifestIconSelectorTest, IdealVeryCloseToMinimumMatches) { … }
TEST_P(ManifestIconSelectorTest, SizeVeryCloseToMinimumMatches) { … }
TEST_P(ManifestIconSelectorTest, IconsWithInvalidDimensionsAreIgnored) { … }
TEST_P(ManifestIconSelectorTest, ClosestIconToIdeal) { … }
TEST_P(ManifestIconSelectorTest, UseAnyIfNoIdealSize) { … }
INSTANTIATE_TEST_SUITE_P(…);
}