Lines Matching refs:JSAPIQueue
26 JSHandle<JSAPIQueue> CreateQueue(int capacaty = JSAPIQueue::DEFAULT_CAPACITY_LENGTH) in CreateQueue()
31 …JSHandle<JSAPIQueue> TestCommon(JSMutableHandle<JSTaggedValue>& value, std::string& queueValue, ui… in TestCommon()
34 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in TestCommon()
38 JSAPIQueue::Add(thread, jsQueue, value); in TestCommon()
46 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0()
55 JSHandle<JSAPIQueue> jsQueue = TestCommon(value, queueValue, DEFAULT_LENGTH); in HWTEST_F_L0()
57 EXPECT_EQ(JSAPIQueue::GetArrayLength(thread, jsQueue), DEFAULT_LENGTH); in HWTEST_F_L0()
79 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0()
82 EXPECT_EQ(JSAPIQueue::GetFirst(thread, jsQueue), JSTaggedValue::Undefined()); in HWTEST_F_L0()
83 EXPECT_EQ(JSAPIQueue::Pop(thread, jsQueue), JSTaggedValue::Undefined()); in HWTEST_F_L0()
89 JSAPIQueue::Add(thread, jsQueue, value); in HWTEST_F_L0()
93 EXPECT_EQ(JSAPIQueue::GetArrayLength(thread, jsQueue), DEFAULT_LENGTH); in HWTEST_F_L0()
97 JSHandle<JSTaggedValue>(thread, JSAPIQueue::GetFirst(thread, jsQueue)), value)); in HWTEST_F_L0()
103 JSHandle<JSTaggedValue>(thread, JSAPIQueue::Pop(thread, jsQueue)), value)); in HWTEST_F_L0()
104 EXPECT_EQ(JSAPIQueue::GetArrayLength(thread, jsQueue), (DEFAULT_LENGTH - i - 1U)); in HWTEST_F_L0()
114 JSHandle<JSAPIQueue> jsQueue = TestCommon(value, queueValue, DEFAULT_LENGTH); in HWTEST_F_L0()
116 JSHandle<TaggedArray> arrayKey = JSAPIQueue::OwnKeys(thread, jsQueue); in HWTEST_F_L0()
130 JSHandle<JSAPIQueue> jsQueue = TestCommon(value, queueValue, DEFAULT_LENGTH); in HWTEST_F_L0()
146 JSHandle<JSAPIQueue> jsQueue = TestCommon(value, queueValue, DEFAULT_LENGTH); in HWTEST_F_L0()
150 EXPECT_TRUE(JSAPIQueue::GetOwnProperty(thread, jsQueue, queueKey1)); in HWTEST_F_L0()
153 EXPECT_FALSE(JSAPIQueue::GetOwnProperty(thread, jsQueue, queueKey2)); in HWTEST_F_L0()
158 EXPECT_FALSE(JSAPIQueue::GetOwnProperty(thread, jsQueue, undefined)); in HWTEST_F_L0()
170 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0()
174 JSAPIQueue::Add(thread, jsQueue, value); in HWTEST_F_L0()
178 OperationResult getPropertyRes = JSAPIQueue::GetProperty(thread, jsQueue, key); in HWTEST_F_L0()
191 JSHandle<JSAPIQueue> jsQueue = CreateQueue(); in HWTEST_F_L0()
195 JSAPIQueue::Add(thread, jsQueue, value); in HWTEST_F_L0()
200 bool setPropertyRes = JSAPIQueue::SetProperty(thread, jsQueue, key, value); in HWTEST_F_L0()
205 EXPECT_FALSE(JSAPIQueue::SetProperty(thread, jsQueue, key, value)); in HWTEST_F_L0()
207 EXPECT_FALSE(JSAPIQueue::SetProperty(thread, jsQueue, key1, value)); in HWTEST_F_L0()
218 JSHandle<JSAPIQueue> jsQueue = CreateQueue(0); in HWTEST_F_L0()
222 JSAPIQueue::Add(thread, jsQueue, value); in HWTEST_F_L0()
224 EXPECT_EQ(newElement->GetLength(), static_cast<uint32_t>(JSAPIQueue::DEFAULT_CAPACITY_LENGTH)); in HWTEST_F_L0()