Blender V5.3
blender::asset_system::tests::AssetRepresentationTest Class Reference

Inherits blender::asset_system::tests::AssetLibraryTestBase.

Public Member Functions

AssetLibrary * get_builtin_library_from_type (eAssetLibraryType type)
AssetRepresentation & add_dummy_asset (AssetLibrary &library, StringRef relative_path)
AssetRepresentation & add_dummy_id_asset (AssetLibrary &library, ID &id)

Additional Inherited Members

Static Public Member Functions inherited from blender::bke::BlenderGTestBase
static void SetUpTestSuite ()
static void TearDownTestSuite ()
Protected Member Functions inherited from blender::asset_system::tests::AssetLibraryTestBase
void SetUp () override
void TearDown () override
std::string use_temp_path ()
std::string create_temp_path ()
Protected Attributes inherited from blender::asset_system::tests::AssetLibraryTestBase
std::string asset_library_root_
std::string temp_library_path_
Main * bmain

Detailed Description

Sets up asset library loading so we have a library to load asset representations into (required for some functionality to perform work).

Definition at line 32 of file asset_representation_test.cc.

Member Function Documentation

◆ add_dummy_asset()

AssetRepresentation & blender::asset_system::tests::AssetRepresentationTest::add_dummy_asset ( AssetLibrary & library,
StringRef relative_path )
inline

Definition at line 43 of file asset_representation_test.cc.

◆ add_dummy_id_asset()

AssetRepresentation & blender::asset_system::tests::AssetRepresentationTest::add_dummy_id_asset ( AssetLibrary & library,
ID & id )
inline

Definition at line 52 of file asset_representation_test.cc.

References blender::ed::asset::mark_id().

◆ get_builtin_library_from_type()

AssetLibrary * blender::asset_system::tests::AssetRepresentationTest::get_builtin_library_from_type ( eAssetLibraryType type)
inline

The documentation for this class was generated from the following file: