11#include "gtest/gtest.h"
18TEST(ResourceManagerVKTest, CreatesANewInstance) {
24TEST(ResourceManagerVKTest, ReclaimMovesAResourceAndDestroysIt) {
32 EXPECT_FALSE(waiter.IsSignaledForTest());
43TEST(ResourceManagerVKTest, TerminatesWhenOutOfScope) {
47 std::weak_ptr<ResourceManagerVK>
manager;
55 EXPECT_EQ(
manager.lock(),
nullptr);
58TEST(ResourceManagerVKTest, IsThreadSafe) {
63 std::weak_ptr<ResourceManagerVK>
manager;
69 struct MockResource {};
71 std::thread thread1([&
manager]() {
75 std::thread thread2([&
manager]() {
84 EXPECT_EQ(
manager.lock(),
nullptr);
static SkString resource(SkPDFResourceType type, int index)
Wraps a closure that is invoked in the destructor unless released by the caller.
static std::shared_ptr< ResourceManagerVK > Create()
Creates a shared resource manager (a dedicated thread).
A unique handle to a resource which will be reclaimed by the specified resource manager.
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font manager
TEST(AiksCanvasTest, EmptyCullRect)