Home
last modified time | relevance | path

Searched refs:testState (Results 1 - 11 of 11) sorted by relevance

/base/security/access_token/test/fuzztest/innerkits/accesstoken/allochaptoken_fuzzer/
H A Dallochaptoken_fuzzer.cpp51 PermissionStateFull testState; in AllocHapTokenFuzzTest() local
52 testState.permissionName = permissionName; in AllocHapTokenFuzzTest()
53 testState.isGeneral = true; in AllocHapTokenFuzzTest()
54 testState.resDeviceID = {fuzzData.GenerateRandomString()}; in AllocHapTokenFuzzTest()
55 testState.grantStatus = {PermissionState::PERMISSION_GRANTED}; in AllocHapTokenFuzzTest()
56 testState.grantFlags = {1}; in AllocHapTokenFuzzTest()
67 .permStateList = {testState} in AllocHapTokenFuzzTest()
/base/security/access_token/test/fuzztest/innerkits/accesstoken/inithaptoken_fuzzer/
H A Dinithaptoken_fuzzer.cpp54 PermissionStateFull testState; in InitHapTokenFuzzTest() local
55 testState.permissionName = permissionName; in InitHapTokenFuzzTest()
56 testState.isGeneral = true; in InitHapTokenFuzzTest()
57 testState.resDeviceID = {fuzzData.GenerateRandomString()}; in InitHapTokenFuzzTest()
58 testState.grantStatus = {PermissionState::PERMISSION_GRANTED}; in InitHapTokenFuzzTest()
59 testState.grantFlags = {1}; in InitHapTokenFuzzTest()
70 .permStateList = {testState} in InitHapTokenFuzzTest()
/base/security/access_token/test/fuzztest/innerkits/accesstoken/updatehaptoken_fuzzer/
H A Dupdatehaptoken_fuzzer.cpp52 PermissionStateFull testState; in UpdateHapTokenFuzzTest() local
53 testState.permissionName = permissionName; in UpdateHapTokenFuzzTest()
54 testState.isGeneral = true; in UpdateHapTokenFuzzTest()
55 testState.resDeviceID = {fuzzData.GenerateRandomString()}; in UpdateHapTokenFuzzTest()
56 testState.grantStatus = {PermissionState::PERMISSION_GRANTED}; in UpdateHapTokenFuzzTest()
57 testState.grantFlags = {1}; in UpdateHapTokenFuzzTest()
62 .permStateList = {testState} in UpdateHapTokenFuzzTest()
/base/print/print_fwk/test/unittest/service_test/
H A Dprint_callback_proxy_test.cpp127 auto testState = static_cast<uint32_t>(PRINTER_ADDED); in HWTEST_F() local
132 EXPECT_CALL(*service, OnCallback(testState, in HWTEST_F()
140 EXPECT_TRUE(proxy->OnCallback(testState, testInfo)); in HWTEST_F()
158 auto testState = static_cast<uint32_t>(PRINTER_ADDED); in HWTEST_F() local
163 EXPECT_CALL(*service, OnCallback(testState, in HWTEST_F()
171 EXPECT_FALSE(proxy->OnCallback(testState, testInfo)); in HWTEST_F()
189 auto testState = static_cast<uint32_t>(PRINT_JOB_RUNNING); in HWTEST_F() local
194 EXPECT_CALL(*service, OnCallback(testState, in HWTEST_F()
202 EXPECT_TRUE(proxy->OnCallback(testState, testJob)); in HWTEST_F()
220 auto testState in HWTEST_F() local
257 uint32_t testState = 0; HWTEST_F() local
281 uint32_t testState = 0; HWTEST_F() local
307 uint32_t testState = 0; HWTEST_F() local
[all...]
H A Dprint_service_stub_test.cpp629 uint32_t testState = static_cast<uint32_t>(PRINTER_ADDED); in HWTEST_F() local
633 EXPECT_TRUE(data.WriteUint32(testState)); in HWTEST_F()
655 uint32_t testState = static_cast<uint32_t>(PRINT_JOB_COMPLETED); in HWTEST_F() local
660 EXPECT_TRUE(data.WriteUint32(testState)); in HWTEST_F()
/base/print/print_fwk/test/unittest/fwk_inner_napi_test/
H A Dprint_callback_stub_test.cpp126 auto testState = static_cast<uint32_t>(PRINTER_ADDED); in HWTEST_F() local
132 EXPECT_TRUE(data.WriteUint32(testState)); in HWTEST_F()
136 EXPECT_CALL(*callback, OnCallback(testState, in HWTEST_F()
155 auto testState = static_cast<uint32_t>(PRINT_JOB_RUNNING); in HWTEST_F() local
161 EXPECT_TRUE(data.WriteUint32(testState)); in HWTEST_F()
165 EXPECT_CALL(*callback, OnCallback(testState, in HWTEST_F()
H A Dprint_service_proxy_test.cpp478 uint32_t testState = 1; in HWTEST_F() local
486 [&testPrinterId, &testState](const std::string &printerId, uint32_t state) { in HWTEST_F()
488 EXPECT_EQ(testState, state); in HWTEST_F()
497 proxy->UpdatePrinterState(testPrinterId, testState); in HWTEST_F()
509 uint32_t testState = 1; in HWTEST_F() local
518 [&testJobId, &testState, &testSubState](const std::string &jobId, in HWTEST_F()
521 EXPECT_EQ(testState, state); in HWTEST_F()
531 proxy->UpdatePrintJobStateOnlyForSystemApp(testJobId, testState, testSubState); in HWTEST_F()
H A Dprint_manager_client_test.cpp1057 uint32_t testState = 6; in HWTEST_F() local
1062 [&testPrinterId, &testState](const std::string &printerId, const uint32_t &state) { in HWTEST_F()
1064 EXPECT_EQ(testState, state); in HWTEST_F()
1071 int32_t ret = PrintManagerClient::GetInstance()->UpdatePrinterState(testPrinterId, testState); in HWTEST_F()
1136 uint32_t testState = 6; in HWTEST_F() local
1142 [&testPrinterId, &testState, &testSubState](const std::string &printerId, const uint32_t &state, in HWTEST_F()
1145 EXPECT_EQ(testState, state); in HWTEST_F()
1154 PrintManagerClient::GetInstance()->UpdatePrintJobStateOnlyForSystemApp(testPrinterId, testState, testSubState); in HWTEST_F()
2430 uint32_t testState = 6; in HWTEST_F() local
2431 mockPrintManagerClient.UpdatePrinterState(printerId, testState); in HWTEST_F()
[all...]
/base/security/access_token/test/fuzztest/services/accesstoken/updatehaptokenstub_fuzzer/
H A Dupdatehaptokenstub_fuzzer.cpp46 PermissionStateFull testState = {.permissionName = permissionName, in ConstructorParam() local
54 .permStateList = {testState}}; in ConstructorParam()
/base/web/webview/test/unittest/ohos_adapter/net_proxy_adapter_test/
H A Dnet_proxy_adapter_test.cpp112 PermissionStateFull testState = { member
140 .permStateList = {testState, testInternalState, testInternetState},
/base/security/access_token/interfaces/innerkits/accesstoken/test/unittest/src/
H A Daccesstoken_deny_test.cpp367 PermissionStateFull testState = { in HWTEST_F() local
378 .permStateList = {testState} in HWTEST_F()

Completed in 13 milliseconds