Lines Matching defs:testing
42 bool dummy = testing::GTEST_FLAG(also_run_disabled_tests)
43 || testing::GTEST_FLAG(break_on_failure)
44 || testing::GTEST_FLAG(catch_exceptions)
45 || testing::GTEST_FLAG(color) != "unknown"
46 || testing::GTEST_FLAG(filter) != "unknown"
47 || testing::GTEST_FLAG(list_tests)
48 || testing::GTEST_FLAG(output) != "unknown"
49 || testing::GTEST_FLAG(print_time)
50 || testing::GTEST_FLAG(random_seed)
51 || testing::GTEST_FLAG(repeat) > 0
52 || testing::GTEST_FLAG(show_internal_stack_frames)
53 || testing::GTEST_FLAG(shuffle)
54 || testing::GTEST_FLAG(stack_trace_depth) > 0
55 || testing::GTEST_FLAG(throw_on_failure);
76 namespace testing {
106 } // namespace testing
108 using testing::AssertionFailure;
109 using testing::AssertionResult;
110 using testing::AssertionSuccess;
111 using testing::DoubleLE;
112 using testing::EmptyTestEventListener;
113 using testing::FloatLE;
114 using testing::GTEST_FLAG(also_run_disabled_tests);
115 using testing::GTEST_FLAG(break_on_failure);
116 using testing::GTEST_FLAG(catch_exceptions);
117 using testing::GTEST_FLAG(color);
118 using testing::GTEST_FLAG(death_test_use_fork);
119 using testing::GTEST_FLAG(filter);
120 using testing::GTEST_FLAG(list_tests);
121 using testing::GTEST_FLAG(output);
122 using testing::GTEST_FLAG(print_time);
123 using testing::GTEST_FLAG(random_seed);
124 using testing::GTEST_FLAG(repeat);
125 using testing::GTEST_FLAG(show_internal_stack_frames);
126 using testing::GTEST_FLAG(shuffle);
127 using testing::GTEST_FLAG(stack_trace_depth);
128 using testing::GTEST_FLAG(throw_on_failure);
129 using testing::IsNotSubstring;
130 using testing::IsSubstring;
131 using testing::Message;
132 using testing::ScopedFakeTestPartResultReporter;
133 using testing::StaticAssertTypeEq;
134 using testing::Test;
135 using testing::TestEventListeners;
136 using testing::TestCase;
137 using testing::TestPartResult;
138 using testing::TestPartResultArray;
139 using testing::TestProperty;
140 using testing::TestResult;
141 using testing::UnitTest;
142 using testing::kMaxStackTraceDepth;
143 using testing::internal::AlwaysFalse;
144 using testing::internal::AlwaysTrue;
145 using testing::internal::AppendUserMessage;
146 using testing::internal::CodePointToUtf8;
147 using testing::internal::CountIf;
148 using testing::internal::EqFailure;
149 using testing::internal::FloatingPoint;
150 using testing::internal::FormatTimeInMillisAsSeconds;
151 using testing::internal::ForEach;
152 using testing::internal::GTestFlagSaver;
153 using testing::internal::GetCurrentOsStackTraceExceptTop;
154 using testing::internal::GetElementOr;
155 using testing::internal::GetNextRandomSeed;
156 using testing::internal::GetRandomSeedFromFlag;
157 using testing::internal::GetTestTypeId;
158 using testing::internal::GetTypeId;
159 using testing::internal::GetUnitTestImpl;
160 using testing::internal::Int32;
161 using testing::internal::Int32FromEnvOrDie;
162 using testing::internal::ParseInt32Flag;
163 using testing::internal::ShouldRunTestOnShard;
164 using testing::internal::ShouldShard;
165 using testing::internal::ShouldUseColor;
166 using testing::internal::Shuffle;
167 using testing::internal::ShuffleRange;
168 using testing::internal::StreamableToString;
169 using testing::internal::String;
170 using testing::internal::TestEventListenersAccessor;
171 using testing::internal::TestResultAccessor;
172 using testing::internal::UInt32;
173 using testing::internal::WideStringToUtf8;
174 using testing::internal::kMaxRandomSeed;
175 using testing::internal::kTestTypeIdInGoogleTest;
176 using testing::internal::scoped_ptr;
179 using testing::internal::CaptureStdout;
180 using testing::internal::GetCapturedStdout;
184 using testing::internal::ThreadWithParam;
513 testing::internal::Random random(42);
518 random.Generate(testing::internal::Random::kMaxRange + 1),
525 testing::internal::Random random(12345);
530 testing::internal::Random random2(testing::internal::Random::kMaxRange);
542 testing::internal::Random random(kSeed);
614 testing::internal::Random random(1);
685 testing::internal::Random random_;
797 EXPECT_LE(sizeof(testing::internal::AssertHelper), sizeof(void*));
1454 // The test fixture for testing TestResult.
1805 using testing::internal::Int32FromGTestEnv;
1946 class ShouldShardTest : public testing::Test {
2058 // For the same reason we are not explicitly testing everything in the
2113 // explanation why it succeeds. Needed for testing that
2316 // Some helper functions for testing using overloaded/template
2351 // Some helper functions for testing using overloaded/template
2506 // Tests for ::testing::IsSubstring().
2570 // Tests for ::testing::IsNotSubstring().
2652 typedef typename testing::internal::FloatingPoint<RawType> Floating;
2709 // Instantiates FloatingPointTest for testing *_FLOAT_EQ.
2882 // Instantiates FloatingPointTest for testing *_DOUBLE_EQ.
3113 typedef testing::Types<int, double> NumericTypes;
3369 EXPECT_PRED_FORMAT2(testing::IsSubstring, "some fatal failure",
3371 EXPECT_PRED_FORMAT2(testing::IsSubstring, "it does",
3388 EXPECT_PRED_FORMAT2(testing::IsSubstring, "some fatal failure",
3390 EXPECT_PRED_FORMAT2(testing::IsSubstring, "it does",
3392 EXPECT_PRED_FORMAT2(testing::IsSubstring, "other failure",
3407 EXPECT_PRED_FORMAT2(testing::IsSubstring, "foo",
3409 EXPECT_PRED_FORMAT2(testing::IsSubstring, "my message",
3770 CASE_B = testing::internal::kMaxBiggestInt,
4026 namespace testing {
4059 } // namespace testing
4352 // streamed to testing::Message.
4672 // The test fixture for testing the life cycle of Test objects.
4870 // Tests streaming NULL pointers to testing::Message.
4885 // Tests streaming wide strings to testing::Message.
4909 // This line tests that we can define tests in the testing namespace.
4910 namespace testing {
5016 // The InitGoogleTestTest test case tests testing::InitGoogleTest().
5157 // Fixture for testing InitGoogleTest().
5213 const bool saved_help_flag = ::testing::internal::g_help_flag;
5214 ::testing::internal::g_help_flag = false;
5236 EXPECT_EQ(should_print_help, ::testing::internal::g_help_flag);
5249 ::testing::internal::g_help_flag = saved_help_flag;
5991 } // namespace testing
5994 // has the name "testing" and is nested in another namespace.
5996 namespace testing {
5998 // Makes sure that TEST knows to use ::testing::Test instead of
5999 // ::my_namespace::testing::Test.
6002 // Makes sure that an assertion knows to use ::testing::Message instead of
6003 // ::my_namespace::testing::Message.
6007 // ::testing::AssertionResult instead of
6008 // ::my_namespace::testing::AssertionResult.
6022 } // namespace testing
6299 testing::UnitTest* const unit_test = testing::UnitTest::GetInstance();
6336 return testing::Test::HasNonfatalFailure();
6377 static bool HasFailureHelper() { return testing::Test::HasFailure(); }