Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1420)

Unified Diff: sandbox/mac/bootstrap_sandbox_unittest.mm

Issue 1849343003: mac: Remove IsOSSnowLeopard(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/host/desktop_resizer_mac.cc ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/mac/bootstrap_sandbox_unittest.mm
diff --git a/sandbox/mac/bootstrap_sandbox_unittest.mm b/sandbox/mac/bootstrap_sandbox_unittest.mm
index 467189e134fa9fd74b9f8dc6756bda4ff3f34451..6478fb0377cc10a9771e8b89c8ece80a435d34c6 100644
--- a/sandbox/mac/bootstrap_sandbox_unittest.mm
+++ b/sandbox/mac/bootstrap_sandbox_unittest.mm
@@ -97,8 +97,6 @@ class BootstrapSandboxTest : public base::MultiProcessTest {
BootstrapSandboxPolicy BaselinePolicy() {
BootstrapSandboxPolicy policy;
policy.rules["com.apple.cfprefsd.daemon"] = Rule(POLICY_ALLOW);
- if (base::mac::IsOSSnowLeopard())
- policy.rules["com.apple.SecurityServer"] = Rule(POLICY_ALLOW);
return policy;
}
@@ -354,12 +352,7 @@ TEST_F(BootstrapSandboxTest, ForwardMessageInProcess) {
send_rights = 0;
ASSERT_EQ(KERN_SUCCESS, mach_port_get_refs(task, port, MACH_PORT_RIGHT_SEND,
&send_rights));
- // On 10.6, bootstrap_lookup2 may add an extra right to place it in a per-
- // process cache.
- if (base::mac::IsOSSnowLeopard())
- EXPECT_TRUE(send_rights == 3u || send_rights == 2u) << send_rights;
- else
- EXPECT_EQ(2u, send_rights);
+ EXPECT_EQ(2u, send_rights);
}
const char kDefaultRuleTestAllow[] =
« no previous file with comments | « remoting/host/desktop_resizer_mac.cc ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698