Commit 8c3ca5eb authored by Robert Sesek's avatar Robert Sesek Committed by Commit Bot

Fix content_unittests SandboxMacTest.BuiltinAvailable on pre-10.13.

Bug: 1114242, 1113952
Change-Id: Ie4ac3587177024f3c14bdca10515d5291063e1c7
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2342255Reviewed-by: default avatarDominique Fauteux-Chapleau <domfc@chromium.org>
Commit-Queue: Robert Sesek <rsesek@chromium.org>
Cr-Commit-Position: refs/heads/master@{#796043}
parent 9e3c4214
......@@ -10,6 +10,7 @@
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/files/scoped_file.h"
#include "base/mac/mac_util.h"
#include "base/mac/scoped_cftyperef.h"
#include "base/memory/ref_counted.h"
#include "base/posix/eintr_wrapper.h"
......@@ -265,10 +266,12 @@ MULTIPROCESS_TEST_MAIN(BuiltinAvailable) {
return 10;
}
if (__builtin_available(macOS 10.13, *)) {
// Can't negate a __builtin_available condition. But success!
} else {
return 13;
if (base::mac::IsAtLeastOS10_13()) {
if (__builtin_available(macOS 10.13, *)) {
// Can't negate a __builtin_available condition. But success!
} else {
return 13;
}
}
return 0;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment