| Index: build/android/pylib/output/noop_output_manager.py
|
| diff --git a/build/android/pylib/output/noop_output_manager.py b/build/android/pylib/output/noop_output_manager.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..09ec1808d89cd8954bc36ddf3e92ae445f1e246e
|
| --- /dev/null
|
| +++ b/build/android/pylib/output/noop_output_manager.py
|
| @@ -0,0 +1,43 @@
|
| +# Copyright 2017 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 contextlib
|
| +
|
| +from pylib.base import output_manager
|
| +
|
| +# TODO(jbudorick): This class is currently mostly unused.
|
| +# Add a --bot-mode argument that all bots pass. If --bot-mode and
|
| +# --local-output args are both not passed to test runner then use this
|
| +# as the output manager impl.
|
| +
|
| +# pylint: disable=abstract-method
|
| +# pylint: disable=no-self-use
|
| +# pylint: disable=super-init-not-called
|
| +# pylint: disable=unused-argument
|
| +
|
| +class NoopOutputManager(output_manager.OutputManager):
|
| +
|
| + def __init__(self):
|
| + super(NoopOutputManager, self).__init__()
|
| +
|
| + #override
|
| + @contextlib.contextmanager
|
| + def ArchiveAndDeleteFile(self, *args, **kwargs):
|
| + yield NoopArchivedFile()
|
| +
|
| +
|
| +class NoopArchivedFile(output_manager.ArchivedFile):
|
| +
|
| + def __init__(self):
|
| + pass
|
| +
|
| + def write(self, *args, **kwargs):
|
| + pass
|
| +
|
| + def flush(self, *args, **kwargs):
|
| + pass
|
| +
|
| + def Link(self):
|
| + return ''
|
| +
|
|
|