Loading cmds/statsd/tests/e2e/PartialBucket_e2e_test.cpp +16 −16 Original line number Diff line number Diff line Loading @@ -110,7 +110,7 @@ StatsdConfig MakeGaugeMetricConfig(int64_t minTime) { TEST(PartialBucketE2eTest, TestCountMetricWithoutSplit) { StatsService service(nullptr); SendConfig(service, MakeConfig()); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 1).get()); Loading @@ -124,7 +124,7 @@ TEST(PartialBucketE2eTest, TestCountMetricWithoutSplit) { TEST(PartialBucketE2eTest, TestCountMetricNoSplitOnNewApp) { StatsService service(nullptr); SendConfig(service, MakeConfig()); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. // Force the uidmap to update at timestamp 2. Loading @@ -142,7 +142,7 @@ TEST(PartialBucketE2eTest, TestCountMetricNoSplitOnNewApp) { TEST(PartialBucketE2eTest, TestCountMetricSplitOnUpgrade) { StatsService service(nullptr); SendConfig(service, MakeConfig()); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. service.mUidMap->updateMap(start, {1}, {1}, {String16(kApp1.c_str())}); Loading @@ -165,7 +165,7 @@ TEST(PartialBucketE2eTest, TestCountMetricSplitOnUpgrade) { TEST(PartialBucketE2eTest, TestCountMetricSplitOnRemoval) { StatsService service(nullptr); SendConfig(service, MakeConfig()); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. service.mUidMap->updateMap(start, {1}, {1}, {String16(kApp1.c_str())}); Loading @@ -190,7 +190,7 @@ TEST(PartialBucketE2eTest, TestValueMetricWithoutMinPartialBucket) { // Partial buckets don't occur when app is first installed. service.mUidMap->updateApp(1, String16(kApp1.c_str()), 1, 1); SendConfig(service, MakeValueMetricConfig(0)); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. service.mProcessor->informPullAlarmFired(5 * 60 * NS_PER_SEC + start); Loading @@ -207,7 +207,7 @@ TEST(PartialBucketE2eTest, TestValueMetricWithMinPartialBucket) { // Partial buckets don't occur when app is first installed. service.mUidMap->updateApp(1, String16(kApp1.c_str()), 1, 1); SendConfig(service, MakeValueMetricConfig(60 * NS_PER_SEC /* One minute */)); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. const int64_t endSkipped = 5 * 60 * NS_PER_SEC + start + 2; Loading @@ -230,7 +230,7 @@ TEST(PartialBucketE2eTest, TestGaugeMetricWithoutMinPartialBucket) { // Partial buckets don't occur when app is first installed. service.mUidMap->updateApp(1, String16(kApp1.c_str()), 1, 1); SendConfig(service, MakeGaugeMetricConfig(0)); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. service.mProcessor->informPullAlarmFired(5 * 60 * NS_PER_SEC + start); Loading @@ -247,7 +247,7 @@ TEST(PartialBucketE2eTest, TestGaugeMetricWithMinPartialBucket) { // Partial buckets don't occur when app is first installed. service.mUidMap->updateApp(1, String16(kApp1.c_str()), 1, 1); SendConfig(service, MakeGaugeMetricConfig(60 * NS_PER_SEC /* One minute */)); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. const int64_t endSkipped = 5 * 60 * NS_PER_SEC + start + 2; Loading Loading
cmds/statsd/tests/e2e/PartialBucket_e2e_test.cpp +16 −16 Original line number Diff line number Diff line Loading @@ -110,7 +110,7 @@ StatsdConfig MakeGaugeMetricConfig(int64_t minTime) { TEST(PartialBucketE2eTest, TestCountMetricWithoutSplit) { StatsService service(nullptr); SendConfig(service, MakeConfig()); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. service.mProcessor->OnLogEvent(CreateAppCrashEvent(100, start + 1).get()); Loading @@ -124,7 +124,7 @@ TEST(PartialBucketE2eTest, TestCountMetricWithoutSplit) { TEST(PartialBucketE2eTest, TestCountMetricNoSplitOnNewApp) { StatsService service(nullptr); SendConfig(service, MakeConfig()); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. // Force the uidmap to update at timestamp 2. Loading @@ -142,7 +142,7 @@ TEST(PartialBucketE2eTest, TestCountMetricNoSplitOnNewApp) { TEST(PartialBucketE2eTest, TestCountMetricSplitOnUpgrade) { StatsService service(nullptr); SendConfig(service, MakeConfig()); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. service.mUidMap->updateMap(start, {1}, {1}, {String16(kApp1.c_str())}); Loading @@ -165,7 +165,7 @@ TEST(PartialBucketE2eTest, TestCountMetricSplitOnUpgrade) { TEST(PartialBucketE2eTest, TestCountMetricSplitOnRemoval) { StatsService service(nullptr); SendConfig(service, MakeConfig()); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. service.mUidMap->updateMap(start, {1}, {1}, {String16(kApp1.c_str())}); Loading @@ -190,7 +190,7 @@ TEST(PartialBucketE2eTest, TestValueMetricWithoutMinPartialBucket) { // Partial buckets don't occur when app is first installed. service.mUidMap->updateApp(1, String16(kApp1.c_str()), 1, 1); SendConfig(service, MakeValueMetricConfig(0)); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. service.mProcessor->informPullAlarmFired(5 * 60 * NS_PER_SEC + start); Loading @@ -207,7 +207,7 @@ TEST(PartialBucketE2eTest, TestValueMetricWithMinPartialBucket) { // Partial buckets don't occur when app is first installed. service.mUidMap->updateApp(1, String16(kApp1.c_str()), 1, 1); SendConfig(service, MakeValueMetricConfig(60 * NS_PER_SEC /* One minute */)); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. const int64_t endSkipped = 5 * 60 * NS_PER_SEC + start + 2; Loading @@ -230,7 +230,7 @@ TEST(PartialBucketE2eTest, TestGaugeMetricWithoutMinPartialBucket) { // Partial buckets don't occur when app is first installed. service.mUidMap->updateApp(1, String16(kApp1.c_str()), 1, 1); SendConfig(service, MakeGaugeMetricConfig(0)); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. service.mProcessor->informPullAlarmFired(5 * 60 * NS_PER_SEC + start); Loading @@ -247,7 +247,7 @@ TEST(PartialBucketE2eTest, TestGaugeMetricWithMinPartialBucket) { // Partial buckets don't occur when app is first installed. service.mUidMap->updateApp(1, String16(kApp1.c_str()), 1, 1); SendConfig(service, MakeGaugeMetricConfig(60 * NS_PER_SEC /* One minute */)); const long start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are int64_t start = getElapsedRealtimeNs(); // This is the start-time the metrics producers are // initialized with. const int64_t endSkipped = 5 * 60 * NS_PER_SEC + start + 2; Loading