#include "services/media_session/public/cpp/media_image_manager.h"
#include <string>
#include "base/hash/hash.h"
#include "base/strings/utf_string_conversions.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace media_session {
namespace {
const int kMinSize = …;
const int kIdealSize = …;
}
class MediaImageManagerTest : public testing::Test { … };
TEST_F(MediaImageManagerTest, CheckExpectedImageExtensionHashes) { … }
TEST_F(MediaImageManagerTest, CheckExpectedImageTypeHashes) { … }
TEST_F(MediaImageManagerTest, PickImageFromMimeType) { … }
TEST_F(MediaImageManagerTest, PickImageFromExtension) { … }
TEST_F(MediaImageManagerTest, IgnoreImageTooSmall) { … }
TEST_F(MediaImageManagerTest, PickImageUseDefaultScoreIfNoSize) { … }
TEST_F(MediaImageManagerTest, PickImageCloserToIdeal) { … }
TEST_F(MediaImageManagerTest, PickImageWithMultipleSizes) { … }
TEST_F(MediaImageManagerTest, PickImageWithBetterAspectRatio) { … }
TEST_F(MediaImageManagerTest, MinAndIdealAndImageSizeAreSame) { … }
TEST_F(MediaImageManagerTest, PreferImagesWithNonZeroArea) { … }
TEST_F(MediaImageManagerTest, PickImageWithAnySize) { … }
}