Lines Matching defs:JSAPIQueue

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