From cd44dc59cdfc39534aef4d417e9f3c412e3be139 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Fri, 3 Feb 2012 09:55:33 +0100 Subject: Imported WebKit commit fce473cb4d55aa9fe9d0b0322a2fffecb731b961 (http://svn.webkit.org/repository/webkit/trunk@106560) --- Tools/Scripts/webkitpy/common/system/systemhost_mock.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'Tools/Scripts/webkitpy/common/system/systemhost_mock.py') diff --git a/Tools/Scripts/webkitpy/common/system/systemhost_mock.py b/Tools/Scripts/webkitpy/common/system/systemhost_mock.py index 61f8972bf..f3bc94139 100644 --- a/Tools/Scripts/webkitpy/common/system/systemhost_mock.py +++ b/Tools/Scripts/webkitpy/common/system/systemhost_mock.py @@ -35,11 +35,15 @@ from webkitpy.common.system.workspace_mock import MockWorkspace class MockSystemHost(object): - def __init__(self, log_executive=False, executive_throws_when_run=None): + def __init__(self, log_executive=False, executive_throws_when_run=None, os_name=None, os_version=None): self.executive = MockExecutive(should_log=log_executive, should_throw_when_run=executive_throws_when_run) self.filesystem = MockFileSystem() self.user = MockUser() self.platform = MockPlatformInfo() + if os_name: + self.platform.os_name = os_name + if os_version: + self.platform.os_version = os_version # FIXME: Should this take pointers to the filesystem and the executive? self.workspace = MockWorkspace() -- cgit v1.2.1