42 using ::testing::TestEventListeners;
43 using ::testing::TestWithParam;
44 using ::testing::UnitTest;
45 using ::testing::Test;
52 SUCCEED() <<
"This is a success.";
67 FAIL() <<
"Unexpected failure: Disabled test should not be run";
78 GTEST_SKIP() <<
"It is good practice to tell why you skip a test.";
83 GTEST_SKIP() <<
"It is good practice to tell why you skip a test.";
86 TEST(MixedResultTest, Succeeds) {
91 TEST(MixedResultTest, Fails) {
96 TEST(MixedResultTest, DISABLED_test) {
97 FAIL() <<
"Unexpected failure: Disabled test should not be run";
100 TEST(XmlQuotingTest, OutputsCData) {
101 FAIL() <<
"XML output: "
102 "<?xml encoding=\"utf-8\"><top><![CDATA[cdata text]]></top>";
107 TEST(InvalidCharactersTest, InvalidCharactersInMessage) {
108 FAIL() <<
"Invalid characters in brackets [\x1\x2]";
115 RecordProperty(
"TearDownTestSuite",
"aye");
120 RecordProperty(
"key_1",
"1");
124 RecordProperty(
"key_int", 1);
128 RecordProperty(
"key_1",
"1");
129 RecordProperty(
"key_2",
"2");
130 RecordProperty(
"key_3",
"3");
134 RecordProperty(
"key_1",
"1");
135 RecordProperty(
"key_1",
"2");
138 TEST(NoFixtureTest, RecordProperty) {
139 RecordProperty(
"key",
"1");
147 const std::string&
value) {
151 TEST(NoFixtureTest, ExternalUtilityThatCallsRecordIntValuedProperty) {
155 TEST(NoFixtureTest, ExternalUtilityThatCallsRecordStringValuedProperty) {
166 #if GTEST_HAS_TYPED_TEST
175 #if GTEST_HAS_TYPED_TEST_P
178 template <
typename T>
179 class TypeParameterizedTestSuite :
public Test {};
181 TYPED_TEST_P(TypeParameterizedTestSuite, HasTypeParamAttribute) {}
185 TypeParameterizedTestSuiteTypes);
188 int main(
int argc,
char** argv) {
191 if (argc > 1 && strcmp(argv[1],
"--shut_down_xml") == 0) {
192 TestEventListeners& listeners = UnitTest::GetInstance()->listeners();
193 delete listeners.Release(listeners.default_xml_generator());
internal::ValueArray< T...> Values(T...v)
REGISTER_TYPED_TEST_SUITE_P(FadBLASUnitTests, testSCAL1, testSCAL2, testSCAL3, testSCAL4, testCOPY1, testCOPY2, testCOPY3, testCOPY4, testAXPY1, testAXPY2, testAXPY3, testAXPY4, testDOT1, testDOT2, testDOT3, testDOT4, testNRM21, testNRM22, testGEMV1, testGEMV2, testGEMV3, testGEMV4, testGEMV5, testGEMV6, testGEMV7, testGEMV8, testGEMV9, testTRMV1, testTRMV2, testTRMV3, testTRMV4, testGER1, testGER2, testGER3, testGER4, testGER5, testGER6, testGER7, testGEMM1, testGEMM2, testGEMM3, testGEMM4, testGEMM5, testGEMM6, testGEMM7, testGEMM8, testGEMM9, testGEMM10, testSYMM1, testSYMM2, testSYMM3, testSYMM4, testSYMM5, testSYMM6, testSYMM7, testSYMM8, testSYMM9, testTRMM1, testTRMM2, testTRMM3, testTRMM4, testTRMM5, testTRMM6, testTRMM7, testTRSM1, testTRSM2, testTRSM3, testTRSM4, testTRSM5, testTRSM6, testTRSM7)
TYPED_TEST_P(FadBLASUnitTests, testSCAL1)
#define TEST_F(test_fixture, test_name)
static void TearDownTestSuite()
#define TEST(test_suite_name, test_name)
#define ASSERT_EQ(val1, val2)
internal::ProxyTypeList< Ts...> Types
static void SetUpTestSuite()
TYPED_TEST_SUITE(TypedTest, MyTypes)
TYPED_TEST(FunctionMockerTest, MocksVoidFunction)
TYPED_TEST_SUITE_P(FadBLASUnitTests)
#define EXPECT_EQ(val1, val2)
#define TEST_P(test_suite_name, test_name)
int RUN_ALL_TESTS() GTEST_MUST_USE_RESULT_
INSTANTIATE_TYPED_TEST_SUITE_P(CacheFad, FadOpsUnitTest, FadTypes)
GTEST_API_ void InitGoogleTest(int *argc, char **argv)
void ExternalUtilityThatCallsRecordProperty(const std::string &key, int value)
static void RecordProperty(const std::string &key, const std::string &value)
#define INSTANTIATE_TEST_SUITE_P(prefix, test_suite_name,...)