Home
last modified time | relevance | path

Searched refs:TestPartResult (Results 1 – 12 of 12) sorted by relevance

/ndk/sources/third_party/googletest/googletest/test/
Dgtest-test-part_test.cc39 using testing::TestPartResult;
50 : r1_(TestPartResult::kSuccess, "foo/bar.cc", 10, "Success!"), in TestPartResultTest()
51 r2_(TestPartResult::kNonFatalFailure, "foo/bar.cc", -1, "Failure!"), in TestPartResultTest()
52 r3_(TestPartResult::kFatalFailure, NULL, -1, "Failure!") {} in TestPartResultTest()
54 TestPartResult r1_, r2_, r3_;
64 const TestPartResult result(TestPartResult::kNonFatalFailure, in TEST_F()
69 EXPECT_EQ(TestPartResult::kNonFatalFailure, result.type()); in TEST_F()
77 const TestPartResult success(TestPartResult::kSuccess, in TEST_F()
86 const TestPartResult nonfatal_failure(TestPartResult::kNonFatalFailure, in TEST_F()
95 const TestPartResult fatal_failure(TestPartResult::kFatalFailure, in TEST_F()
[all …]
Dgtest-listener_test.cc46 using ::testing::TestPartResult;
88 virtual void OnTestPartResult(const TestPartResult& /*test_part_result*/) { in OnTestPartResult() argument
Dgtest_unittest.cc146 streamer_.OnTestPartResult(TestPartResult( in TEST_F()
147 TestPartResult::kFatalFailure, "foo.cc", 42, "failed=\n&%")); in TEST_F()
230 using testing::TestPartResult;
1352 typedef std::vector<TestPartResult> TPRVector;
1355 TestPartResult * pr1, * pr2;
1362 pr1 = new TestPartResult(TestPartResult::kSuccess, in SetUp()
1368 pr2 = new TestPartResult(TestPartResult::kFatalFailure, in SetUp()
1408 static void CompareTestPartResult(const TestPartResult& expected, in CompareTestPartResult()
1409 const TestPartResult& actual) { in CompareTestPartResult()
3403 EXPECT_EQ(TestPartResult::kFatalFailure, in TEST_F()
[all …]
/ndk/sources/third_party/googletest/googletest/src/
Dgtest-test-part.cc51 std::string TestPartResult::ExtractSummary(const char* message) { in ExtractSummary()
58 std::ostream& operator<<(std::ostream& os, const TestPartResult& result) { in operator <<()
61 << (result.type() == TestPartResult::kSuccess ? "Success" : in operator <<()
62 result.type() == TestPartResult::kFatalFailure ? "Fatal failure" : in operator <<()
68 void TestPartResultArray::Append(const TestPartResult& result) { in Append()
73 const TestPartResult& TestPartResultArray::GetTestPartResult(int index) const { in GetTestPartResult()
102 const TestPartResult& result) { in ReportTestPartResult()
Dgtest.cc343 AssertHelper::AssertHelper(TestPartResult::Type type, in AssertHelper()
579 const TestPartResult& result) { in ReportTestPartResult()
609 TestPartResult::Type type, in HasOneFailure()
611 const std::string expected(type == TestPartResult::kFatalFailure ? in HasOneFailure()
624 const TestPartResult& r = results.GetTestPartResult(0); in HasOneFailure()
646 TestPartResult::Type type, in SingleFailureChecker()
664 const TestPartResult& result) { in ReportTestPartResult()
673 const TestPartResult& result) { in ReportTestPartResult()
1691 const TestPartResult& TestResult::GetTestPartResult(int i) const { in GetTestPartResult()
1712 void TestResult::AddTestPartResult(const TestPartResult& test_part_result) { in AddTestPartResult()
[all …]
Dgtest-internal-inl.h480 virtual void ReportTestPartResult(const TestPartResult& result);
496 virtual void ReportTestPartResult(const TestPartResult& result);
1055 static const std::vector<testing::TestPartResult>& test_part_results( in test_part_results()
1183 void OnTestPartResult(const TestPartResult& test_part_result) { in OnTestPartResult()
/ndk/sources/third_party/googletest/googletest/include/gtest/
Dgtest-test-part.h47 class GTEST_API_ TestPartResult {
60 TestPartResult(Type a_type, in TestPartResult() function
120 std::ostream& operator<<(std::ostream& os, const TestPartResult& result);
131 void Append(const TestPartResult& result);
134 const TestPartResult& GetTestPartResult(int index) const;
140 std::vector<TestPartResult> array_;
150 virtual void ReportTestPartResult(const TestPartResult& result) = 0;
166 virtual void ReportTestPartResult(const TestPartResult& result);
Dgtest-spi.h78 virtual void ReportTestPartResult(const TestPartResult& result);
100 TestPartResult::Type type,
105 const TestPartResult::Type type_;
146 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
163 &gtest_failures, ::testing::TestPartResult::kFatalFailure, (substr));\
208 &gtest_failures, ::testing::TestPartResult::kNonFatalFailure, \
222 &gtest_failures, ::testing::TestPartResult::kNonFatalFailure, \
Dgtest.h164 void ReportFailureInUnknownLocation(TestPartResult::Type result_type,
533 const TestPartResult& GetTestPartResult(int i) const;
551 const std::vector<TestPartResult>& test_part_results() const { in test_part_results()
579 void AddTestPartResult(const TestPartResult& test_part_result);
598 std::vector<TestPartResult> test_part_results_;
960 virtual void OnTestPartResult(const TestPartResult& test_part_result) = 0;
996 virtual void OnTestPartResult(const TestPartResult& /*test_part_result*/) {} in OnTestPartResult() argument
1205 void AddTestPartResult(TestPartResult::Type result_type,
1237 TestPartResult::Type result_type,
1695 AssertHelper(TestPartResult::Type type,
[all …]
/ndk/sources/third_party/googletest/googletest/samples/
Dsample9_unittest.cc45 using ::testing::TestPartResult;
73 virtual void OnTestPartResult(const TestPartResult& test_part_result) { in OnTestPartResult()
Dsample10_unittest.cc45 using ::testing::TestPartResult;
/ndk/sources/third_party/googletest/googletest/include/gtest/internal/
Dgtest-internal.h86 class TestPartResult; // Result of a test part. variable
149 explicit GoogleTestFailureException(const TestPartResult& failure);
1021 return GTEST_MESSAGE_(message, ::testing::TestPartResult::kFatalFailure)
1024 GTEST_MESSAGE_(message, ::testing::TestPartResult::kNonFatalFailure)
1027 GTEST_MESSAGE_(message, ::testing::TestPartResult::kSuccess)