summaryrefslogtreecommitdiffstats
path: root/chrome/common/sandbox_mac_unittest_helper.mm
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-06 05:48:24 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-06 05:48:24 +0000
commit43a41b57e551c9a31586cfb1c2a76b05a8ca44ae (patch)
tree8c71e227cb24d2f7a1d37b20543c790724baaa47 /chrome/common/sandbox_mac_unittest_helper.mm
parent4488e65fb39ce4ed0ccd40dd89615acb2de1d9f3 (diff)
downloadchromium_src-43a41b57e551c9a31586cfb1c2a76b05a8ca44ae.zip
chromium_src-43a41b57e551c9a31586cfb1c2a76b05a8ca44ae.tar.gz
chromium_src-43a41b57e551c9a31586cfb1c2a76b05a8ca44ae.tar.bz2
Whitespace change to trigger bots.
TBR=viettrungluu@chromium.org Review URL: http://codereview.chromium.org/2658005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49017 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/sandbox_mac_unittest_helper.mm')
-rw-r--r--chrome/common/sandbox_mac_unittest_helper.mm16
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/common/sandbox_mac_unittest_helper.mm b/chrome/common/sandbox_mac_unittest_helper.mm
index 328e411..a14370f 100644
--- a/chrome/common/sandbox_mac_unittest_helper.mm
+++ b/chrome/common/sandbox_mac_unittest_helper.mm
@@ -70,7 +70,7 @@ bool MacSandboxTest::RunTestInSandbox(sandbox::SandboxProcessType sandbox_type,
setenv(kSandboxTestNameKey, test_name, 1);
if (test_data)
setenv(kTestDataKey, test_data, 1);
-
+
base::ProcessHandle child_process = SpawnChild(L"mac_sandbox_test_runner");
int code = -1;
if (!base::WaitForExitCode(child_process, &code)) {
@@ -117,9 +117,9 @@ MULTIPROCESS_TEST_MAIN(mac_sandbox_test_runner) {
LOG(ERROR) << "Sandbox test name not specified";
return -1;
}
-
+
const char* test_data = getenv(kTestDataKey);
-
+
// Find Test Function to run;
scoped_ptr<sandboxtest::MacSandboxTestCase>
test_case(sandboxtest::SandboxTestForName(sandbox_test_name));
@@ -128,25 +128,25 @@ MULTIPROCESS_TEST_MAIN(mac_sandbox_test_runner) {
return -1;
}
test_case->SetTestData(test_data);
-
+
// Run Test.
if (!test_case->BeforeSandboxInit()) {
LOG(ERROR) << sandbox_test_name << "Failed test before sandbox init";
return -1;
}
-
+
sandbox::SandboxWarmup();
-
+
if (!sandbox::EnableSandbox(sandbox_type, FilePath())) {
LOG(ERROR) << "Failed to initialize sandbox " << sandbox_type;
return -1;
}
-
+
if (!test_case->SandboxedTest()) {
LOG(ERROR) << sandbox_test_name << "Failed sandboxed test";
return -1;
}
-
+
return 0;
}