53 testing::Test::SetUpTestCase();
78 G.factory_startup =
true;
82 ASSERT_EQ(
G.main->wm.first,
nullptr);
84 wm->
runtime = MEM_new<blender::bke::WindowManagerRuntime>(__func__);
105 testing::Test::TearDownTestCase();
114 testing::Test::TearDown();
119 const std::string &test_assets_dir = blender::tests::flags_test_asset_dir();
120 if (test_assets_dir.empty()) {
125 BLI_path_join(abspath,
sizeof(abspath), test_assets_dir.c_str(), filepath);
129 if (
bfile ==
nullptr) {
130 ADD_FAILURE() <<
"Unable to load file '" << filepath <<
"' from test assets dir '"
131 << test_assets_dir <<
"'";
146 if (
bfile ==
nullptr) {
157 bfile->main,
bfile->curscene,
bfile->cur_view_layer, depsgraph_evaluation_mode);
void BKE_tempdir_session_purge()
void BKE_blender_globals_main_replace(Main *bmain)
void BKE_blender_atexit()
void BKE_blender_globals_init()
void BKE_callback_global_init()
void BKE_view_layer_synced_ensure(const Scene *scene, ViewLayer *view_layer)
void * BKE_id_new(Main *bmain, short type, const char *name)
void BKE_mball_cubeTable_free()
void BKE_scene_graph_update_tagged(Depsgraph *depsgraph, Main *bmain)
void BKE_vfont_builtin_register(const void *mem, int size)
#define LISTBASE_FOREACH(type, var, list)
#define BLI_path_join(...)
void BLI_threadapi_init(void)
void BLI_threadapi_exit(void)
external readfile function prototypes.
BlendFileData * BLO_read_from_file(const char *filepath, eBLOReadSkip skip_flags, BlendFileReadReport *reports)
void BLO_blendfiledata_free(BlendFileData *bfd)
void DEG_free_node_types()
Depsgraph * DEG_graph_new(Main *bmain, Scene *scene, ViewLayer *view_layer, eEvaluationMode mode)
void DEG_register_node_types()
void DEG_graph_free(Depsgraph *graph)
void DEG_graph_build_from_view_layer(Depsgraph *graph)
blenloader genfile private function prototypes
void DNA_sdna_current_free(void)
void DNA_sdna_current_init(void)
const char datatoc_bfont_pfb[]
int datatoc_bfont_pfb_size
Read Guarded memory(de)allocation.
virtual void depsgraph_create(eEvaluationMode depsgraph_evaluation_mode)
static void SetUpTestCase()
bool blendfile_load(const char *filepath)
virtual void depsgraph_free()
static void TearDownTestCase()
struct Depsgraph * depsgraph
struct BlendFileData * bfile
WindowManagerRuntimeHandle * runtime