def METHOD_NAME(self, obj):
    if not isinstance(obj, TestManifest):
        return
    self.backend_input_files.add(obj.path)
    self.backend_input_files |= obj.context_all_paths
    for source in obj.source_relpaths:
        self.backend_input_files.add(mozpath.join(obj.topsrcdir, source))
    try:
        from reftest import ReftestManifest
        if isinstance(obj.manifest, ReftestManifest):
            # Mark included files as part of the build backend so changes
            # result in re-config.
            self.backend_input_files |= obj.manifest.manifests
    except ImportError:
        # Ignore errors caused by the reftest module not being present.
        # This can happen when building SpiderMonkey standalone, for example.
        pass
    for test in obj.tests:
        self.add(test, obj.flavor, obj.topsrcdir)
    self.add_defaults(obj.manifest)
    self.add_installs(obj, obj.topsrcdir)