Blender V4.3
bpath_test.cc File Reference
#include "testing/testing.h"
#include "CLG_log.h"
#include "BKE_bpath.hh"
#include "BKE_idtype.hh"
#include "BKE_lib_id.hh"
#include "BKE_main.hh"
#include "MEM_guardedalloc.h"
#include "DNA_listBase.h"
#include "DNA_movieclip_types.h"
#include "DNA_text_types.h"
#include "BLI_listbase.h"
#include "BLI_path_utils.hh"
#include "BLI_string.h"

Go to the source code of this file.

Classes

class  blender::bke::tests::BPathTest
 

Namespaces

namespace  blender
 
namespace  blender::bke
 
namespace  blender::bke::tests
 

Macros

#define ABSOLUTE_ROOT   SEP_STR
 
#define RELATIVE_ROOT   "//"
 
#define BASE_DIR   ABSOLUTE_ROOT "blendfiles" SEP_STR
 
#define REBASE_DIR   BASE_DIR "rebase" SEP_STR
 
#define BLENDFILE_NAME   "bpath.blend"
 
#define BLENDFILE_PATH   BASE_DIR BLENDFILE_NAME
 
#define TEXT_PATH_ITEM   "texts" SEP_STR "text.txt"
 
#define TEXT_PATH_ABSOLUTE   ABSOLUTE_ROOT TEXT_PATH_ITEM
 
#define TEXT_PATH_ABSOLUTE_MADE_RELATIVE   RELATIVE_ROOT ".." SEP_STR TEXT_PATH_ITEM
 
#define TEXT_PATH_RELATIVE   RELATIVE_ROOT TEXT_PATH_ITEM
 
#define TEXT_PATH_RELATIVE_MADE_ABSOLUTE   BASE_DIR TEXT_PATH_ITEM
 
#define MOVIECLIP_PATH_ITEM   "movieclips" SEP_STR "movieclip.avi"
 
#define MOVIECLIP_PATH_ABSOLUTE   ABSOLUTE_ROOT MOVIECLIP_PATH_ITEM
 
#define MOVIECLIP_PATH_ABSOLUTE_MADE_RELATIVE   RELATIVE_ROOT ".." SEP_STR MOVIECLIP_PATH_ITEM
 
#define MOVIECLIP_PATH_RELATIVE   RELATIVE_ROOT MOVIECLIP_PATH_ITEM
 
#define MOVIECLIP_PATH_RELATIVE_MADE_ABSOLUTE   BASE_DIR MOVIECLIP_PATH_ITEM
 

Functions

 blender::bke::tests::TEST_F (BPathTest, rebase_on_relative)
 
 blender::bke::tests::TEST_F (BPathTest, rebase_on_absolute)
 
 blender::bke::tests::TEST_F (BPathTest, convert_to_relative)
 
 blender::bke::tests::TEST_F (BPathTest, convert_to_absolute)
 
 blender::bke::tests::TEST_F (BPathTest, list_backup_restore)
 

Macro Definition Documentation

◆ ABSOLUTE_ROOT

#define ABSOLUTE_ROOT   SEP_STR

Definition at line 28 of file bpath_test.cc.

◆ BASE_DIR

◆ BLENDFILE_NAME

#define BLENDFILE_NAME   "bpath.blend"

Definition at line 35 of file bpath_test.cc.

◆ BLENDFILE_PATH

#define BLENDFILE_PATH   BASE_DIR BLENDFILE_NAME

Definition at line 36 of file bpath_test.cc.

Referenced by blender::bke::tests::BPathTest::SetUp().

◆ MOVIECLIP_PATH_ABSOLUTE

◆ MOVIECLIP_PATH_ABSOLUTE_MADE_RELATIVE

#define MOVIECLIP_PATH_ABSOLUTE_MADE_RELATIVE   RELATIVE_ROOT ".." SEP_STR MOVIECLIP_PATH_ITEM

Definition at line 46 of file bpath_test.cc.

Referenced by blender::bke::tests::TEST_F().

◆ MOVIECLIP_PATH_ITEM

#define MOVIECLIP_PATH_ITEM   "movieclips" SEP_STR "movieclip.avi"

Definition at line 44 of file bpath_test.cc.

Referenced by blender::bke::tests::TEST_F().

◆ MOVIECLIP_PATH_RELATIVE

#define MOVIECLIP_PATH_RELATIVE   RELATIVE_ROOT MOVIECLIP_PATH_ITEM

Definition at line 47 of file bpath_test.cc.

Referenced by blender::bke::tests::TEST_F(), and blender::bke::tests::TEST_F().

◆ MOVIECLIP_PATH_RELATIVE_MADE_ABSOLUTE

#define MOVIECLIP_PATH_RELATIVE_MADE_ABSOLUTE   BASE_DIR MOVIECLIP_PATH_ITEM

Definition at line 48 of file bpath_test.cc.

◆ REBASE_DIR

#define REBASE_DIR   BASE_DIR "rebase" SEP_STR

Definition at line 33 of file bpath_test.cc.

Referenced by blender::bke::tests::TEST_F(), and blender::bke::tests::TEST_F().

◆ RELATIVE_ROOT

#define RELATIVE_ROOT   "//"

Definition at line 31 of file bpath_test.cc.

Referenced by blender::bke::tests::TEST_F().

◆ TEXT_PATH_ABSOLUTE

#define TEXT_PATH_ABSOLUTE   ABSOLUTE_ROOT TEXT_PATH_ITEM

Definition at line 39 of file bpath_test.cc.

Referenced by blender::bke::tests::TEST_F(), and blender::bke::tests::TEST_F().

◆ TEXT_PATH_ABSOLUTE_MADE_RELATIVE

#define TEXT_PATH_ABSOLUTE_MADE_RELATIVE   RELATIVE_ROOT ".." SEP_STR TEXT_PATH_ITEM

Definition at line 40 of file bpath_test.cc.

◆ TEXT_PATH_ITEM

#define TEXT_PATH_ITEM   "texts" SEP_STR "text.txt"

Definition at line 38 of file bpath_test.cc.

Referenced by blender::bke::tests::TEST_F().

◆ TEXT_PATH_RELATIVE

◆ TEXT_PATH_RELATIVE_MADE_ABSOLUTE

#define TEXT_PATH_RELATIVE_MADE_ABSOLUTE   BASE_DIR TEXT_PATH_ITEM

Definition at line 42 of file bpath_test.cc.

Referenced by blender::bke::tests::TEST_F().