Drake
copyable_unique_ptr_test.cc File Reference
#include "drake/common/copyable_unique_ptr.h"
#include <memory>
#include <regex>
#include <sstream>
#include <gtest/gtest.h>
#include "drake/common/test/is_dynamic_castable.h"
Include dependency graph for copyable_unique_ptr_test.cc:

Namespaces

 drake
 

Macros

#define EXPECT_ERROR_MESSAGE(expression, exception, reg_exp)
 

Enumerations

enum  Origin { UNINITIALIZED, CONSTRUCT, COPY, CLONE }
 

Macro Definition Documentation

#define EXPECT_ERROR_MESSAGE (   expression,
  exception,
  reg_exp 
)
Value:
try { \
expression; \
GTEST_FAIL(); \
} catch (const exception& err) { \
auto matcher = [](const char* s, const char* re) { \
return regex_match(s, regex(re)); }; \
EXPECT_PRED2(matcher, err.what(), reg_exp); \
}

Enumeration Type Documentation

enum Origin
strong

Variable Documentation

bool dtor_called
static
Origin origin {Origin::UNINITIALIZED}
int value {-1}