commit
						ffcabbd844
					
				@ -349,6 +349,15 @@ GTEST_API_ AssertionResult AssertionFailure();
 | 
				
			|||||||
// Deprecated; use AssertionFailure() << msg.
 | 
					// Deprecated; use AssertionFailure() << msg.
 | 
				
			||||||
GTEST_API_ AssertionResult AssertionFailure(const Message& msg);
 | 
					GTEST_API_ AssertionResult AssertionFailure(const Message& msg);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}  // namespace testing
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					// Includes the auto-generated header that implements a family of generic
 | 
				
			||||||
 | 
					// predicate assertion macros. This include comes late because it relies on
 | 
				
			||||||
 | 
					// APIs declared above.
 | 
				
			||||||
 | 
					#include "gtest/gtest_pred_impl.h"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					namespace testing {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// The abstract class that all tests inherit from.
 | 
					// The abstract class that all tests inherit from.
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// In Google Test, a unit test program contains one or many TestCases, and
 | 
					// In Google Test, a unit test program contains one or many TestCases, and
 | 
				
			||||||
@ -359,7 +368,7 @@ GTEST_API_ AssertionResult AssertionFailure(const Message& msg);
 | 
				
			|||||||
// this for you.
 | 
					// this for you.
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// The only time you derive from Test is when defining a test fixture
 | 
					// The only time you derive from Test is when defining a test fixture
 | 
				
			||||||
// to be used a TEST_F.  For example:
 | 
					// to be used in a TEST_F.  For example:
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//   class FooTest : public testing::Test {
 | 
					//   class FooTest : public testing::Test {
 | 
				
			||||||
//    protected:
 | 
					//    protected:
 | 
				
			||||||
