/mipi-sys-t-3.6.0-3.5.0/library/test/unit/ |
D | mipi_syst_printf_test.cpp | 89 MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, (char*) 0) in TEST_F() 97 MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "") in TEST_F() 102 MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%%") in TEST_F() 107 MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "hello world !") in TEST_F() 115 MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, 0) in TEST_F() 119 MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%b", 1) in TEST_F() 125 MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, tooLong.c_str(), 1) in TEST_F() 131 MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%s %s", tooLong.c_str(), tooLong.c_str()) in TEST_F() 138 MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%+d", 0x11223344) in TEST_F() 142 MIPI_SYST_PRINTF(ph, MIPI_SYST_SEVERITY_INFO, "%-d", 0x11223344) in TEST_F() [all …]
|
D | mipi_syst_catid32_test.cpp | 126 MIPI_SYST_CATALOG32_0(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE) in TEST_F() 131 MIPI_SYST_CATALOG32_1(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1) in TEST_F() 136 MIPI_SYST_CATALOG32_2(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2) in TEST_F() 141 MIPI_SYST_CATALOG32_3(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3) in TEST_F() 146 MIPI_SYST_CATALOG32_4(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4) in TEST_F() 151 MIPI_SYST_CATALOG32_5(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4, 5) in TEST_F() 156 MIPI_SYST_CATALOG32_6(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1, 2, 3, 4, 5, 6) in TEST_F() 167 MIPI_SYST_CATALOG32_0_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE) in TEST_F() 172 MIPI_SYST_CATALOG32_0_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE) in TEST_F() 179 MIPI_SYST_CATALOG32_1_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xCAFEBABE, 1) in TEST_F() [all …]
|
D | mipi_syst_catid64_test.cpp | 123 MIPI_SYST_CATALOG64_0(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull) in TEST_F() 128 MIPI_SYST_CATALOG64_1(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1) in TEST_F() 133 MIPI_SYST_CATALOG64_2(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2) in TEST_F() 138 MIPI_SYST_CATALOG64_3(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3) in TEST_F() 143 MIPI_SYST_CATALOG64_4(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3, 4) in TEST_F() 148 MIPI_SYST_CATALOG64_5(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3, 4, 5) in TEST_F() 153 MIPI_SYST_CATALOG64_6(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1, 2, 3, 4, 5, 6) in TEST_F() 164 MIPI_SYST_CATALOG64_0_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull) in TEST_F() 169 MIPI_SYST_CATALOG64_0_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull) in TEST_F() 176 MIPI_SYST_CATALOG64_1_LOCADDR(ph, MIPI_SYST_SEVERITY_WARNING, 0xDECAFCAFEBABEull, 1) in TEST_F() [all …]
|
D | mipi_syst_string_test.cpp | 86 MIPI_SYST_DEBUG(ph, MIPI_SYST_SEVERITY_WARNING, NULL, 1) in TEST_F() 94 MIPI_SYST_FUNC_ENTER(ph, MIPI_SYST_SEVERITY_WARNING) in TEST_F() 102 MIPI_SYST_FUNC_EXIT(ph, MIPI_SYST_SEVERITY_WARNING) in TEST_F() 111 MIPI_SYST_DEBUG(ph, MIPI_SYST_SEVERITY_WARNING, "Hello world!" , 12) in TEST_F() 115 MIPI_SYST_ENABLE_HANDLE_CHECKSUM(ph,1); in TEST_F() 119 MIPI_SYST_DEBUG(ph, MIPI_SYST_SEVERITY_WARNING, "Hello world!" , 12) in TEST_F() 124 MIPI_SYST_DEBUG(ph, MIPI_SYST_SEVERITY_WARNING, "Hello world!", 12) in TEST_F() 127 MIPI_SYST_ENABLE_HANDLE_CHECKSUM(ph,0); in TEST_F() 135 MIPI_SYST_SET_HANDLE_GUID_UNIT(ph, aguid, 7); in TEST_F() 138 MIPI_SYST_DEBUG(ph, MIPI_SYST_SEVERITY_USER1, "Hello world!" , 12) in TEST_F() [all …]
|
D | mipi_syst_init_test.cpp | 170 struct mipi_syst_header* ph = &syst_hdr; in TEST_F() local 172 EXPECT_EQ(ph->systh_version, MIPI_SYST_VERSION_CODE) << "syst header has unexpected version"; in TEST_F() 174 EXPECT_EQ(ph->systh_inith, &platform_handle_init) << "syst header handle init hook wrong"; in TEST_F() 175 EXPECT_EQ(ph->systh_releaseh, &platform_handle_release) << "syst header handle release hook wrong"; in TEST_F() 178 EXPECT_EQ(ph->systh_writer, &mipi_syst_scatter_write) << "syst header writer function wrong "; in TEST_F() 205 struct mipi_syst_handle* ph; in TEST_F() local 207 ph = MIPI_SYST_INIT_HANDLE(&sh, NULL); in TEST_F() 208 MIPI_SYST_SET_HANDLE_MODULE_UNIT(ph, 1,2); in TEST_F() 210 ASSERT_EQ(ph, &sh) << "static allocation did not return passed pointer"; in TEST_F() 212 EXPECT_EQ(&syst_hdr, ph->systh_header) << "header not set in handle"; in TEST_F() [all …]
|
D | mipi_syst_raw_test.cpp | 86 MIPI_SYST_WRITE(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, NULL, 0) in TEST_F() 99 MIPI_SYST_WRITE(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, &byte, 1) in TEST_F() 103 MIPI_SYST_WRITE(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, &word, 2) in TEST_F() 107 MIPI_SYST_WRITE(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, &dword, 4) in TEST_F() 111 MIPI_SYST_WRITE(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, &qword, 8) in TEST_F() 117 MIPI_SYST_WRITE_LOC16(ph, MIPI_SYST_SEVERITY_INFO, 0xabcd, 0x3f, &byte, 1) in TEST_F() 122 MIPI_SYST_WRITE_LOC32(ph, MIPI_SYST_SEVERITY_INFO, 0x12345678aabbccddull, 0x3f, &byte, 1) in TEST_F() 128 MIPI_SYST_WRITE_LOCADDR(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, &byte, 1) in TEST_F() 133 MIPI_SYST_WRITE_LOCADDR(ph, MIPI_SYST_SEVERITY_INFO, 0x3f, &byte, 1) in TEST_F() 146 MIPI_SYST_SHORT32(ph, 0x02345678); in TEST_F() [all …]
|
D | mipi_syst_build_test.cpp | 89 MIPI_SYST_BUILD(ph, MIPI_SYST_SEVERITY_MAX, 0x1122334455667788ull, "some text", 10) in TEST_F() 93 MIPI_SYST_BUILD(ph, MIPI_SYST_SEVERITY_MAX, 0x1122334455667788ull, NULL, 0) in TEST_F() 101 MIPI_SYST_BUILD_LOCADDR(ph, MIPI_SYST_SEVERITY_MAX, 0x1122334455667788ull, "some text", 10) in TEST_F() 106 MIPI_SYST_BUILD_LOCADDR(ph, MIPI_SYST_SEVERITY_MAX, 0x1122334455667788ull, "some text", 10) in TEST_F() 114 MIPI_SYST_BUILD_LOC16(ph, MIPI_SYST_SEVERITY_MAX, 0xabcd, 0x1122334455667788ull, "some text", 10) in TEST_F() 119 …MIPI_SYST_BUILD_LOC32(ph, MIPI_SYST_SEVERITY_MAX, 0xaabbccdd, 0x1122334455667788ull, "some text", … in TEST_F() 153 MIPI_SYST_BUILD_COMPACT64(ph, 0x0000000000000000ull); in TEST_F() 162 MIPI_SYST_BUILD_COMPACT64(ph, 0x3FFFFFFFFFFFFFull); in TEST_F() 176 MIPI_SYST_BUILD_COMPACT32(ph, 0x00000000ull); in TEST_F() 185 MIPI_SYST_BUILD_COMPACT32(ph, 0x3FFFFF); in TEST_F()
|
D | mipi_syst_disable_test.cpp | 51 struct mipi_syst_handle* ph; in TEST_F() local 53 ph = MIPI_SYST_ALLOC_HANDLE((void*)0xC0FFEBABE ); in TEST_F() 56 MIPI_SYST_SET_HANDLE_MODULE_UNIT(ph, 1,2); in TEST_F() 60 MIPI_SYST_DELETE_HANDLE(ph); in TEST_F()
|
D | mipi_syst_gtest.h | 129 ph = MIPI_SYST_INIT_HANDLE(&sh, &origin); in SetUp() 130 MIPI_SYST_SET_HANDLE_MODULE_UNIT(ph, 1,2); in SetUp() 131 MIPI_SYST_ENABLE_HANDLE_LENGTH(ph, 1); in SetUp() 137 MIPI_SYST_DELETE_HANDLE(ph); in TearDown() 144 struct mipi_syst_handle* ph; variable
|
D | mipi_syst_clock_test.cpp | 82 MIPI_SYST_ENABLE_HANDLE_TIMESTAMP(ph, 0); in TEST_F() 86 MIPI_SYST_CLOCK_SYNC(ph, MIPI_SYST_PLATFORM_CLOCK(), MIPI_SYST_PLATFORM_FREQ()) in TEST_F()
|