chromium/third_party/blink/common/manifest/manifest_icon_selector_unittest.cc

// Copyright 2015 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/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 =;
// The same value as content::ManifestIconDownloader::kMaxWidthToHeightRatio
const int kMaxWidthToHeightRatio =;
}  // anonymous namespace

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();

}  // namespace blink