Lines Matching refs:data

40     std::unique_ptr<ECOData> data = std::make_unique<ECOData>();  in TEST()  local
41 EXPECT_EQ(data->getDataType(), ECOData::DATA_TYPE_UNKNOWN); in TEST()
42 EXPECT_EQ(data->getDataTimeUs(), -1); in TEST()
46 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS); in TEST() local
47 EXPECT_EQ(data->getDataType(), ECOData::DATA_TYPE_STATS); in TEST()
48 EXPECT_EQ(data->getDataTimeUs(), -1); in TEST()
52 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
53 EXPECT_EQ(data->getDataType(), ECOData::DATA_TYPE_STATS); in TEST()
54 EXPECT_EQ(data->getDataTimeUs(), 1000); in TEST()
58 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
60 data->setString(ENCODER_TYPE, "avc"); in TEST()
62 EXPECT_TRUE(data->findString(ENCODER_TYPE, &testValue) == ECODataStatus::OK); in TEST()
66 data->setString(ENCODER_TYPE, "hevc"); in TEST()
67 EXPECT_EQ(data->findString(ENCODER_TYPE, &testValue), ECODataStatus::OK); in TEST()
72 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
79 data->setString(it->first, it->second); in TEST()
85 EXPECT_TRUE(data->findString(it->first, &testValue) == ECODataStatus::OK); in TEST()
91 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
94 EXPECT_TRUE(data->findString("encoder-name", nullptr) != ECODataStatus::OK); in TEST()
98 EXPECT_TRUE(data->findString("encoder-name", &testValue) != ECODataStatus::OK); in TEST()
101 EXPECT_TRUE(data->setString("", "avc") != ECODataStatus::OK); in TEST()
104 EXPECT_TRUE(data->findString("", &testValue) != ECODataStatus::OK); in TEST()
108 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
110 data->setInt32(ENCODER_TARGET_BITRATE_BPS, 2000000); in TEST()
112 EXPECT_TRUE(data->findInt32(ENCODER_TARGET_BITRATE_BPS, &testValue) == ECODataStatus::OK); in TEST()
116 data->setInt32(ENCODER_TARGET_BITRATE_BPS, 2200000); in TEST()
117 EXPECT_EQ(data->findInt32(ENCODER_TARGET_BITRATE_BPS, &testValue), ECODataStatus::OK); in TEST()
122 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
129 data->setInt32(it->first, it->second); in TEST()
135 EXPECT_TRUE(data->findInt32(it->first, &testValue) == ECODataStatus::OK); in TEST()
141 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
144 EXPECT_TRUE(data->findInt32("encoder-name", nullptr) != ECODataStatus::OK); in TEST()
148 EXPECT_TRUE(data->findInt32("encoder-name", &testValue) != ECODataStatus::OK); in TEST()
151 EXPECT_TRUE(data->setInt32("", 1000) != ECODataStatus::OK); in TEST()
154 EXPECT_TRUE(data->findInt32("", &testValue) != ECODataStatus::OK); in TEST()
158 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
160 data->setInt64(ENCODER_TARGET_BITRATE_BPS, 2000000); in TEST()
162 EXPECT_TRUE(data->findInt64(ENCODER_TARGET_BITRATE_BPS, &testValue) == ECODataStatus::OK); in TEST()
166 data->setInt64(ENCODER_TARGET_BITRATE_BPS, 2200000); in TEST()
167 EXPECT_EQ(data->findInt64(ENCODER_TARGET_BITRATE_BPS, &testValue), ECODataStatus::OK); in TEST()
172 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
179 data->setInt64(it->first, it->second); in TEST()
185 EXPECT_TRUE(data->findInt64(it->first, &testValue) == ECODataStatus::OK); in TEST()
191 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
194 EXPECT_TRUE(data->findInt64("encoder-name", nullptr) != ECODataStatus::OK); in TEST()
198 EXPECT_TRUE(data->findInt64("encoder-name", &testValue) != ECODataStatus::OK); in TEST()
201 EXPECT_TRUE(data->setInt64("", 1000) != ECODataStatus::OK); in TEST()
204 EXPECT_TRUE(data->findInt64("", &testValue) != ECODataStatus::OK); in TEST()
208 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
210 data->setFloat(ENCODER_TARGET_BITRATE_BPS, 2000000.0); in TEST()
212 EXPECT_TRUE(data->findFloat(ENCODER_TARGET_BITRATE_BPS, &testValue) == ECODataStatus::OK); in TEST()
216 data->setFloat(ENCODER_TARGET_BITRATE_BPS, 2200000.0); in TEST()
217 EXPECT_TRUE(data->findFloat(ENCODER_TARGET_BITRATE_BPS, &testValue) == ECODataStatus::OK); in TEST()
222 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
229 data->setFloat(it->first, it->second); in TEST()
235 EXPECT_TRUE(data->findFloat(it->first, &testValue) == ECODataStatus::OK); in TEST()
241 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
244 EXPECT_TRUE(data->findFloat("encoder-name", nullptr) != ECODataStatus::OK); in TEST()
248 EXPECT_TRUE(data->findFloat("encoder-name", &testValue) != ECODataStatus::OK); in TEST()
251 EXPECT_TRUE(data->setFloat("", 1000.0) != ECODataStatus::OK); in TEST()
254 EXPECT_TRUE(data->findFloat("", &testValue) != ECODataStatus::OK); in TEST()
258 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
264 data->set(it->first, it->second); in TEST()
270 EXPECT_TRUE(data->find(it->first, &testValue) == ECODataStatus::OK); in TEST()
276 std::unique_ptr<ECOData> data = std::make_unique<ECOData>(ECOData::DATA_TYPE_STATS, 1000); in TEST() local
279 EXPECT_TRUE(data->find("encoder-name", nullptr) != ECODataStatus::OK); in TEST()
283 EXPECT_TRUE(data->find("encoder-name2", &testValue) != ECODataStatus::OK); in TEST()
286 EXPECT_TRUE(data->set("", 1000) != ECODataStatus::OK); in TEST()
289 EXPECT_TRUE(data->find("", &testValue) != ECODataStatus::OK); in TEST()