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);
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.
TEST(FrameTimingsRecorderTest, RecordVsync)
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font manager