v8toolkit
0.0.1
Utility library for embedding V8 Javascript engine in a c++ program
|
#include <ctype.h>
#include <stddef.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <utility>
#include <vector>
#include "gtest/internal/gtest-port-arch.h"
#include "gtest/internal/custom/gtest-port.h"
#include <unistd.h>
#include <strings.h>
#include <regex.h>
#include <typeinfo>
#include "gtest/internal/gtest-tuple.h"
Go to the source code of this file.
Namespaces | |
testing | |
testing::internal | |
testing::internal::posix | |
Typedefs | |
typedef ::std::string | testing::internal::string |
typedef ::std::wstring | testing::internal::wstring |
typedef GTestMutexLock | testing::internal::MutexLock |
typedef bool_constant< false > | testing::internal::false_type |
typedef bool_constant< true > | testing::internal::true_type |
typedef long long | testing::internal::BiggestInt |
typedef struct stat | testing::internal::posix::StatStruct |
typedef TypeWithSize< 4 >::Int | testing::internal::Int32 |
typedef TypeWithSize< 4 >::UInt | testing::internal::UInt32 |
typedef TypeWithSize< 8 >::Int | testing::internal::Int64 |
typedef TypeWithSize< 8 >::UInt | testing::internal::UInt64 |
typedef TypeWithSize< 8 >::Int | testing::internal::TimeInMillis |
Enumerations | |
enum | testing::internal::GTestLogSeverity { testing::internal::GTEST_INFO, testing::internal::GTEST_WARNING, testing::internal::GTEST_ERROR, testing::internal::GTEST_FATAL } |
Variables | |
const BiggestInt | testing::internal::kMaxBiggestInt |
struct testing::internal::CompileAssert |
Definition at line 1029 of file gtest-port.h.
struct testing::internal::StaticAssertTypeEqHelper |
Definition at line 1084 of file gtest-port.h.
struct testing::internal::StaticAssertTypeEqHelper< T, T > |
Definition at line 1087 of file gtest-port.h.
Class Members | ||
---|---|---|
__unnamed__ |
struct testing::internal::IteratorTraits |
Definition at line 2219 of file gtest-port.h.
Class Members | ||
---|---|---|
typedef value_type | value_type |
struct testing::internal::IteratorTraits< T * > |
Definition at line 2224 of file gtest-port.h.
Class Members | ||
---|---|---|
typedef T | value_type |
struct testing::internal::IteratorTraits< const T * > |
Definition at line 2229 of file gtest-port.h.
Class Members | ||
---|---|---|
typedef T | value_type |
class testing::internal::TypeWithSize |
Definition at line 2461 of file gtest-port.h.
Class Members | ||
---|---|---|
typedef void | UInt |
class testing::internal::TypeWithSize< 4 > |
Definition at line 2470 of file gtest-port.h.
Class Members | ||
---|---|---|
typedef int | Int | |
typedef unsigned int | UInt |
class testing::internal::TypeWithSize< 8 > |
Definition at line 2482 of file gtest-port.h.
Class Members | ||
---|---|---|
typedef long long | Int | |
typedef unsigned long long | UInt |
#define GTEST_DEV_EMAIL_ "googletestframework@@googlegroups.com" |
Definition at line 285 of file gtest-port.h.
#define GTEST_FLAG_PREFIX_ "gtest_" |
Definition at line 286 of file gtest-port.h.
#define GTEST_FLAG_PREFIX_DASH_ "gtest-" |
Definition at line 287 of file gtest-port.h.
#define GTEST_FLAG_PREFIX_UPPER_ "GTEST_" |
Definition at line 288 of file gtest-port.h.
#define GTEST_NAME_ "Google Test" |
Definition at line 289 of file gtest-port.h.
#define GTEST_PROJECT_URL_ "https://github.com/google/googletest/" |
Definition at line 290 of file gtest-port.h.
#define GTEST_INIT_GOOGLE_TEST_NAME_ "testing::InitGoogleTest" |
Definition at line 294 of file gtest-port.h.
#define GTEST_DISABLE_MSC_WARNINGS_PUSH_ | ( | warnings | ) |
Definition at line 317 of file gtest-port.h.
Referenced by testing::internal::CmpHelperEQ(), testing::internal::posix::IsDir(), and testing::internal::PrintTo().
#define GTEST_DISABLE_MSC_WARNINGS_POP_ | ( | ) |
Definition at line 318 of file gtest-port.h.
Referenced by testing::AssertionResult::AssertionResult(), testing::internal::CmpHelperEQ(), testing::internal::posix::GetEnv(), testing::internal::UniversalPrinter< T >::Print(), and testing::internal::UniversalPrinter< T & >::Print().
#define GTEST_LANG_CXX11 0 |
Definition at line 330 of file gtest-port.h.
#define GTEST_HAS_POSIX_RE (!GTEST_OS_WINDOWS) |
Definition at line 422 of file gtest-port.h.
#define GTEST_USES_POSIX_RE 1 |
Definition at line 437 of file gtest-port.h.
#define GTEST_HAS_EXCEPTIONS 0 |
Definition at line 491 of file gtest-port.h.
#define GTEST_HAS_STD_STRING 1 |
Definition at line 498 of file gtest-port.h.
#define GTEST_HAS_GLOBAL_STRING 0 |
Definition at line 508 of file gtest-port.h.
#define GTEST_HAS_STD_WSTRING (!(GTEST_OS_LINUX_ANDROID || GTEST_OS_CYGWIN || GTEST_OS_SOLARIS)) |
Definition at line 521 of file gtest-port.h.
#define GTEST_HAS_GLOBAL_WSTRING (GTEST_HAS_STD_WSTRING && GTEST_HAS_GLOBAL_STRING) |
Definition at line 529 of file gtest-port.h.
#define GTEST_HAS_RTTI 1 |
Definition at line 584 of file gtest-port.h.
#define GTEST_HAS_PTHREAD |
Definition at line 603 of file gtest-port.h.
#define GTEST_HAS_TR1_TUPLE 1 |
Definition at line 634 of file gtest-port.h.
#define GTEST_USE_OWN_TR1_TUPLE 1 |
Definition at line 668 of file gtest-port.h.
#define GTEST_TUPLE_NAMESPACE_ ::std::tr1 |
Definition at line 685 of file gtest-port.h.
#define GTEST_HAS_CLONE 0 |
Definition at line 767 of file gtest-port.h.
#define GTEST_HAS_STREAM_REDIRECTION 1 |
Definition at line 781 of file gtest-port.h.
#define GTEST_HAS_PARAM_TEST 1 |
Definition at line 800 of file gtest-port.h.
#define GTEST_HAS_COMBINE 1 |
Definition at line 817 of file gtest-port.h.
#define GTEST_WIDE_STRING_USES_UTF16_ (GTEST_OS_WINDOWS || GTEST_OS_CYGWIN || GTEST_OS_SYMBIAN || GTEST_OS_AIX) |
Definition at line 821 of file gtest-port.h.
#define GTEST_AMBIGUOUS_ELSE_BLOCKER_ switch (0) case 0: default: |
Definition at line 842 of file gtest-port.h.
#define GTEST_ATTRIBUTE_UNUSED_ |
Definition at line 864 of file gtest-port.h.
#define GTEST_DISALLOW_ASSIGN_ | ( | type | ) | void operator=(type const &) |
Definition at line 869 of file gtest-port.h.
Referenced by testing::internal::MatcherCastImpl< T, Matcher< U > >::Cast(), testing::internal::ArgsMatcherImpl< ArgsTuple, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::DescribeNegationTo(), testing::internal::StrEqualityMatcher< StringType >::DescribeNegationTo(), testing::internal::HasSubstrMatcher< StringType >::DescribeNegationTo(), testing::internal::StartsWithMatcher< StringType >::DescribeNegationTo(), testing::internal::EndsWithMatcher< StringType >::DescribeNegationTo(), testing::internal::MatchesRegexMatcher::DescribeNegationTo(), testing::internal::NotMatcherImpl< T >::DescribeNegationTo(), testing::internal::TrulyMatcher< Predicate >::DescribeNegationTo(), testing::internal::FloatingEqMatcher< FloatType >::Impl< T >::DescribeNegationTo(), testing::internal::KeyMatcherImpl< PairType >::DescribeNegationTo(), testing::internal::UnorderedElementsAreMatcherImplBase::Elements(), testing::internal::WhenDynamicCastToMatcherBase< To & >::GetToName(), testing::internal::BothOfMatcherImpl< T >::MatchAndExplain(), testing::internal::EitherOfMatcherImpl< T >::MatchAndExplain(), testing::internal::FieldMatcher< Class, FieldType >::MatchAndExplain(), testing::internal::PropertyMatcher< Class, PropertyType >::MatchAndExplain(), testing::internal::SizeIsMatcher< SizeMatcher >::Impl< Container >::MatchAndExplain(), testing::internal::BeginEndDistanceIsMatcher< DistanceMatcher >::Impl< Container >::MatchAndExplain(), testing::internal::ContainerEqMatcher< Container >::MatchAndExplain(), testing::internal::WhenSortedByMatcher< Comparator, ContainerMatcher >::Impl< LhsContainer >::MatchAndExplain(), testing::internal::PointwiseMatcher< TupleMatcher, RhsContainer >::Impl< LhsContainer >::MatchAndExplain(), testing::internal::ContainsMatcherImpl< Container >::MatchAndExplain(), testing::internal::EachMatcherImpl< Container >::MatchAndExplain(), testing::internal::PairMatcherImpl< PairType >::MatchAndExplain(), testing::internal::ElementsAreMatcherImpl< Container >::MatchAndExplain(), testing::internal::UnorderedElementsAreMatcherImpl< Container >::MatchAndExplain(), testing::PolymorphicAction< Impl >::operator Action< F >(), testing::internal::WithArgsAction< InnerAction, k1, k2, k3, k4, k5, k6, k7, k8, k9, k10 >::operator Action< F >(), testing::internal::ReturnAction< R >::operator Action< F >(), testing::internal::ReturnRefAction< T >::operator Action< F >(), testing::internal::ReturnRefOfCopyAction< T >::operator Action< F >(), testing::internal::IgnoreResultAction< A >::operator Action< F >(), testing::internal::DoBothAction< Action1, Action2 >::operator Action< F >(), testing::internal::ArgsMatcher< InnerMatcher, k0, k1, k2, k3, k4, k5, k6, k7, k8, k9 >::operator Matcher< ArgsTuple >(), testing::internal::ContainsMatcher< M >::operator Matcher< Container >(), testing::internal::EachMatcher< M >::operator Matcher< Container >(), testing::internal::UnorderedElementsAreMatcher< MatcherTuple >::operator Matcher< Container >(), testing::internal::ElementsAreMatcher< MatcherTuple >::operator Matcher< Container >(), testing::internal::UnorderedElementsAreArrayMatcher< T >::operator Matcher< Container >(), testing::internal::ElementsAreArrayMatcher< T >::operator Matcher< Container >(), testing::internal::FloatingEqMatcher< FloatType >::operator Matcher< FloatType & >(), testing::internal::ComparisonBase< LtMatcher< Rhs >, Rhs, AnyLt >::operator Matcher< Lhs >(), testing::internal::KeyMatcher< M >::operator Matcher< PairType >(), testing::internal::PairMatcher< FirstMatcher, SecondMatcher >::operator Matcher< PairType >(), testing::internal::PointeeMatcher< InnerMatcher >::operator Matcher< Pointer >(), testing::internal::RefMatcher< T & >::operator Matcher< Super & >(), testing::PolymorphicMatcher< Impl >::operator Matcher< T >(), testing::internal::NotMatcher< InnerMatcher >::operator Matcher< T >(), testing::internal::BothOfMatcher< Matcher1, Matcher2 >::operator Matcher< T >(), testing::internal::EitherOfMatcher< Matcher1, Matcher2 >::operator Matcher< T >(), testing::internal::ResultOfMatcher< Callable >::operator Matcher< T >(), testing::internal::MatcherAsPredicate< M >::operator()(), testing::internal::PredicateFormatterFromMatcher< M >::operator()(), testing::internal::BoundSecondMatcher< Tuple2Matcher, Second >::operator=(), testing::internal::NativeArray< Element >::operator==(), testing::internal::RE::PartialMatch(), testing::internal::InvokeMethodAction< Class, MethodPtr >::Perform(), testing::internal::ActionAdaptor< F1, F2 >::Perform(), testing::internal::AssignAction< T1, T2 >::Perform(), testing::internal::SetErrnoAndReturnAction< T >::Perform(), testing::internal::SetArgumentPointeeAction< N, A, kIsProto >::Perform(), testing::internal::SetArgumentPointeeAction< N, Proto, true >::Perform(), testing::internal::InvokeWithoutArgsAction< FunctionImpl >::Perform(), and testing::internal::InvokeMethodWithoutArgsAction< Class, MethodPtr >::Perform().
#define GTEST_DISALLOW_COPY_AND_ASSIGN_ | ( | type | ) |
Definition at line 874 of file gtest-port.h.
Referenced by testing::internal::CheckedDowncastToActualType(), testing::StringMatchResultListener::Clear(), testing::internal::DummyMatchResultListener::DummyMatchResultListener(), testing::DefaultValue< T >::Get(), testing::internal::GTestLog::GetStream(), testing::internal::HasNewFatalFailureHelper::has_new_fatal_failure(), testing::Test::HasFailure(), testing::internal::WhenSortedByMatcher< Comparator, ContainerMatcher >::Impl< LhsContainer >::MatchAndExplain(), Mock::Mock(), testing::MockFunction< R()>::MockFunction(), testing::MockFunction< R(A0)>::MockFunction(), testing::MockFunction< R(A0, A1)>::MockFunction(), testing::MockFunction< R(A0, A1, A2)>::MockFunction(), testing::MockFunction< R(A0, A1, A2, A3)>::MockFunction(), testing::MockFunction< R(A0, A1, A2, A3, A4)>::MockFunction(), testing::MockFunction< R(A0, A1, A2, A3, A4, A5)>::MockFunction(), testing::MockFunction< R(A0, A1, A2, A3, A4, A5, A6)>::MockFunction(), testing::MockFunction< R(A0, A1, A2, A3, A4, A5, A6, A7)>::MockFunction(), testing::MockFunction< R(A0, A1, A2, A3, A4, A5, A6, A7, A8)>::MockFunction(), testing::MockFunction< R(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>::MockFunction(), testing::internal::ReturnAction< R >::operator Action< F >(), testing::internal::OsStackTraceGetter::OsStackTraceGetter(), testing::internal::ActionResultHolder< T >::PerformAction(), testing::internal::ActionResultHolder< void >::PerformAction(), testing::internal::Random::Reseed(), testing::internal::StreamMatchResultListener::StreamMatchResultListener(), testing::internal::TestResultAccessor::test_part_results(), testing::internal::TestFactoryBase::TestFactoryBase(), testing::TestPartResultArray::TestPartResultArray(), testing::ActionInterface< F2 >::~ActionInterface(), testing::NaggyMock< MockClass >::~NaggyMock(), and testing::StrictMock< MockClass >::~StrictMock().
#define GTEST_MUST_USE_RESULT_ |
Definition at line 886 of file gtest-port.h.
#define GTEST_INTENTIONAL_CONST_COND_PUSH_ | ( | ) | GTEST_DISABLE_MSC_WARNINGS_PUSH_(4127) |
Definition at line 897 of file gtest-port.h.
Referenced by testing::internal::DownCast_().
#define GTEST_INTENTIONAL_CONST_COND_POP_ | ( | ) | GTEST_DISABLE_MSC_WARNINGS_POP_() |
Definition at line 899 of file gtest-port.h.
Referenced by testing::internal::DownCast_().
#define GTEST_HAS_SEH 0 |
Definition at line 913 of file gtest-port.h.
#define GTEST_IS_THREADSAFE |
Definition at line 916 of file gtest-port.h.
#define GTEST_API_ |
Definition at line 934 of file gtest-port.h.
Referenced by testing::AddGlobalTestEnvironment(), testing::internal::CheckedDowncastToActualType(), testing::internal::CmpHelperEQ(), testing::internal::CmpHelperFloatingPointEQ(), testing::internal::TestFactoryImpl< TestClass >::CreateTest(), testing::Cardinality::DescribeTo(), testing::internal::GetTypeId(), testing::internal::GetUnitTestImpl(), testing::Matcher< internal::string >::Matcher(), testing::internal::MatcherBindSecond(), testing::AssertionResult::operator<<(), testing::internal::PrintRawArrayTo(), testing::internal::PrintTo(), testing::internal::ThreadLocal< testing::TestPartResultReporterInterface * >::set(), testing::internal::TestResultAccessor::test_part_results(), testing::internal::UniversalPrintArray(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
#define GTEST_NO_INLINE_ |
Definition at line 941 of file gtest-port.h.
Referenced by testing::internal::UnitTestImpl::ad_hoc_test_result().
#define GTEST_HAS_CXXABI_H_ 0 |
Definition at line 948 of file gtest-port.h.
#define GTEST_ATTRIBUTE_NO_SANITIZE_MEMORY_ |
Definition at line 961 of file gtest-port.h.
#define GTEST_ATTRIBUTE_NO_SANITIZE_ADDRESS_ |
Definition at line 973 of file gtest-port.h.
#define GTEST_ATTRIBUTE_NO_SANITIZE_THREAD_ |
Definition at line 985 of file gtest-port.h.
#define GTEST_COMPILE_ASSERT_ | ( | expr, | |
msg | |||
) |
Definition at line 1032 of file gtest-port.h.
Referenced by testing::ACTION_TEMPLATE(), testing::SafeMatcherCastImpl< T >::Cast(), testing::internal::ReturnAction< R >::operator Action< F >(), testing::internal::ReturnRefAction< T >::operator Action< F >(), testing::internal::ReturnRefOfCopyAction< T >::operator Action< F >(), testing::internal::ReturnNullAction::Perform(), and testing::internal::TupleMatches().
#define GTEST_ARRAY_SIZE_ | ( | array | ) | (sizeof(array) / sizeof(array[0])) |
Definition at line 1092 of file gtest-port.h.
#define GTEST_LOG_ | ( | severity | ) |
Definition at line 1271 of file gtest-port.h.
Referenced by testing::internal::BoundSecondMatcher< Tuple2Matcher, Second >::operator=(), and testing::internal::TestResultAccessor::test_part_results().
#define GTEST_CHECK_ | ( | condition | ) |
Definition at line 1295 of file gtest-port.h.
Referenced by testing::internal::UnitTestImpl::AddTestInfo(), testing::internal::CheckedDowncastToActualType(), testing::internal::CallableTraits< ResType(*)(ArgType)>::CheckIsValid(), testing::internal::DownCast_(), testing::internal::FloatingEqMatcher< FloatType >::FloatingEqMatcher(), testing::internal::GetNextRandomSeed(), testing::internal::GetUnitTestImpl(), testing::internal::ReturnAction< R >::operator Action< F >(), testing::internal::ShuffleRange(), and testing::internal::TestResultAccessor::test_part_results().
#define GTEST_CHECK_POSIX_SUCCESS_ | ( | posix_call | ) |
Definition at line 1308 of file gtest-port.h.
Referenced by testing::internal::CheckedDowncastToActualType().
#define GTEST_DECLARE_STATIC_MUTEX_ | ( | mutex | ) | extern ::testing::internal::Mutex mutex |
Definition at line 2144 of file gtest-port.h.
#define GTEST_DEFINE_STATIC_MUTEX_ | ( | mutex | ) | ::testing::internal::Mutex mutex |
Definition at line 2147 of file gtest-port.h.
#define GTEST_CAN_COMPARE_NULL 1 |
Definition at line 2191 of file gtest-port.h.
#define GTEST_PATH_SEP_ "/" |
Definition at line 2239 of file gtest-port.h.
#define GTEST_HAS_ALT_PATH_SEP_ 0 |
Definition at line 2240 of file gtest-port.h.
#define GTEST_SNPRINTF_ snprintf |
Definition at line 2429 of file gtest-port.h.
#define GTEST_FLAG | ( | name | ) | FLAGS_gtest_##name |
Definition at line 2504 of file gtest-port.h.
Referenced by testing::internal::GTestFlagSaver::GTestFlagSaver(), and testing::internal::GTestFlagSaver::~GTestFlagSaver().
#define GTEST_USE_OWN_FLAGFILE_FLAG_ 1 |
Definition at line 2508 of file gtest-port.h.
#define GTEST_FLAG_SAVER_ ::testing::internal::GTestFlagSaver |
Definition at line 2512 of file gtest-port.h.
#define GTEST_DECLARE_bool_ | ( | name | ) | GTEST_API_ extern bool GTEST_FLAG(name) |
Definition at line 2515 of file gtest-port.h.
#define GTEST_DECLARE_int32_ | ( | name | ) | GTEST_API_ extern ::testing::internal::Int32 GTEST_FLAG(name) |
Definition at line 2516 of file gtest-port.h.
#define GTEST_DECLARE_string_ | ( | name | ) | GTEST_API_ extern ::std::string GTEST_FLAG(name) |
Definition at line 2518 of file gtest-port.h.
#define GTEST_DEFINE_bool_ | ( | name, | |
default_val, | |||
doc | |||
) | GTEST_API_ bool GTEST_FLAG(name) = (default_val) |
Definition at line 2522 of file gtest-port.h.
#define GTEST_DEFINE_int32_ | ( | name, | |
default_val, | |||
doc | |||
) | GTEST_API_ ::testing::internal::Int32 GTEST_FLAG(name) = (default_val) |
Definition at line 2524 of file gtest-port.h.
#define GTEST_DEFINE_string_ | ( | name, | |
default_val, | |||
doc | |||
) | GTEST_API_ ::std::string GTEST_FLAG(name) = (default_val) |
Definition at line 2526 of file gtest-port.h.
#define GTEST_EXCLUSIVE_LOCK_REQUIRED_ | ( | locks | ) |
Definition at line 2533 of file gtest-port.h.
Referenced by testing::internal::ExpectationBase::DescribeLocationTo(), testing::internal::ExpectationBase::IsOverSaturated(), and testing::internal::ExpectationBase::set_cardinality().
#define GTEST_LOCK_EXCLUDED_ | ( | locks | ) |
Definition at line 2534 of file gtest-port.h.
Referenced by testing::internal::ExpectationBase::IncrementCallCount().