1# Copyright 2015 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5 6class TestOutputStream(object): 7 def __init__(self): 8 self._output_data = [] 9 10 @property 11 def output_data(self): 12 return ''.join(self._output_data) 13 14 def write(self, data): 15 self._output_data.append(data) 16 17 def flush(self): 18 pass 19