Add EPP metrics to flows

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=132591518
This commit is contained in:
shikhman 2016-09-08 13:12:49 -07:00 committed by Ben McIlwain
parent 36c6d59fee
commit aa4ca42cdd
4 changed files with 88 additions and 9 deletions

View file

@ -52,6 +52,7 @@ public class EppControllerTest extends ShardableTestCase {
@Mock SessionMetadata sessionMetadata;
@Mock TransportCredentials transportCredentials;
@Mock EppMetrics eppMetrics;
@Mock BigQueryMetricsEnqueuer metricsEnqueuer;
@Mock FlowComponent.Builder flowComponentBuilder;
@Mock FlowComponent flowComponent;
@ -76,10 +77,11 @@ public class EppControllerTest extends ShardableTestCase {
when(result.getCode()).thenReturn(Code.SuccessWithNoMessages);
eppController = new EppController();
eppController.metric = new EppMetric.Builder();
eppController.metricBuilder = new EppMetric.Builder();
eppController.bigQueryMetricsEnqueuer = metricsEnqueuer;
eppController.clock = new FakeClock();
eppController.flowComponentBuilder = flowComponentBuilder;
eppController.eppMetrics = eppMetrics;
}
@Test