Lines Matching full:testing
32 // The Google C++ Testing Framework (Google Test)
82 namespace testing {
201 // testing::AssertionResult IsEven(int n) {
203 // return testing::AssertionSuccess();
205 // return testing::AssertionFailure() << n << " is odd";
228 // testing::AssertionResult IsEven(int n) {
230 // return testing::AssertionSuccess() << n << " is even";
232 // return testing::AssertionFailure() << n << " is odd";
252 // testing::AssertionResult IsEven(const char* expr, int n) {
254 // return testing::AssertionSuccess();
256 // return testing::AssertionFailure()
345 // class FooTest : public testing::Test {
1253 // testing::Environment* const foo_env =
1254 // testing::AddGlobalTestEnvironment(new FooEnvironment);
1301 return ::testing::PrintToString(value);
1636 // A value-parameterized class must inherit from both ::testing::Test and
1637 // ::testing::WithParamInterface. In most cases that just means inheriting
1638 // from ::testing::TestWithParam, but more complicated test hierarchies
1647 // class FooTest : public ::testing::TestWithParam<int> {
1667 // INSTANTIATE_TEST_CASE_P(OneToTenRange, FooTest, ::testing::Range(1, 10));
1700 // WithParamInterface, and can just inherit from ::testing::TestWithParam.
1740 ::testing::TestPartResult::kNonFatalFailure)
1760 // Macros for testing exceptions.
1802 // Macros for testing equalities and inequalities.
1827 // with two C strings, you are testing how their locations in memory
1849 EXPECT_PRED_FORMAT2(::testing::internal:: \
1853 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperNE, expected, actual)
1855 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2)
1857 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperLT, val1, val2)
1859 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGE, val1, val2)
1861 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperGT, val1, val2)
1864 ASSERT_PRED_FORMAT2(::testing::internal:: \
1868 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperNE, val1, val2)
1870 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperLE, val1, val2)
1872 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperLT, val1, val2)
1874 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperGE, val1, val2)
1876 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperGT, val1, val2)
1922 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTREQ, expected, actual)
1924 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRNE, s1, s2)
1926 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASEEQ, expected, actual)
1928 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASENE, s1, s2)
1931 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTREQ, expected, actual)
1933 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRNE, s1, s2)
1935 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASEEQ, expected, actual)
1937 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperSTRCASENE, s1, s2)
1954 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ<float>, \
1958 EXPECT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ<double>, \
1962 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ<float>, \
1966 ASSERT_PRED_FORMAT2(::testing::internal::CmpHelperFloatingPointEQ<double>, \
1970 EXPECT_PRED_FORMAT3(::testing::internal::DoubleNearPredFormat, \
1974 ASSERT_PRED_FORMAT3(::testing::internal::DoubleNearPredFormat, \
1980 // EXPECT_PRED_FORMAT2(testing::DoubleLE, Foo(), 5.0);
2002 EXPECT_PRED_FORMAT1(::testing::internal::IsHRESULTSuccess, (expr))
2005 ASSERT_PRED_FORMAT1(::testing::internal::IsHRESULTSuccess, (expr))
2008 EXPECT_PRED_FORMAT1(::testing::internal::IsHRESULTFailure, (expr))
2011 ASSERT_PRED_FORMAT1(::testing::internal::IsHRESULTFailure, (expr))
2042 ::testing::internal::ScopedTrace GTEST_CONCAT_TOKEN_(gtest_trace_, __LINE__)(\
2043 __FILE__, __LINE__, ::testing::Message() << (message))
2062 // void Bar() { testing::StaticAssertTypeEq<int, T>(); }
2098 // ::testing::Test>() here to get the type ID of testing::Test. This
2101 // ::testing::Test>() to return different values depending on whether
2108 ::testing::Test, ::testing::internal::GetTestTypeId())
2125 // class FooTest : public testing::Test {
2144 ::testing::internal::GetTypeId<test_fixture>())
2153 (::testing::UnitTest::GetInstance()->Run())
2155 } // namespace testing