libabigail/tests/test-utils.h
Dodji Seketeli e25159b4b9 Debug type-decl serialization
* src/abg-writer.cc (do_indent): New function.
	(write_corpus&): Use do_indent.  Don't forget to close the
	abi-instr tag.
	(write_type_decl): Use do_indent.  Handle null decls pointers.
	Emit the id at the end of the element.
	(write_namespace_decl): Use do_indent.  Handle null decls
	pointers.
	* tests/test-utils.{h,cc} (get_src_dir,get_build_dir): Constify
	the returned reference to string.
	(is_dir, ensure_dir_path_created, ensure_parent_dir_created): New
	function definitions.
	* tests/test-read-write.cc (main): Augment the test to serialize
	the corpus too.
2013-03-22 16:53:26 +01:00

22 lines
411 B
C++

// -*- Mode: C++ -*-
#ifndef __TEST_UTILS_H__
#define __TEST_UTILS_H__
#include <string>
namespace abigail
{
namespace tests
{
const std::string& get_src_dir();
const std::string& get_build_dir();
bool is_dir(const std::string&);
bool ensure_dir_path_created(const std::string&);
bool ensure_parent_dir_created(const std::string&);
}//end namespace tests
}//end namespace abigail
#endif //__TEST_UTILS_H__