chromium/cc/paint/skottie_mru_resource_provider_unittest.cc

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

#include "cc/paint/skottie_mru_resource_provider.h"

#include <optional>
#include <string_view>
#include <utility>

#include "base/containers/flat_map.h"
#include "base/files/file_path.h"
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "cc/paint/paint_image.h"
#include "cc/paint/skottie_resource_metadata.h"
#include "cc/test/lottie_test_data.h"
#include "cc/test/skia_common.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/skia/include/core/SkRefCnt.h"
#include "third_party/skia/modules/skresources/include/SkResources.h"
#include "ui/gfx/geometry/size.h"

namespace cc {
namespace {

Contains;
Eq;
FieldsAre;
Key;
Optional;
Pair;
SizeIs;
UnorderedElementsAre;

class FrameDataStub {};

class SkottieMRUResourceProviderTest : public ::testing::Test {};

TEST_F(SkottieMRUResourceProviderTest, ProvidesMostRecentFrameDataForAsset) {}

TEST_F(SkottieMRUResourceProviderTest, ProvidesFrameDataForMultipleAssets) {}

TEST_F(SkottieMRUResourceProviderTest, ReturnsCorrectImageAssetMetadata) {}

TEST_F(SkottieMRUResourceProviderTest, HandlesMissingAssetDimensions) {}

TEST_F(SkottieMRUResourceProviderTest, HandlesIncompleteDimensions) {}

TEST_F(SkottieMRUResourceProviderTest, HandlesInvalidDimensions) {}

TEST_F(SkottieMRUResourceProviderTest, GracefullyHandlesInvalidJson) {}

}  // namespace
}  // namespace cc