Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Tools / Scripts / webkitpy / common / system / executive_mock.py
index 404e722..1f137de 100644 (file)
@@ -26,9 +26,9 @@
 # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 
+import StringIO
 import logging
 import os
-import StringIO
 
 from webkitpy.common.system.executive import ScriptError
 
@@ -82,17 +82,6 @@ class MockExecutive(object):
         _log.info("MOCK running_pids: %s" % running_pids)
         return running_pids
 
-    def run_and_throw_if_fail(self, args, quiet=False, cwd=None, env=None):
-        self.calls.append(args)
-        if self._should_log:
-            env_string = ""
-            if env:
-                env_string = ", env=%s" % env
-            _log.info("MOCK run_and_throw_if_fail: %s, cwd=%s%s" % (args, cwd, env_string))
-        if self._should_throw_when_run.intersection(args):
-            raise ScriptError("Exception for %s" % args, output="MOCK command output")
-        return "MOCK output of child process"
-
     def command_for_printing(self, args):
         string_args = map(unicode, args)
         return " ".join(string_args)
@@ -168,6 +157,9 @@ class MockExecutive(object):
         self.calls.append(new_calls)
         return command_outputs
 
+    def map(self, thunk, arglist, processes=None):
+        return map(thunk, arglist)
+
 
 class MockExecutive2(MockExecutive):
     """MockExecutive2 is like MockExecutive except it doesn't log anything."""