Home
last modified time | relevance | path

Searched refs:EXPECT_EQ (Results 1 – 25 of 175) sorted by relevance

1234567

/packages/modules/StatsD/statsd/tests/e2e/
DMetricActivation_e2e_test.cpp261 EXPECT_EQ(broadcastUid, uid); in TEST()
284 EXPECT_EQ(eventActivationMap[0]->state, ActivationState::kNotActive); in TEST()
285 EXPECT_EQ(eventActivationMap[0]->start_ns, 0); in TEST()
286 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST()
287 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kNotActive); in TEST()
288 EXPECT_EQ(eventActivationMap[2]->start_ns, 0); in TEST()
289 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST()
297 EXPECT_EQ(broadcastCount, 0); in TEST()
304 EXPECT_EQ(broadcastCount, 1); in TEST()
306 EXPECT_EQ(activeConfigsBroadcast[0], cfgId); in TEST()
[all …]
DAnomaly_duration_sum_e2e_test.cpp142 EXPECT_EQ((bucketStartTimeNs + 11 + threshold_ns) / NS_PER_SEC + 1, in TEST()
144 EXPECT_EQ(0u, anomalyTracker->getRefractoryPeriodEndsSec(dimensionKey1)); in TEST()
150 EXPECT_EQ(0u, anomalyTracker->getAlarmTimestampSec(dimensionKey1)); in TEST()
151 EXPECT_EQ(0u, anomalyTracker->getRefractoryPeriodEndsSec(dimensionKey1)); in TEST()
157 EXPECT_EQ((bucketStartTimeNs + 110 + threshold_ns - 90) / NS_PER_SEC + 1, in TEST()
159 EXPECT_EQ(0u, anomalyTracker->getRefractoryPeriodEndsSec(dimensionKey1)); in TEST()
165 EXPECT_EQ(0u, anomalyTracker->getAlarmTimestampSec(dimensionKey1)); in TEST()
166 EXPECT_EQ(refractory_period_sec + (bucketStartTimeNs + NS_PER_SEC + 109) / NS_PER_SEC + 1, in TEST()
176 EXPECT_EQ(refractory_period_sec + (bucketStartTimeNs + NS_PER_SEC + 109) / NS_PER_SEC + 1, in TEST()
178 EXPECT_EQ(alarmFiredTimestampSec0, in TEST()
[all …]
DDurationMetric_e2e_test.cpp98 EXPECT_EQ(metricId, reports.reports(0).metrics(0).metric_id()); in TEST()
108 EXPECT_EQ(durationEndNs - durationStartNs, data.bucket_info(0).duration_nanos()); in TEST()
109 EXPECT_EQ(configAddedTimeNs, data.bucket_info(0).start_bucket_elapsed_nanos()); in TEST()
110 EXPECT_EQ(baseTimeNs + bucketSizeNs, data.bucket_info(0).end_bucket_elapsed_nanos()); in TEST()
181 EXPECT_EQ(metricId, reports.reports(0).metrics(0).metric_id()); in TEST()
193 EXPECT_EQ(0, bucketInfo.bucket_num()); in TEST()
194 EXPECT_EQ(durationEndNs - durationStartNs, bucketInfo.duration_nanos()); in TEST()
195 EXPECT_EQ(configAddedTimeNs, bucketInfo.start_bucket_elapsed_nanos()); in TEST()
196 EXPECT_EQ(baseTimeNs + bucketSizeNs, bucketInfo.end_bucket_elapsed_nanos()); in TEST()
247 EXPECT_EQ(broadcastUid, uid); in TEST()
[all …]
DGaugeMetric_e2e_push_test.cpp150 EXPECT_EQ(util::APP_START_OCCURRED, data.dimensions_in_what().field()); in TEST()
152 EXPECT_EQ(1 /* uid field */, in TEST()
154 EXPECT_EQ(appUid1, data.dimensions_in_what().value_tuple().dimensions_value(0).value_int()); in TEST()
160 EXPECT_EQ(bucketStartTimeNs, data.bucket_info(0).start_bucket_elapsed_nanos()); in TEST()
161 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, in TEST()
163 EXPECT_EQ(AppStartOccurred::HOT, in TEST()
165 EXPECT_EQ("activity_name2", in TEST()
167 EXPECT_EQ(102L, in TEST()
169 EXPECT_EQ(AppStartOccurred::COLD, in TEST()
171 EXPECT_EQ("activity_name3", in TEST()
[all …]
DCountMetric_e2e_test.cpp86 EXPECT_EQ(processor->mMetricsManagers.size(), 1u); in TEST()
89 EXPECT_EQ(2, metricsManager->mAllMetricProducers.size()); in TEST()
94 EXPECT_EQ(ConditionState::kUnknown, metricProducer1->mCondition); in TEST()
95 EXPECT_EQ(ConditionState::kUnknown, metricProducer2->mCondition); in TEST()
100 EXPECT_EQ(ConditionState::kUnknown, metricProducer1->mCondition); in TEST()
101 EXPECT_EQ(ConditionState::kUnknown, metricProducer2->mCondition); in TEST()
106 EXPECT_EQ(ConditionState::kFalse, metricProducer1->mCondition); in TEST()
107 EXPECT_EQ(ConditionState::kFalse, metricProducer2->mCondition); in TEST()
112 EXPECT_EQ(ConditionState::kTrue, metricProducer1->mCondition); in TEST()
113 EXPECT_EQ(ConditionState::kTrue, metricProducer2->mCondition); in TEST()
[all …]
DGaugeMetric_e2e_pull_test.cpp91 EXPECT_EQ(bucketSizeNs, in TEST()
95 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + bucketSizeNs, nextPullTimeNs); in TEST()
103 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 2 * bucketSizeNs, nextPullTimeNs); in TEST()
114 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 3 * bucketSizeNs, nextPullTimeNs); in TEST()
117 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 4 * bucketSizeNs, nextPullTimeNs); in TEST()
124 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 5 * bucketSizeNs, nextPullTimeNs); in TEST()
131 EXPECT_EQ(baseTimeNs + startBucketNum * bucketSizeNs + 6 * bucketSizeNs, nextPullTimeNs); in TEST()
151 EXPECT_EQ(ATOM_TAG, data.dimensions_in_what().field()); in TEST()
153 EXPECT_EQ(1 /* subsystem name field */, in TEST()
160 EXPECT_EQ(configAddedTimeNs + 55, data.bucket_info(0).elapsed_timestamp_nanos(0)); in TEST()
[all …]
/packages/providers/MediaProvider/jni/
DRedactionInfoTest.cpp39 EXPECT_EQ(0, info.size()); in TEST()
40 EXPECT_EQ(false, info.isRedactionNeeded()); in TEST()
44 EXPECT_EQ(0, out.size()); in TEST()
55 EXPECT_EQ(1, info.size()); in TEST()
56 EXPECT_EQ(true, info.isRedactionNeeded()); in TEST()
61 EXPECT_EQ(3, out.size()); in TEST()
62 EXPECT_EQ(ReadRange(0, 1, false), out[0]); in TEST()
63 EXPECT_EQ(ReadRange(1, 9, true), out[1]); in TEST()
64 EXPECT_EQ(ReadRange(10, 990, false), out[2]); in TEST()
68 EXPECT_EQ(2, out.size()); in TEST()
[all …]
/packages/modules/NeuralNetworks/runtime/test/
DTestValidation.cpp68 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addScalarOperand()
73 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &operandType), ANEURALNETWORKS_NO_ERROR); in addOperand()
162 EXPECT_EQ(ANeuralNetworksModel_getExtensionOperandType(mModel, kTestExtensionName, in getExtensionOperandType()
255 EXPECT_EQ(ANeuralNetworksMemory_createFromFd(size, PROT_READ | PROT_WRITE, fd, 0, &ashmem), in createAshmem()
317 EXPECT_EQ(ANeuralNetworksModel_addOperand(model, &operandType), ANEURALNETWORKS_NO_ERROR); in addScalarOperand()
327 EXPECT_EQ(ANeuralNetworksModel_addOperand(model, &operandType), ANEURALNETWORKS_NO_ERROR); in addTensorOperand()
397 EXPECT_EQ(ANeuralNetworksModel_create(nullptr), ANEURALNETWORKS_UNEXPECTED_NULL); in TEST_F()
403 EXPECT_EQ(ANeuralNetworksModel_addOperand(nullptr, &floatType), in TEST_F()
405 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, nullptr), ANEURALNETWORKS_UNEXPECTED_NULL); in TEST_F()
415 EXPECT_EQ(ANeuralNetworksModel_addOperand(mModel, &quant8TypeInvalidScale), in TEST_F()
[all …]
/packages/apps/Test/connectivity/sl4n/rapidjson/test/unittest/
Dpointertest.cpp39 EXPECT_EQ(0u, p.GetTokenCount()); in TEST()
45 EXPECT_EQ(1u, p.GetTokenCount()); in TEST()
46 EXPECT_EQ(0u, p.GetTokens()[0].length); in TEST()
48 EXPECT_EQ(kPointerInvalidIndex, p.GetTokens()[0].index); in TEST()
54 EXPECT_EQ(1u, p.GetTokenCount()); in TEST()
55 EXPECT_EQ(3u, p.GetTokens()[0].length); in TEST()
57 EXPECT_EQ(kPointerInvalidIndex, p.GetTokens()[0].index); in TEST()
64 EXPECT_EQ(1u, p.GetTokenCount()); in TEST()
65 EXPECT_EQ(3u, p.GetTokens()[0].length); in TEST()
67 EXPECT_EQ(kPointerInvalidIndex, p.GetTokens()[0].index); in TEST()
[all …]
Dvaluetest.cpp23 EXPECT_EQ(kNullType, x.GetType()); in TEST()
83 EXPECT_EQ(4u, x.Size()); in TEST()
89 EXPECT_EQ(4u, y.Size()); in TEST()
95 EXPECT_EQ(4u, z.Size()); in TEST()
105 EXPECT_EQ(1234, y.GetInt()); in TEST()
109 EXPECT_EQ(5678, y.GetInt()); in TEST()
117 EXPECT_EQ(y.GetString(),x.GetString()); in TEST()
118 EXPECT_EQ(y.GetStringLength(),x.GetStringLength()); in TEST()
124 EXPECT_EQ(y.GetString(),mstr); in TEST()
135 EXPECT_EQ(x.GetString(), mstr); in TEST()
[all …]
/packages/modules/StatsD/statsd/tests/metrics/
DValueMetricProducer_test.cpp85 EXPECT_EQ(expectedValues[i], buckets[i].values[0].long_value) in assertPastBucketValuesSingleKey()
87 EXPECT_EQ(expectedDurationNs[i], buckets[i].mConditionTrueNs) in assertPastBucketValuesSingleKey()
89 EXPECT_EQ(expectedStartTimeNs[i], buckets[i].mBucketStartNs) in assertPastBucketValuesSingleKey()
91 EXPECT_EQ(expectedEndTimeNs[i], buckets[i].mBucketEndNs) in assertPastBucketValuesSingleKey()
98 EXPECT_EQ(condition, conditionTimer.mCondition); in assertConditionTimer()
99 EXPECT_EQ(timerNs, conditionTimer.mTimerNs); in assertConditionTimer()
100 EXPECT_EQ(lastConditionTrueTimestampNs, conditionTimer.mLastConditionChangeTimestampNs); in assertConditionTimer()
244 EXPECT_EQ(startTimeBase, valueProducer.calcPreviousBucketEndTime(60 * NS_PER_SEC + 10)); in TEST()
245 EXPECT_EQ(startTimeBase, valueProducer.calcPreviousBucketEndTime(60 * NS_PER_SEC + 10)); in TEST()
246 EXPECT_EQ(60 * NS_PER_SEC + startTimeBase, in TEST()
[all …]
DDurationMetricProducer_test.cpp80 EXPECT_EQ(600500000000, durationProducer.mCurrentBucketStartTimeNs); in TEST()
81 EXPECT_EQ(10, durationProducer.mCurrentBucketNum); in TEST()
82 EXPECT_EQ(660000000005, durationProducer.getCurrentBucketEndTimeNs()); in TEST()
116 EXPECT_EQ(bucketStartTimeNs, buckets[0].mBucketStartNs); in TEST()
117 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[0].mBucketEndNs); in TEST()
118 EXPECT_EQ(bucketSizeNs - 1LL, buckets[0].mDuration); in TEST()
119 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets[1].mBucketStartNs); in TEST()
120 EXPECT_EQ(bucketStartTimeNs + 2 * bucketSizeNs, buckets[1].mBucketEndNs); in TEST()
121 EXPECT_EQ(2LL, buckets[1].mDuration); in TEST()
170 EXPECT_EQ(bucketStartTimeNs + bucketSizeNs, buckets2[0].mBucketStartNs); in TEST()
[all …]
/packages/inputmethods/LatinIME/native/jni/tests/utils/
Dchar_utils_test.cpp43 EXPECT_EQ('a', CharUtils::toLowerCase('A')); in TEST()
44 EXPECT_EQ('z', CharUtils::toLowerCase('Z')); in TEST()
45 EXPECT_EQ('a', CharUtils::toLowerCase('a')); in TEST()
46 EXPECT_EQ('z', CharUtils::toLowerCase('z')); in TEST()
47 EXPECT_EQ('@', CharUtils::toLowerCase('@')); in TEST()
48 EXPECT_EQ(' ', CharUtils::toLowerCase(' ')); in TEST()
49 EXPECT_EQ(0x00E0 /* LATIN SMALL LETTER A WITH GRAVE */, in TEST()
51 EXPECT_EQ(0x00E0 /* LATIN SMALL LETTER A WITH GRAVE */, in TEST()
53 EXPECT_EQ(0x03C2 /* GREEK SMALL LETTER FINAL SIGMA */, in TEST()
55 EXPECT_EQ(0x0430 /* CYRILLIC SMALL LETTER A */, in TEST()
[all …]
Dint_array_view_test.cpp30 EXPECT_EQ(intVector.size(), intArrayView.size()); in TEST()
32 EXPECT_EQ(intVector[i], intArrayView[i]); in TEST()
41 EXPECT_EQ(intVector[expectedIndex], element); in TEST()
44 EXPECT_EQ(expectedIndex, intArrayView.size()); in TEST()
51 EXPECT_EQ(ARRAY_SIZE, intArrayView.size()); in TEST()
57 EXPECT_EQ(1u, intArrayView.size()); in TEST()
58 EXPECT_EQ(object, intArrayView[0]); in TEST()
79 EXPECT_EQ(intArrayView.size(), intArrayView.limit(intArrayView.size()).size()); in TEST()
80 EXPECT_EQ(intArrayView.size(), intArrayView.limit(1000).size()); in TEST()
83 EXPECT_EQ(4u, subView.size()); in TEST()
[all …]
/packages/modules/StatsD/statsd/tests/external/
Dpuller_util_test.cpp78 EXPECT_EQ(hostUid, actualFieldValues->at(0).mValue.int_value); in TEST()
79 EXPECT_EQ(hostNonAdditiveData, actualFieldValues->at(1).mValue.int_value); in TEST()
80 EXPECT_EQ(isolatedAdditiveData + hostAdditiveData, actualFieldValues->at(2).mValue.int_value); in TEST()
105 EXPECT_EQ(hostUid, actualFieldValues->at(0).mValue.int_value); in TEST()
106 EXPECT_EQ(hostNonAdditiveData, actualFieldValues->at(1).mValue.int_value); in TEST()
107 EXPECT_EQ(hostAdditiveData, actualFieldValues->at(2).mValue.int_value); in TEST()
111 EXPECT_EQ(hostUid, actualFieldValues->at(0).mValue.int_value); in TEST()
112 EXPECT_EQ(isolatedNonAdditiveData, actualFieldValues->at(1).mValue.int_value); in TEST()
113 EXPECT_EQ(hostAdditiveData + isolatedAdditiveData, actualFieldValues->at(2).mValue.int_value); in TEST()
134 EXPECT_EQ(hostUid, actualFieldValues->at(0).mValue.int_value); in TEST()
[all …]
/packages/modules/StatsD/statsd/tests/guardrail/
DStatsdStats_test.cpp47 EXPECT_EQ(0, configReport.uid()); in TEST()
48 EXPECT_EQ(12345, configReport.id()); in TEST()
49 EXPECT_EQ(metricsCount, configReport.metric_count()); in TEST()
50 EXPECT_EQ(conditionsCount, configReport.condition_count()); in TEST()
51 EXPECT_EQ(matchersCount, configReport.matcher_count()); in TEST()
52 EXPECT_EQ(alertsCount, configReport.alert_count()); in TEST()
53 EXPECT_EQ(true, configReport.is_valid()); in TEST()
153 EXPECT_EQ(123, configReport.data_drop_bytes(0)); in TEST()
159 EXPECT_EQ(123, configReport.annotation(0).field_int64()); in TEST()
160 EXPECT_EQ(456, configReport.annotation(0).field_int32()); in TEST()
[all …]
/packages/modules/StatsD/statsd/tests/
DStatsLogProcessor_test.cpp110 EXPECT_EQ(1, broadcastCount); in TEST()
143 EXPECT_EQ(0, broadcastCount); in TEST()
251 EXPECT_EQ(1, report.annotation(0).field_int64()); in TEST()
252 EXPECT_EQ(2, report.annotation(0).field_int32()); in TEST()
323 EXPECT_EQ(pullerManager->mPullUidProviders.find(key), pullerManager->mPullUidProviders.end()); in TEST()
341 EXPECT_EQ(1, p.mMetricsManagers.size()); in TEST()
346 EXPECT_EQ(0, StatsdStats::getInstance().mIceBox.size()); in TEST()
351 EXPECT_EQ(0, p.mMetricsManagers.size()); in TEST()
353 EXPECT_EQ(StatsdStats::getInstance().mConfigStats.end(), in TEST()
356 EXPECT_EQ(2, StatsdStats::getInstance().mIceBox.size()); in TEST()
[all …]
DLogEvent_test.cpp95 EXPECT_EQ(100, logEvent.GetTagId()); in TEST()
96 EXPECT_EQ(1000, logEvent.GetUid()); in TEST()
97 EXPECT_EQ(1001, logEvent.GetPid()); in TEST()
105 EXPECT_EQ(expectedField, int32Item.mField); in TEST()
106 EXPECT_EQ(Type::INT, int32Item.mValue.getType()); in TEST()
107 EXPECT_EQ(10, int32Item.mValue.int_value); in TEST()
111 EXPECT_EQ(expectedField, int64Item.mField); in TEST()
112 EXPECT_EQ(Type::LONG, int64Item.mValue.getType()); in TEST()
113 EXPECT_EQ(0x123456789, int64Item.mValue.long_value); in TEST()
117 EXPECT_EQ(expectedField, floatItem.mField); in TEST()
[all …]
DFieldValue_test.cpp80 EXPECT_EQ((int32_t)10, matcher12.mMatcher.getTag()); in TEST()
81 EXPECT_EQ((int32_t)0x02010001, matcher12.mMatcher.getField()); in TEST()
82 EXPECT_EQ((int32_t)0xff7f007f, matcher12.mMask); in TEST()
101 EXPECT_EQ((int32_t)10, matcher12.mMatcher.getTag()); in TEST()
102 EXPECT_EQ((int32_t)0x02010001, matcher12.mMatcher.getField()); in TEST()
103 EXPECT_EQ((int32_t)0xff7f7f7f, matcher12.mMask); in TEST()
132 EXPECT_EQ((int32_t)0x02010101, output.getValues()[0].mField.getField()); in TEST()
133 EXPECT_EQ((int32_t)1111, output.getValues()[0].mValue.int_value); in TEST()
134 EXPECT_EQ((int32_t)0x02010102, output.getValues()[1].mField.getField()); in TEST()
135 EXPECT_EQ("location1", output.getValues()[1].mValue.str_value); in TEST()
[all …]
/packages/services/Car/cpp/computepipe/tests/runner/client_interface/
DClientInterfaceTest.cc110 EXPECT_EQ(mAidlClient->activate(), Status::SUCCESS); in SetUp()
148 EXPECT_EQ(command.has_set_input_source(), true); in TEST_F()
149 EXPECT_EQ(command.set_input_source().source_id(), 1); in TEST_F()
153 EXPECT_EQ(command.has_set_offload_offload(), true); in TEST_F()
154 EXPECT_EQ(command.set_offload_offload().offload_option_id(), 5); in TEST_F()
158 EXPECT_EQ(command.has_set_termination_option(), true); in TEST_F()
159 EXPECT_EQ(command.set_termination_option().termination_option_id(), 3); in TEST_F()
164 EXPECT_EQ(command.has_set_output_stream(), true); in TEST_F()
165 EXPECT_EQ(command.set_output_stream().stream_id(), 0); in TEST_F()
166 EXPECT_EQ(command.set_output_stream().max_inflight_packets_count(), 10); in TEST_F()
[all …]
/packages/services/Car/cpp/computepipe/tests/runner/graph/
DGrpcGraphTest.cpp66 EXPECT_EQ(mGrpcGraph->GetSupportedGraphConfigs().graph_name(), kGraphName); in SetUp()
67 EXPECT_EQ(mGrpcGraph->GetGraphType(), PrebuiltGraphType::REMOTE); in SetUp()
93 EXPECT_EQ(mGrpcGraph->handleConfigPhase(clientConfig), Status::SUCCESS); in TEST_F()
94 EXPECT_EQ(mGrpcGraph->GetGraphState(), PrebuiltGraphState::STOPPED); in TEST_F()
95 EXPECT_EQ(mGrpcGraph->GetStatus(), Status::SUCCESS); in TEST_F()
98 EXPECT_EQ(mGrpcGraph->handleExecutionPhase(e), Status::SUCCESS); in TEST_F()
99 EXPECT_EQ(mGrpcGraph->GetGraphState(), PrebuiltGraphState::RUNNING); in TEST_F()
100 EXPECT_EQ(mGrpcGraph->GetStatus(), Status::SUCCESS); in TEST_F()
102 EXPECT_EQ(mGrpcGraph->handleStopWithFlushPhase(e), Status::SUCCESS); in TEST_F()
103 EXPECT_EQ(mGrpcGraph->GetGraphState(), PrebuiltGraphState::FLUSHING); in TEST_F()
[all …]
/packages/inputmethods/LatinIME/native/jni/tests/dictionary/utils/
Dbyte_array_utils_test.cpp31 EXPECT_EQ(0x6f, ByteArrayUtils::readCodePointAndAdvancePosition(buffer, codePointTable, &pos)); in TEST()
33 EXPECT_EQ(0x6b, ByteArrayUtils::readCodePointAndAdvancePosition(buffer, codePointTable, &pos)); in TEST()
36 EXPECT_EQ(0x100, ByteArrayUtils::readCodePointAndAdvancePosition(buffer, codePointTable, &pos)); in TEST()
42 EXPECT_EQ(0x01u, ByteArrayUtils::readUint8(buffer, 0)); in TEST()
43 EXPECT_EQ(0x8Au, ByteArrayUtils::readUint8(buffer, 1)); in TEST()
44 EXPECT_EQ(0x0u, ByteArrayUtils::readUint8(buffer, 2)); in TEST()
45 EXPECT_EQ(0xAAu, ByteArrayUtils::readUint8(buffer, 3)); in TEST()
47 EXPECT_EQ(0x018Au, ByteArrayUtils::readUint16(buffer, 0)); in TEST()
48 EXPECT_EQ(0x8A00u, ByteArrayUtils::readUint16(buffer, 1)); in TEST()
49 EXPECT_EQ(0xAAu, ByteArrayUtils::readUint16(buffer, 2)); in TEST()
[all …]
/packages/modules/StatsD/statsd/tests/anomaly/
DAnomalyTracker_test.cpp115 EXPECT_EQ(tracker.getRefractoryPeriodEndsSec(kv.first), in checkRefractoryTimes()
153 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, -1LL); in TEST()
164 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 1LL); in TEST()
165 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST()
166 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyC), 1LL); in TEST()
167 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 0LL); in TEST()
178 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyA), 1LL); in TEST()
179 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyB), 2LL); in TEST()
180 EXPECT_EQ(anomalyTracker.getSumOverPastBuckets(keyC), 1LL); in TEST()
181 EXPECT_EQ(anomalyTracker.mMostRecentBucketNum, 0LL); in TEST()
[all …]
/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp114 EXPECT_EQ(1, mgr.getStateTrackersCount()); in TEST()
115 EXPECT_EQ(1, StateManager::getInstance().getStateTrackersCount()); in TEST()
133 EXPECT_EQ(android::view::DisplayStateEnum::DISPLAY_STATE_ON, in TEST()
143 EXPECT_EQ(android::view::DisplayStateEnum::DISPLAY_STATE_OFF, in TEST()
153 EXPECT_EQ(android::view::DisplayStateEnum::DISPLAY_STATE_OFF, in TEST()
163 EXPECT_EQ(android::view::DisplayStateEnum::DISPLAY_STATE_ON, in TEST()
181 EXPECT_EQ(0, mgr.getStateTrackersCount()); in TEST()
183 EXPECT_EQ(1, mgr.getStateTrackersCount()); in TEST()
184 EXPECT_EQ(1, mgr.getListenersCount(util::SCREEN_STATE_CHANGED)); in TEST()
188 EXPECT_EQ(1, mgr.getStateTrackersCount()); in TEST()
[all …]
/packages/modules/DnsResolver/tests/
Dresolv_cache_unit_test.cpp227 EXPECT_EQ(nscount, static_cast<int>(expected.setup.servers.size())) << msg; in expectCacheStats()
229 EXPECT_EQ(ToString(&servers[i]), expected.setup.servers[i]) << msg; in expectCacheStats()
233 EXPECT_EQ(dcount, static_cast<int>(expected.setup.domains.size())) << msg; in expectCacheStats()
235 EXPECT_EQ(std::string(domains[i]), expected.setup.domains[i]) << msg; in expectCacheStats()
244 EXPECT_EQ(0U, stats[ns].sample_count) << msg; in expectCacheStats()
252 EXPECT_EQ(res_wait_for_pending_req_timeout_count, expected.pendingReqTimeoutCount) << msg; in expectCacheStats()
269 EXPECT_EQ(0, cacheCreate(TEST_NETID)); in TEST_F()
270 EXPECT_EQ(-EEXIST, cacheCreate(TEST_NETID)); in TEST_F()
274 EXPECT_EQ(0, cacheCreate(TEST_NETID_2)); in TEST_F()
275 EXPECT_EQ(-EEXIST, cacheCreate(TEST_NETID_2)); in TEST_F()
[all …]

1234567