/foundation/resourceschedule/device_usage_statistics/test/unittest/ |
H A D | bundle_active_total_test.cpp | 67 * @tc.desc: test the interface of bundle_active_account_helper 82 * @tc.desc: test the interface of bundle_active_continuous_task_observer 93 BundleActiveContinuousTaskObserver test; in HWTEST_F() local 94 test.Init(reportHandler); in HWTEST_F() 95 test.Init(reportHandler1); in HWTEST_F() 99 test.OnContinuousTaskStart(continuousTaskCallbackInfo); in HWTEST_F() 101 test.ReportContinuousTaskEvent(continuousTaskCallbackInfo, true); in HWTEST_F() 102 test.ReportContinuousTaskEvent(continuousTaskCallbackInfo, false); in HWTEST_F() 105 test.GetBundleMgr(); in HWTEST_F() 106 test in HWTEST_F() 124 BundleActiveBundleMgrHelper test; HWTEST_F() local 178 BundleActiveAppStateObserver test; HWTEST_F() local 204 BundleActiveUsageDatabase test; HWTEST_F() local 217 BundleActiveUsageDatabase test; HWTEST_F() local 232 BundleActiveUsageDatabase test; HWTEST_F() local 245 BundleActiveUsageDatabase test; HWTEST_F() local 266 BundleActiveUsageDatabase test; HWTEST_F() local 283 BundleActiveUsageDatabase test; HWTEST_F() local 322 BundleActiveBinarySearch test; HWTEST_F() local [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/test/src/api/ |
H A D | ObjectApiTest.cpp | 57 * @tc.desc: test Values function 63 TestInterfaceAPI test; in HWTEST_F() local 64 test.First(1); in HWTEST_F() 65 EXPECT_EQ(test.First()->GetValue(), 1); in HWTEST_F() 66 EXPECT_EQ(test.Third()->GetValue(), 0); in HWTEST_F() 67 test.MyIntArray({ 1, 2 }); in HWTEST_F() 68 EXPECT_EQ(test.MyIntArray()->GetValue(), (BASE_NS::vector<int> { 1, 2 })); in HWTEST_F() 69 EXPECT_EQ(test.MyConstIntArray()->GetValue(), (BASE_NS::vector<int> { 1, 2, 3, 4, 5 })); in HWTEST_F() 70 test.First(GetValue(test in HWTEST_F() [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/ipc_framework/cRPC/unittest/ |
H A D | serial_test.cpp | 29 ASSERT_EQ(WriteBegin(test, 0), -1); in HWTEST_F() 32 ASSERT_EQ(WriteFunc(test, "SerialTest"), -1); in HWTEST_F() 35 ASSERT_EQ(WriteInt(test, 100), -1); in HWTEST_F() 38 ASSERT_EQ(WriteLong(test, 1234567890L), -1); in HWTEST_F() 41 ASSERT_EQ(WriteInt64(test, 12345678909832323LL), -1); in HWTEST_F() 44 ASSERT_EQ(WriteDouble(test, 3.14159), -1); in HWTEST_F() 47 ASSERT_EQ(WriteChar(test, 'a'), -1); in HWTEST_F() 50 ASSERT_EQ(WriteStr(test, "Hello, world"), -1); in HWTEST_F() 54 ASSERT_EQ(WriteUStr(test, (const unsigned char *)"2c:f0:xx:xx:xx:be", count), -1); in HWTEST_F() 57 ASSERT_EQ(WriteEnd(test), in HWTEST_F() [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_base/ |
H A D | serial_test.cpp | 29 ASSERT_EQ(WriteBegin(test, 0), -1); in HWTEST_F() 32 ASSERT_EQ(WriteFunc(test, "SerialTest"), -1); in HWTEST_F() 35 ASSERT_EQ(WriteInt(test, 100), -1); in HWTEST_F() 38 ASSERT_EQ(WriteLong(test, 1234567890L), -1); in HWTEST_F() 41 ASSERT_EQ(WriteInt64(test, 12345678909832323LL), -1); in HWTEST_F() 44 ASSERT_EQ(WriteDouble(test, 3.14159), -1); in HWTEST_F() 47 ASSERT_EQ(WriteChar(test, 'a'), -1); in HWTEST_F() 50 ASSERT_EQ(WriteStr(test, "Hello, world"), -1); in HWTEST_F() 54 ASSERT_EQ(WriteUStr(test, (const unsigned char *)"2c:f0:xx:xx:xx:be", count), -1); in HWTEST_F() 57 ASSERT_EQ(WriteEnd(test), in HWTEST_F() [all...] |
/foundation/arkui/ui_appearance/test/unittest/ |
H A D | ui_appearance_test.cpp | 85 auto test = DarkModeTest::GetUiAppearanceAbilityTest(); in HWTEST_F() local 86 auto result = test->SetDarkMode(UiAppearanceAbilityInterface::DarkMode::ALWAYS_DARK); in HWTEST_F() 88 auto mode = test->GetDarkMode(); in HWTEST_F() 91 result = test->SetDarkMode(UiAppearanceAbilityInterface::DarkMode::ALWAYS_LIGHT); in HWTEST_F() 93 mode = test->GetDarkMode(); in HWTEST_F() 106 auto test = DarkModeTest::GetUiAppearanceAbilityTest(); in HWTEST_F() local 107 auto result = test->SetDarkMode(UiAppearanceAbilityInterface::DarkMode::ALWAYS_DARK); in HWTEST_F() 109 auto mode = test->GetDarkMode(); in HWTEST_F() 112 result = test->SetDarkMode(UiAppearanceAbilityInterface::DarkMode::ALWAYS_DARK); in HWTEST_F() 114 mode = test in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/manager/ |
H A D | shared_overlay_manager_test_ng.cpp | 23 #include "test/mock/core/render/mock_render_context.h" 298 * @tc.steps: step3. Call StopSharedTransition to test it in HWTEST_F() 318 SharedTransitionStatic test("test", option); in HWTEST_F() 319 test.SetSharedNode(nullptr, nullptr); in HWTEST_F() 320 EXPECT_FALSE(test.CreateAnimation()); in HWTEST_F() 335 SharedTransitionExchange test("test", option); in HWTEST_F() 336 test.SetSharedNode(WeakPtr<FrameNode>(frameNode), WeakPtr<FrameNode>(frameNode)); in HWTEST_F() 337 test in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/tests/core/frame/unittest/ |
H A D | softbus_server_stub_test.cpp | 52 char g_mySessionName[TEST_SESSION_NAME_SIZE_MAX] = "com.test.trans.session"; 53 char g_peerSessionName[TEST_SESSION_NAME_SIZE_MAX] = "com.test.trans.session.sendfile"; 54 char g_peerDeviceId[TEST_DEVICE_ID_SIZE_MAX] = "com.test.trans.session.sendfile"; 55 char g_groupId[TEST_GROUP_ID_SIZE_MAX] = "com.test.trans.session.sendfile"; 56 char g_myPkgName[TEST_PKG_NAME_SIZE_MAX] = "test"; 227 char test[10] = "test"; in HWTEST_F() local 241 datas.WriteCString(test); in HWTEST_F() 264 datas.WriteInterfaceToken(std::u16string(u"test")); in HWTEST_F() 269 datas.WriteInterfaceToken(std::u16string(u"test")); in HWTEST_F() 285 char test[10] = "test"; HWTEST_F() local 377 char test[10] = "test"; HWTEST_F() local 412 char test[10] = "test"; HWTEST_F() local 496 char test[10] = "test"; HWTEST_F() local 551 char test[10] = "test"; HWTEST_F() local 603 char test[10] = "test"; HWTEST_F() local 647 char test[10] = "test"; HWTEST_F() local 675 char test[10] = "test"; HWTEST_F() local 732 char test[10] = "test"; HWTEST_F() local 779 char test[10] = "test"; HWTEST_F() local 817 char test[10] = "test"; HWTEST_F() local 862 char test[10] = "test"; HWTEST_F() local 899 char test[10] = "test"; HWTEST_F() local 946 char test[10] = "test"; HWTEST_F() local 980 char test[10] = "test"; HWTEST_F() local 1002 char test[10] = "test"; HWTEST_F() local 1046 char test[10] = "test"; HWTEST_F() local 1213 char test[10] = "test"; HWTEST_F() local 1258 char test[10] = "test"; HWTEST_F() local 1308 char test[10] = "test"; HWTEST_F() local 1360 char test[10] = "test"; HWTEST_F() local 1414 char test[10] = "test"; HWTEST_F() local 1468 char test[10] = "test"; HWTEST_F() local 1524 char test[10] = "test"; HWTEST_F() local 1581 char test[10] = "test"; HWTEST_F() local 1664 char test[10] = "test"; HWTEST_F() local [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/idl_client/unittest/ |
H A D | i_wifi_test.cpp | 352 char test[] = "102\t100\t101\t"; in HWTEST_F() local 354 mTestContext->oneProcess = test; in HWTEST_F() 356 mTestContext->nSize = strlen(test) + 1; in HWTEST_F() 364 char test[] = "103\t1"; in HWTEST_F() local 365 mTestContext->oneProcess = test; in HWTEST_F() 367 mTestContext->nSize = strlen(test) + 1; in HWTEST_F() 391 char test[] = "104\t1\t"; in HWTEST_F() local 392 mTestContext->oneProcess = test; in HWTEST_F() 394 mTestContext->nSize = strlen(test) + 1; in HWTEST_F() 406 char test[] in HWTEST_F() local 433 char test[] = "106\\t1\\t"; HWTEST_F() local 442 char test[] = "107\\t1"; HWTEST_F() local 459 char test[] = "108\\t1"; HWTEST_F() local 486 char test[] = "109\\tnone"; HWTEST_F() local 509 char test[] = "110\\t8"; HWTEST_F() local 523 char test[] = "111\\t8"; HWTEST_F() local 532 char test[] = "112\\t8"; HWTEST_F() local 550 char test[] = "113\\t8\\t"; HWTEST_F() local 563 char test[] = "114\\t8\\t"; HWTEST_F() local 576 char test[] = "115\\t8\\t"; HWTEST_F() local 589 char test[] = "116\\t8\\t"; HWTEST_F() local 602 char test[] = "117\\t8\\t"; HWTEST_F() local 615 char test[] = "118\\t8"; HWTEST_F() local 629 char test[] = "119\\t"; HWTEST_F() local 642 char test[] = "120\\t8"; HWTEST_F() local 692 char test[] = "121\\taddress"; HWTEST_F() local 718 char test[] = "122\\t8"; HWTEST_F() local 741 char test[] = "123\\t"; HWTEST_F() local 754 char test[] = "124\\t8"; HWTEST_F() local 772 char test[] = "125\\t8"; HWTEST_F() local 815 char test[] = "126\\t8"; HWTEST_F() local 838 char test[] = "127\\t"; HWTEST_F() local 851 char test[] = "128\\treason"; HWTEST_F() local 869 char test[] = "129\\t8"; HWTEST_F() local 912 char test[] = "130\\t8"; HWTEST_F() local 931 char test[] = "131\\taddress"; HWTEST_F() local 949 char test[] = "132\\taddress\\t"; HWTEST_F() local 962 char test[] = "133\\taddress\\t"; HWTEST_F() local 975 char test[] = "134\\taddress"; HWTEST_F() local 998 char test[] = "135\\t"; HWTEST_F() local 1007 char test[] = "136\\t5"; HWTEST_F() local 1045 char test[] = "137\\t"; HWTEST_F() local 1058 char test[] = "138\\taddress"; HWTEST_F() local 1076 char test[] = "139\\taddress\\t"; HWTEST_F() local 1089 char test[] = "140\\t1"; HWTEST_F() local 1145 char test[] = "141\\t5"; HWTEST_F() local 1173 char test[] = "142\\t5"; HWTEST_F() local 1183 char test[] = "136\\t5\\taddress\\t10\\t123abcABC*\\t"; HWTEST_F() local 1198 char test[] = "144\\t5"; HWTEST_F() local [all...] |
/foundation/ability/idl_tool/test/rust/moduletest/client/src/ |
H A D | main.rs | 59 #[test] 61 let name = CString::new("com.ipc.test").expect("process name is invalid"); in init_access_token() 80 #[test] 87 #[test] 94 #[test] 101 #[test] 109 #[test] 116 #[test] 123 #[test] 130 #[test] [all...] |
/foundation/communication/ipc/interfaces/innerkits/rust/src/parcel/ |
H A D | exts.rs | 95 #[cfg(test)] 96 mod test { modules 106 /// UT test cases for `Serialize` 112 #[test] 122 let test = TestStruct { in serialize_test() 127 msg.write(&test).unwrap(); in serialize_test() 132 /// UT test cases for `Deserialize` 138 #[test] 149 let test = TestStruct { in deserialize_test() 154 msg.write(&test in deserialize_test() [all...] |
/foundation/graphic/graphic_3d/lume/metaobject/test/src/base/ |
H A D | SharedPtrTest.cpp | 42 * @tc.desc: test SharedPtrCanBeConvertedToSharedPtrWithConstType function 57 * @tc.desc: test SharedPtrCanBeReturnedToSharedPtrWithConstType function 74 * @tc.desc: test DefaultConstructedSharedPtrIsEmpty function 91 * @tc.desc: test CopiedSharedPtrExtendObjectLifetime function 109 * @tc.desc: test CopyConstructedSharedPtrExtendObjectLifetime function 135 * @tc.desc: test MoveMemoryLeakAndAssert function 141 CountType test; in HWTEST_F() local 143 BASE_NS::shared_ptr<CountType> p(&test, CountDeleter); in HWTEST_F() 148 EXPECT_EQ(test.count, 0); in HWTEST_F() 153 * @tc.desc: test Expire 230 ITestInterface test; HWTEST_F() local 238 ITestInterface test; HWTEST_F() local 247 ITestInterface test; HWTEST_F() local [all...] |
/foundation/communication/netstack/test/unittest/http/cache/ |
H A D | Base64Test.cpp | 60 for (const auto &test : CODE_MAP) { in HWTEST_F() 61 EXPECT_EQ(Encode(test.first), test.second); in HWTEST_F() 62 EXPECT_EQ(Decode(test.second), test.first); in HWTEST_F()
|
/foundation/communication/ipc/ipc/native/test/unittest/common/ |
H A D | ipc_block_thread_unittest.cpp | 55 bool test = false;
in HWTEST_F() local 56 if (!test) {
in HWTEST_F() 58 test = true;
in HWTEST_F() 60 EXPECT_EQ(test, true);
in HWTEST_F()
|
/foundation/distributedhardware/distributed_camera/services/cameraservice/base/test/unittest/common/base/ |
H A D | dcamera_sink_frame_info_test.cpp | 35 "type": "test", 46 "index": "test", 57 "pts": "test", 68 "startEncodeT": "test", 79 "finishEncodeT": "test", 90 "sendT": "test", 100 "sendT": "test", 111 "ver": "test",
|
/foundation/arkui/ace_engine/test/unittest/core/svg/ |
H A D | svg_manager_test_ng.cpp | 24 #include "test/mock/base/mock_task_executor.h" 25 #include "test/mock/core/animation/mock_animation_manager.h" 26 #include "test/mock/core/common/mock_container.h" 27 #include "test/mock/core/pipeline/mock_pipeline_context.h" 28 #include "test/mock/core/rosen/mock_canvas.h" 86 "<image id=\"image001\" x=\"150\" y=\"20\" width=\"100\" height=\"100\" href=\"test.png\" />" 90 const std::string URL_1 = "file://data/data/com.example.test/res/example.svg"; 91 const std::string URL_2 = "data://data/data/com.example.test/res/exampleAlt.jpg"; 102 * @tc.desc: test function of SvgImage. 122 * @tc.desc: test functio 227 std::string test = "test.svg"; HWTEST_F() local [all...] |
/foundation/systemabilitymgr/samgr/services/samgr/native/test/unittest/rust/ |
H A D | rust_samgr_test.rs | 48 #[test] 53 #[test] 64 #[test] 78 #[test] 90 #[test]
|
/foundation/arkui/ace_engine/test/unittest/core/layout/ |
H A D | layout_wrapper_build_test_ng.cpp | 30 #include "test/unittest/core/syntax/mock_lazy_for_each_builder.h" 54 auto rowFrameNode = FrameNode::CreateFrameNode("test", 0, AceType::MakeRefPtr<LinearLayoutPattern>(false)); in CreateLayoutWrapper() 81 auto test = wrapperBuilder->GetOrCreateWrapperByIndex(INDEX); in HWTEST_F() local 82 EXPECT_EQ(test, nullptr); in HWTEST_F() 156 auto test = wrapperBuilder->GetOrCreateWrapperByIndex(INDEX); in HWTEST_F() local 157 EXPECT_EQ(test, nullptr); in HWTEST_F() 175 test = wrapperBuilder->GetOrCreateWrapperByIndex(INDEX); in HWTEST_F() 176 EXPECT_NE(test, nullptr); in HWTEST_F()
|
/foundation/communication/bluetooth_service/test/unittest/gatt/ |
H A D | gatt_manager_test.cpp | 125 GattManager test; in HWTEST_F() local 127 EXPECT_EQ((int)test.GetDevicesByStates(states).size(), 0); in HWTEST_F() 146 GattManager test; in HWTEST_F() local 148 EXPECT_EQ((int)test.GetConnectedDevices().size(), 0); in HWTEST_F()
|
/foundation/distributeddatamgr/relational_store/test/native/dataability/unittest/ |
H A D | data_ability_predicates_test.cpp | 45 * @tc.desc: test DataAbilityPredicates()
57 * @tc.desc: test DataAbilityPredicates()
95 * @tc.desc: test DataAbilityPredicates
128 * @tc.desc: test DataAbilityPredicates(std::string rawSelection);
142 * @tc.desc: test DataAbilityPredicates(std::string rawSelection);
156 * @tc.desc: test DataAbilityPredicates(std::string rawSelection);
170 * @tc.desc: test DataAbilityPredicates(OHOS::Parcel *source)
182 * @tc.desc: test DataAbilityPredicates(OHOS::Parcel *source)
201 * @tc.desc: test DataAbilityPredicates(OHOS::Parcel *source)
228 * @tc.desc: test DataAbilityPredicate 327 bool test = dataAbilityPredicatesWrite->TestBehavior(OHOS::Parcelable::BehaviorFlag::HOLD_OBJECT); HWTEST_F() local [all...] |
/foundation/ability/idl_tool/test/hdi_unittest/ |
H A D | hdi_hash_test.py | 50 def test(): member in Tests 53 print_success("[===========] start {} test".format(test_case_num)) 57 if obj.test(): 59 print_success("[ PASSED ] {} test".format(success_case_num)) 62 print_failure("[ FAILED ] {} test".format(failure_case_num)) 67 print_failure("test case set up failed!") 69 Tests.test()
|
H A D | hdi_dump_ast_test.py | 50 def test(): member in Tests 53 print_success("[===========] start {} test".format(test_case_num)) 57 if obj.test(): 59 print_success("[ PASSED ] {} test".format(success_case_num)) 62 print_failure("[ FAILED ] {} test".format(failure_case_num)) 67 print_failure("test case set up failed!") 69 Tests.test()
|
H A D | hdi_gen_test.py | 50 def test():
member in Tests 53 print_success("[===========] start {} test".format(test_case_num))
57 if obj.test():
59 print_success("[ PASSED ] {} test".format(success_case_num))
62 print_failure("[ FAILED ] {} test".format(failure_case_num))
67 print_failure("test case set up failed!")
69 Tests.test()
|
/foundation/multimodalinput/input/service/rust/src/ |
H A D | lib.rs | 865 #[test] 878 #[test] 891 #[test] 906 /* test for touchpad */ 907 #[test] 920 #[test] 933 #[test] 948 /* test for touchpad klv */ 949 #[test] 964 #[test] [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_xcollie_test.cpp | 38 * @tc.desc: test of RSXCollie 45 RSXCollie test("RSXCollieTest"); in HWTEST_F() 46 ASSERT_EQ(test.tag_, "render_service:RSXCollieTest"); in HWTEST_F()
|
/foundation/multimedia/image_framework/frameworks/innerkitsimpl/test/unittest/plugin_test/ |
H A D | webp_plugin_export_test.cpp | 31 * @tc.desc: test PluginExternalCreate
38 auto test = PluginExternalCreate(testStr);
in HWTEST_F() local 39 bool result = (test == nullptr);
in HWTEST_F()
|