Examples of HintletEventRecordProcessor


Examples of com.google.speedtracer.hintletengine.client.HintletEventRecordProcessor

  public static void runTest(HintletRule rule, HintletTestCase testCase) {

    OnHintCallback hintCallback = new OnHintCallback();
    rule.setOnHintCallback(hintCallback);
    HintletEventRecordProcessor eventRecordProcessor = new HintletEventRecordProcessor(rule);

    validator = new DumpValidator();

    JSOArray<EventRecord> inputs = testCase.getInputs();
    for (int i = 0; i < inputs.size(); i++) {
      EventRecord event = inputs.get(i);
      // first validate using SpeedTracer JSON Schema
      validateEventRecordFormat(event);
      // then feed to even record processor
      eventRecordProcessor.onEventRecord(event);
    }

    matchHints(testCase.getExpectedHints(), hintCallback.getHints());
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.