GameApi 28
Library used by GameApi Builder tool
Loading...
Searching...
No Matches
draco_test_utils.h File Reference
#include <ostream>
#include <sstream>
#include <streambuf>
#include "draco/core/draco_test_base.h"
#include "draco/draco_features.h"
#include "draco/io/mesh_io.h"
#include "draco/io/point_cloud_io.h"
Include dependency graph for draco_test_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  draco::CaptureStream

Namespaces

namespace  draco

Macros

#define DRACO_ASSERT_OK(expression)
#define DRACO_ASSIGN_OR_ASSERT(lhs, expression)
#define DRACO_ASSIGN_OR_ASSERT_IMPL_(statusor, lhs, expression, error_expr)

Functions

std::string draco::GetTestTempDir ()
std::string draco::GetTestFileFullPath (const std::string &file_name)
std::string draco::GetTestTempFileFullPath (const std::string &file_name)
bool draco::GenerateGoldenFile (const std::string &golden_file_name, const void *data, int data_size)
bool draco::CompareGoldenFile (const std::string &golden_file_name, const void *data, int data_size)
std::unique_ptr< Mesh > draco::ReadMeshFromTestFile (const std::string &file_name)
std::unique_ptr< Mesh > draco::ReadMeshFromTestFile (const std::string &file_name, bool use_metadata)
std::unique_ptr< Mesh > draco::ReadMeshFromTestFile (const std::string &file_name, const Options &options)
std::unique_ptr< PointCloud > draco::ReadPointCloudFromTestFile (const std::string &file_name)

Macro Definition Documentation

◆ DRACO_ASSERT_OK

#define DRACO_ASSERT_OK ( expression)
Value:
{ \
const draco::Status _local_status = (expression); \
ASSERT_TRUE(_local_status.ok()) << _local_status.error_msg_string(); \
}
Definition status.h:25
const std::string & error_msg_string() const
Definition status.h:46
bool ok() const
Definition status.h:52

◆ DRACO_ASSIGN_OR_ASSERT

#define DRACO_ASSIGN_OR_ASSERT ( lhs,
expression )
Value:
lhs, expression, _status)
#define DRACO_ASSIGN_OR_ASSERT_IMPL_(statusor, lhs, expression, error_expr)
Definition draco_test_utils.h:139
#define DRACO_MACROS_IMPL_CONCAT_(x, y)
Definition macros.h:92

◆ DRACO_ASSIGN_OR_ASSERT_IMPL_

#define DRACO_ASSIGN_OR_ASSERT_IMPL_ ( statusor,
lhs,
expression,
error_expr )
Value:
auto statusor = (expression); \
ASSERT_TRUE(statusor.ok()) << statusor.status().error_msg_string(); \
lhs = std::move(statusor).value();