#include <limits>
#include <memory>
#include <utility>
#include "base/functional/bind.h"
#include "components/viz/common/quads/compositor_frame_transition_directive.h"
#include "components/viz/service/display_embedder/server_shared_bitmap_manager.h"
#include "components/viz/service/surfaces/surface_saved_frame.h"
#include "components/viz/service/transitions/transferable_resource_tracker.h"
#include "gpu/command_buffer/common/mailbox.h"
#include "gpu/command_buffer/common/sync_token.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace viz {
namespace {
std::unique_ptr<SurfaceSavedFrame> CreateFrameWithResult() { … }
}
class TransferableResourceTrackerTest : public testing::Test { … };
TEST_F(TransferableResourceTrackerTest, IdInRange) { … }
TEST_F(TransferableResourceTrackerTest, ExhaustedIdLoops) { … }
TEST_F(TransferableResourceTrackerTest, UnrefWithCount) { … }
TEST_F(TransferableResourceTrackerTest,
ExhaustedIdLoopsButSkipsUnavailableIds) { … }
}