KiCad PCB EDA Suite
Loading...
Searching...
No Matches
test_graphics_import_mgr.cpp File Reference

Go to the source code of this file.

Classes

struct  TYPE_TO_EXTS
 

Functions

static bool pluginHandlesExt (const GRAPHICS_IMPORT_PLUGIN &aPlugin, const std::string &aExt)
 Declares a struct as the Boost test fixture.
 
 BOOST_AUTO_TEST_CASE (SelectByType)
 Check we can look a plugin up by type and get the right one.
 
 BOOST_AUTO_TEST_CASE (SelectByExt)
 Check we can look a plugin up by ext and get the right one.
 

Variables

static const std::vector< TYPE_TO_EXTStype_to_ext_cases
 

Function Documentation

◆ BOOST_AUTO_TEST_CASE() [1/2]

BOOST_AUTO_TEST_CASE ( SelectByExt  )

Check we can look a plugin up by ext and get the right one.

Definition at line 103 of file test_graphics_import_mgr.cpp.

References BOOST_CHECK(), GRAPHICS_IMPORT_MGR::GetPluginByExt(), and type_to_ext_cases.

◆ BOOST_AUTO_TEST_CASE() [2/2]

BOOST_AUTO_TEST_CASE ( SelectByType  )

Check we can look a plugin up by type and get the right one.

Definition at line 79 of file test_graphics_import_mgr.cpp.

References BOOST_CHECK(), GRAPHICS_IMPORT_MGR::GetPlugin(), pluginHandlesExt(), and type_to_ext_cases.

◆ pluginHandlesExt()

static bool pluginHandlesExt ( const GRAPHICS_IMPORT_PLUGIN aPlugin,
const std::string &  aExt 
)
static

Declares a struct as the Boost test fixture.

Definition at line 36 of file test_graphics_import_mgr.cpp.

Referenced by BOOST_AUTO_TEST_CASE().

Variable Documentation

◆ type_to_ext_cases

const std::vector<TYPE_TO_EXTS> type_to_ext_cases
static
Initial value:
= {
{
{ "dxf" },
"AutoCAD DXF",
},
{
{ "svg" },
"Scalable Vector Graphics",
},
}

Definition at line 63 of file test_graphics_import_mgr.cpp.

Referenced by BOOST_AUTO_TEST_CASE().