# Copyright 2016 The Chromium Authors. All rights reserved. | |
# Use of this source code is governed by a BSD-style license that can be | |
# found in the LICENSE file. | |
import json | |
from telemetry.internal.results import output_formatter | |
class ValueSetOutputFormatter(output_formatter.OutputFormatter): | |
def __init__(self, output_stream): | |
super(ValueSetOutputFormatter, self).__init__(output_stream) | |
def Format(self, page_test_results): | |
json.dump(page_test_results.value_set, self.output_stream) |