@ -554,9 +563,8 @@ class GTEST_API_ TestResult {
 | 
				
			|||||||
  // Returns the elapsed time, in milliseconds.
 | 
					  // Returns the elapsed time, in milliseconds.
 | 
				
			||||||
  TimeInMillis elapsed_time() const { return elapsed_time_; }
 | 
					  TimeInMillis elapsed_time() const { return elapsed_time_; }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Returns the i-th test part result among all the results. i can range
 | 
					  // Returns the i-th test part result among all the results. i can range from 0
 | 
				
			||||||
  // from 0 to test_property_count() - 1. If i is not in that range, aborts
 | 
					  // to total_part_count() - 1. If i is not in that range, aborts the program.
 | 
				
			||||||
  // the program.
 | 
					 | 
				
			||||||
  const TestPartResult& GetTestPartResult(int i) const;
 | 
					  const TestPartResult& GetTestPartResult(int i) const;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Returns the i-th test property. i can range from 0 to
 | 
					  // Returns the i-th test property. i can range from 0 to
 | 
				
			||||||
@ -699,7 +707,7 @@ class GTEST_API_ TestInfo {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
  // Returns true iff this test will appear in the XML report.
 | 
					  // Returns true iff this test will appear in the XML report.
 | 
				
			||||||
  bool is_reportable() const {
 | 
					  bool is_reportable() const {
 | 
				
			||||||
    // For now, the XML report includes all tests matching the filter.
 | 
					    // The XML report includes tests matching the filter.
 | 
				
			||||||
    // In the future, we may trim tests that are excluded because of
 | 
					    // In the future, we may trim tests that are excluded because of
 | 
				
			||||||
    // sharding.
 | 
					    // sharding.
 | 
				
			||||||
    return matches_filter_;
 | 
					    return matches_filter_;
 | 
				
			||||||
@ -1782,7 +1790,6 @@ template <typename T>
 | 
				
			|||||||
class TestWithParam : public Test, public WithParamInterface<T> {
 | 
					class TestWithParam : public Test, public WithParamInterface<T> {
 | 
				
			||||||
};
 | 
					};
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
// Macros for indicating success/failure in test code.
 | 
					// Macros for indicating success/failure in test code.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// ADD_FAILURE unconditionally adds a failure to the current test.
 | 
					// ADD_FAILURE unconditionally adds a failure to the current test.
 | 
				
			||||||
@ -1855,22 +1862,18 @@ class TestWithParam : public Test, public WithParamInterface<T> {
 | 
				
			|||||||
// AssertionResult. For more information on how to use AssertionResult with
 | 
					// AssertionResult. For more information on how to use AssertionResult with
 | 
				
			||||||
// these macros see comments on that class.
 | 
					// these macros see comments on that class.
 | 
				
			||||||
#define EXPECT_TRUE(condition) \
 | 
					#define EXPECT_TRUE(condition) \
 | 
				
			||||||
  GTEST_TEST_BOOLEAN_((condition), #condition, false, true, \
 | 
					  GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
 | 
				
			||||||
                      GTEST_NONFATAL_FAILURE_)
 | 
					                      GTEST_NONFATAL_FAILURE_)
 | 
				
			||||||
#define EXPECT_FALSE(condition) \
 | 
					#define EXPECT_FALSE(condition) \
 | 
				
			||||||
  GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \
 | 
					  GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \
 | 
				
			||||||
                      GTEST_NONFATAL_FAILURE_)
 | 
					                      GTEST_NONFATAL_FAILURE_)
 | 
				
			||||||
#define ASSERT_TRUE(condition) \
 | 
					#define ASSERT_TRUE(condition) \
 | 
				
			||||||
  GTEST_TEST_BOOLEAN_((condition), #condition, false, true, \
 | 
					  GTEST_TEST_BOOLEAN_(condition, #condition, false, true, \
 | 
				
			||||||
                      GTEST_FATAL_FAILURE_)
 | 
					                      GTEST_FATAL_FAILURE_)
 | 
				
			||||||
#define ASSERT_FALSE(condition) \
 | 
					#define ASSERT_FALSE(condition) \
 | 
				
			||||||
  GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \
 | 
					  GTEST_TEST_BOOLEAN_(!(condition), #condition, true, false, \
 | 
				
			||||||
                      GTEST_FATAL_FAILURE_)
 | 
					                      GTEST_FATAL_FAILURE_)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Includes the auto-generated header that implements a family of
 | 
					 | 
				
			||||||
// generic predicate assertion macros.
 | 
					 | 
				
			||||||
#include "gtest/gtest_pred_impl.h"
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
// Macros for testing equalities and inequalities.
 | 
					// Macros for testing equalities and inequalities.
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//    * {ASSERT|EXPECT}_EQ(v1, v2): Tests that v1 == v2
 | 
					//    * {ASSERT|EXPECT}_EQ(v1, v2): Tests that v1 == v2
 | 
				
			||||||
@ -1912,8 +1915,8 @@ class TestWithParam : public Test, public WithParamInterface<T> {
 | 
				
			|||||||
//
 | 
					//
 | 
				
			||||||
// Examples:
 | 
					// Examples:
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//   EXPECT_NE(5, Foo());
 | 
					//   EXPECT_NE(Foo(), 5);
 | 
				
			||||||
//   EXPECT_EQ(NULL, a_pointer);
 | 
					//   EXPECT_EQ(a_pointer, NULL);
 | 
				
			||||||
//   ASSERT_LT(i, array_size);
 | 
					//   ASSERT_LT(i, array_size);
 | 
				
			||||||
//   ASSERT_GT(records.size(), 0) << "There is no record left.";
 | 
					//   ASSERT_GT(records.size(), 0) << "There is no record left.";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
@ -2212,8 +2215,8 @@ bool StaticAssertTypeEq() {
 | 
				
			|||||||
//   }
 | 
					//   }
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
//   TEST_F(FooTest, ReturnsElementCountCorrectly) {
 | 
					//   TEST_F(FooTest, ReturnsElementCountCorrectly) {
 | 
				
			||||||
//     EXPECT_EQ(0, a_.size());
 | 
					//     EXPECT_EQ(a_.size(), 0);
 | 
				
			||||||
//     EXPECT_EQ(1, b_.size());
 | 
					//     EXPECT_EQ(b_.size(), 1);
 | 
				
			||||||
//   }
 | 
					//   }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#define TEST_F(test_fixture, test_name)\
 | 
					#define TEST_F(test_fixture, test_name)\
 | 
				
			||||||
 | 
				
			|||||||
@ -27,7 +27,7 @@
 | 
				
			|||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 | 
					// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 | 
				
			||||||
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 | 
					// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// This file is AUTOMATICALLY GENERATED on 10/31/2011 by command
 | 
					// This file is AUTOMATICALLY GENERATED on 01/02/2018 by command
 | 
				
			||||||
// 'gen_gtest_pred_impl.py 5'.  DO NOT EDIT BY HAND!
 | 
					// 'gen_gtest_pred_impl.py 5'.  DO NOT EDIT BY HAND!
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// Implements a family of generic predicate assertion macros.
 | 
					// Implements a family of generic predicate assertion macros.
 | 
				
			||||||
@ -35,10 +35,9 @@
 | 
				
			|||||||
#ifndef GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
 | 
					#ifndef GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
 | 
				
			||||||
#define GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
 | 
					#define GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Makes sure this header is not included before gtest.h.
 | 
					#include "gtest/gtest.h"
 | 
				
			||||||
#ifndef GTEST_INCLUDE_GTEST_GTEST_H_
 | 
					
 | 
				
			||||||
# error Do not include gtest_pred_impl.h directly.  Include gtest.h instead.
 | 
					namespace testing {
 | 
				
			||||||
#endif  // GTEST_INCLUDE_GTEST_GTEST_H_
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
// This header implements a family of generic predicate assertion
 | 
					// This header implements a family of generic predicate assertion
 | 
				
			||||||
// macros:
 | 
					// macros:
 | 
				
			||||||
@ -66,8 +65,6 @@
 | 
				
			|||||||
// We also define the EXPECT_* variations.
 | 
					// We also define the EXPECT_* variations.
 | 
				
			||||||
//
 | 
					//
 | 
				
			||||||
// For now we only support predicates whose arity is at most 5.
 | 
					// For now we only support predicates whose arity is at most 5.
 | 
				
			||||||
// Please email googletestframework@googlegroups.com if you need
 | 
					 | 
				
			||||||
// support for higher arities.
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
// GTEST_ASSERT_ is the basic statement to which all of the assertions
 | 
					// GTEST_ASSERT_ is the basic statement to which all of the assertions
 | 
				
			||||||
// in this file reduce.  Don't use this in your code.
 | 
					// in this file reduce.  Don't use this in your code.
 | 
				
			||||||
@ -355,4 +352,6 @@ AssertionResult AssertPred5Helper(const char* pred_text,
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}  // namespace testing
 | 
				
			||||||
 | 
					
 | 
				
			||||||
#endif  // GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
 | 
					#endif  // GTEST_INCLUDE_GTEST_GTEST_PRED_IMPL_H_
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user