Lines Matching defs:bool
43 bool dummy = testing::GTEST_FLAG(also_run_disabled_tests)
98 static bool EventForwardingEnabled(const TestEventListeners& listeners) {
590 static bool IsPositive(int n) { return n > 0; }
673 static bool VectorIsCorrupt(const TestingVector& vector) {
678 bool found_in_vector[kVectorSize] = { false };
692 static bool VectorIsNotCorrupt(const TestingVector& vector) {
696 static bool RangeIsShuffled(const TestingVector& vector, int begin, int end) {
705 static bool RangeIsUnshuffled(
710 static bool VectorIsShuffled(const TestingVector& vector) {
714 static bool VectorIsUnshuffled(const TestingVector& vector) {
1393 void DoesNotAbortHelper(bool* aborted) {
1406 bool aborted = true;
2142 bool IsEven(int n) {
2148 bool operator()(int n) { return IsEven(n); }
2191 bool SumIsEven2(int n1, int n2) {
2198 bool operator()(int n1, int n2, int n3) {
2379 bool IsPositive(double x) {
2384 bool IsNegative(T x) {
2389 bool GreaterThan(T1 x1, T2 x2) {
2397 EXPECT_PRED1((bool (*)(int))(IsPositive), 5); // NOLINT
2398 ASSERT_PRED1((bool (*)(double))(IsPositive), 6.0); // NOLINT
3350 }, bool), "throws a different type");
3354 EXPECT_NONFATAL_FAILURE(EXPECT_THROW(a_++, bool), "throws nothing");
3702 ASSERT_THROW(ThrowAnInteger(), bool),
3703 "Expected: ThrowAnInteger() throws an exception of type bool.\n"
3708 ASSERT_THROW(ThrowNothing(), bool),
3709 "Expected: ThrowNothing() throws an exception of type bool.\n"
3736 bool false_value = false;
3757 bool operator==(const Uncopyable& rhs) const {
3773 bool IsPositiveUncopyable(const Uncopyable& x) {
4031 EXPECT_THROW(ThrowNothing(), bool);
4336 EXPECT_NONFATAL_FAILURE(EXPECT_THROW(ThrowAnInteger(), bool),
4338 "type bool.\n Actual: it throws a different type.");
4340 EXPECT_THROW(ThrowNothing(), bool),
4341 "Expected: ThrowNothing() throws an exception of type bool.\n"
4459 void AddFailureHelper(bool* aborted) {
4467 bool aborted = true;
4510 // Tests using bool values in {EXPECT|ASSERT}_EQ.
4511 TEST(EqAssertionTest, Bool) {
4514 bool false_value = false;
4758 bool operator==(const UnprintableChar& rhs) const {
4761 bool operator!=(const UnprintableChar& rhs) const {
4764 bool operator<(const UnprintableChar& rhs) const {
4767 bool operator<=(const UnprintableChar& rhs) const {
4770 bool operator>(const UnprintableChar& rhs) const {
4773 bool operator>=(const UnprintableChar& rhs) const {
4904 EXPECT_EQ(static_cast<bool>(r3), static_cast<bool>(r1));
5063 bool* p5 = NULL;
5226 static Flags AlsoRunDisabledTests(bool also_run_disabled_tests) {
5234 static Flags BreakOnFailure(bool break_on_failure) {
5242 static Flags CatchExceptions(bool catch_exceptions) {
5250 static Flags DeathTestUseFork(bool death_test_use_fork) {
5266 static Flags ListTests(bool list_tests) {
5282 static Flags PrintTime(bool print_time) {
5306 static Flags Shuffle(bool shuffle) {
5330 static Flags ThrowOnFailure(bool throw_on_failure) {
5337 bool also_run_disabled_tests;
5338 bool break_on_failure;
5339 bool catch_exceptions;
5340 bool death_test_use_fork;
5342 bool list_tests;
5344 bool print_time;
5347 bool shuffle;
5350 bool throw_on_failure;
5411 const Flags& expected, bool should_print_help) {
5412 const bool saved_help_flag = ::testing::internal::g_help_flag;
6361 EXPECT_NONFATAL_FAILURE(EXPECT_THROW(ThrowAnInteger(), bool) <<
6363 EXPECT_FATAL_FAILURE(ASSERT_THROW(ThrowAnInteger(), bool) <<
6499 static bool dummy1 GTEST_ATTRIBUTE_UNUSED_ = StaticAssertTypeEq<bool, bool>();
6500 static bool dummy2 GTEST_ATTRIBUTE_UNUSED_ =
6508 StaticAssertTypeEqTestHelper() { StaticAssertTypeEq<bool, T>(); }
6512 StaticAssertTypeEqTestHelper<bool>();
6540 const bool has_nonfatal_failure = HasNonfatalFailure();
6547 const bool has_nonfatal_failure = HasNonfatalFailure();
6555 const bool has_nonfatal_failure = HasNonfatalFailure();
6561 static bool HasNonfatalFailureHelper() {
6571 const bool has_nonfatal_failure = HasNonfatalFailureHelper();
6582 const bool has_failure = HasFailure();
6589 const bool has_failure = HasFailure();
6597 const bool has_failure = HasFailure();
6603 static bool HasFailureHelper() { return testing::Test::HasFailure(); }
6611 const bool has_failure = HasFailureHelper();
6619 TestListener(int* on_start_counter, bool* is_destroyed)
6636 bool* is_destroyed_;
6651 bool default_result_printer_is_destroyed = false;
6652 bool default_xml_printer_is_destroyed = false;
6653 bool extra_listener_is_destroyed = false;
6678 bool is_destroyed = false;
6773 bool is_destroyed = false;
6820 bool is_destroyed = false;
6851 bool is_destroyed = false;
6879 bool is_destroyed = false;
6910 bool is_destroyed = false;
7162 sizeof(IsContainerTest<std::vector<bool> >(0)));
7277 StaticAssertTypeEq<const bool(*)[2], NativeArray<bool[2]>::const_iterator>();