Lines Matching defs:true
415 // Silences warnings: "Condition is always true", "Unreachable code"
419 // Tests that GTEST_IS_NULL_LITERAL_(x) is true when x is a null
776 return true;
783 return true;
785 found_in_vector[e] = true;
800 return true;
1474 // Silences warnings: "Condition is always true"
1507 bool aborted = true;
1854 GTEST_FLAG(print_time) = true;
1889 GTEST_FLAG(also_run_disabled_tests) = true;
1890 GTEST_FLAG(break_on_failure) = true;
1891 GTEST_FLAG(catch_exceptions) = true;
1893 GTEST_FLAG(death_test_use_fork) = true;
1895 GTEST_FLAG(list_tests) = true;
1900 GTEST_FLAG(shuffle) = true;
1903 GTEST_FLAG(throw_on_failure) = true;
2055 // returns true when the flag represents a valid decimal integer in
2131 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
2139 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
2150 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
2155 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
2160 EXPECT_FALSE(ShouldShard(total_var_, index_var_, true));
2248 // Returns true iff the argument is an even number.
2253 // A functor that returns true iff the argument is an even number.
2297 // Returns true iff the sum of the arguments is an even number.
2302 // A functor that returns true iff the sum of the arguments is an even
3630 true).failure_message());
3653 // Silences warnings: "Condition is always true", "Unreachable code"
3672 "Expected: true");
3678 "Expected: true");
3686 " Actual: true\n"
3697 " Actual: true (2 is even)\n"
3703 " Actual: true\n"
3849 ASSERT_EQ(1 < 2, true);
3851 ASSERT_EQ(true && false_value, false);
4104 // Silences warnings: "Condition is always true", "Unreachable code"
4199 ASSERT_TRUE(true);
4248 EXPECT_TRUE(true);
4260 ASSERT_TRUE(true);
4331 ASSERT_FALSE(true) << "Expected failure: " << 2 << " > " << 1
4332 << " evaluates to " << true;
4349 ASSERT_TRUE(true) << "This should succeed.";
4350 ASSERT_TRUE(true) << true;
4372 EXPECT_TRUE(true) << "Intentional success";
4381 "Expected: true");
4392 "Expected: true");
4397 "Expected: true");
4404 EXPECT_NONFATAL_FAILURE(EXPECT_FALSE(true) << "Intentional failure #1.",
4406 EXPECT_NONFATAL_FAILURE(EXPECT_FALSE(true) << "Intentional failure #2.",
4410 " Actual: true\n"
4421 " Actual: true (2 is even)\n"
4426 " Actual: true\n"
4586 EXPECT_EQ(1 < 2, true);
4587 EXPECT_NONFATAL_FAILURE(EXPECT_EQ(true, true && false),
4588 "Value of: true && false");
4680 *aborted = true;
4687 bool aborted = true;
4731 EXPECT_EQ(true, true);
4734 ASSERT_EQ(false_value, true);
4735 }, "Value of: true");
5164 r << "abc" << 'd' << 0 << true;
5433 print_time(true),
5584 GTEST_FLAG(print_time) = true;
5721 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::Filter(""), true);
5769 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::BreakOnFailure(true), false);
5820 // Tests parsing a --gtest_break_on_failure flag that has a "true"
5834 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::BreakOnFailure(true), false);
5850 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::CatchExceptions(true), false);
5866 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::DeathTestUseFork(true), false);
5904 flags.break_on_failure = true;
5922 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::ListTests(true), false);
5925 // Tests having a --gtest_list_tests flag with a "true" value
5938 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::ListTests(true), false);
6003 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags(), true);
6068 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::PrintTime(true), false);
6071 // Tests having a --gtest_print_time flag with a "true" value
6084 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::PrintTime(true), false);
6181 Flags::AlsoRunDisabledTests(true), false);
6184 // Tests having a --gtest_also_run_disabled_tests flag with a "true" value
6198 true), false);
6231 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::Shuffle(true), false);
6250 // Tests parsing a --gtest_shuffle flag that has a "true"
6264 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::Shuffle(true), false);
6312 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::ThrowOnFailure(true), false);
6331 // Tests parsing a --gtest_throw_on_failure flag that has a "true"
6345 GTEST_TEST_PARSING_FLAGS_(argv, argv2, Flags::ThrowOnFailure(true), false);
6367 expected_flags.break_on_failure = true;
6369 expected_flags.list_tests = true;
6485 // Silences warnings: "Condition is always true", "Unreachable code"
6490 EXPECT_TRUE(true) << "unexpected failure";
6491 ASSERT_TRUE(true) << "unexpected failure";
6501 EXPECT_NONFATAL_FAILURE(EXPECT_FALSE(true) << "expected failure",
6503 EXPECT_FATAL_FAILURE(ASSERT_FALSE(true) << "expected failure",
6612 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6616 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6623 GTEST_FLAG(color) = "True";
6637 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6641 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6649 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6652 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6655 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6663 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6673 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6676 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6679 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6685 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6688 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6691 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6694 EXPECT_FALSE(ShouldUseColor(true)); // Stdout is a TTY.
6697 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6700 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6703 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6706 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6709 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6712 EXPECT_TRUE(ShouldUseColor(true)); // Stdout is a TTY.
6844 *is_destroyed_ = true;
7214 // Tests that IsAProtocolMessage<T>::value is true when T is
7346 // Tests that ImplicitlyConvertible<T1, T2>::value is true when T1 can