Searched refs:eventActivationMap (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/cmds/statsd/tests/e2e/ |
D | MetricActivation_e2e_test.cpp | 274 auto& eventActivationMap = metricProducer->mEventActivationMap; in TEST() local 280 EXPECT_EQ(eventActivationMap.size(), 2u); in TEST() 281 EXPECT_TRUE(eventActivationMap.find(0) != eventActivationMap.end()); in TEST() 282 EXPECT_TRUE(eventActivationMap.find(2) != eventActivationMap.end()); in TEST() 283 EXPECT_EQ(eventActivationMap[0]->state, ActivationState::kNotActive); in TEST() 284 EXPECT_EQ(eventActivationMap[0]->start_ns, 0); in TEST() 285 EXPECT_EQ(eventActivationMap[0]->ttl_ns, 60 * 6 * NS_PER_SEC); in TEST() 286 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kNotActive); in TEST() 287 EXPECT_EQ(eventActivationMap[2]->start_ns, 0); in TEST() 288 EXPECT_EQ(eventActivationMap[2]->ttl_ns, 60 * 2 * NS_PER_SEC); in TEST() [all …]
|
D | DurationMetric_e2e_test.cpp | 259 auto& eventActivationMap = metricProducer->mEventActivationMap; in TEST() local 263 EXPECT_EQ(eventActivationMap.size(), 1u); in TEST() 264 EXPECT_TRUE(eventActivationMap.find(2) != eventActivationMap.end()); in TEST() 265 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kNotActive); in TEST() 266 EXPECT_EQ(eventActivationMap[2]->start_ns, 0); in TEST() 267 EXPECT_EQ(eventActivationMap[2]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST() 292 EXPECT_EQ(eventActivationMap[2]->state, ActivationState::kActive); in TEST() 293 EXPECT_EQ(eventActivationMap[2]->start_ns, activationStartNs); in TEST() 294 EXPECT_EQ(eventActivationMap[2]->ttl_ns, event_activation1->ttl_seconds() * NS_PER_SEC); in TEST() 304 EXPECT_EQ(eventActivationMap.size(), 1u); in TEST() [all …]
|