Commit 5deced75 authored by Avi Drissman's avatar Avi Drissman Committed by Commit Bot

Migrate to OS_MAC and OS_APPLE in sql

Bug: 1105907
Change-Id: Icecf8ad743a7431ae5cb3ec2cf1c8e88262b8eb1
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2324894
Auto-Submit: Avi Drissman <avi@chromium.org>
Reviewed-by: default avatarVictor Costan <pwnall@chromium.org>
Commit-Queue: Victor Costan <pwnall@chromium.org>
Cr-Commit-Position: refs/heads/master@{#792874}
parent eba91845
......@@ -19,7 +19,7 @@
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/sqlite/sqlite3.h"
#if defined(OS_MACOSX) && !defined(OS_IOS)
#if defined(OS_MAC)
#include "base/mac/mac_util.h"
#endif
......@@ -293,7 +293,7 @@ TEST_F(SQLiteFeaturesTest, CachedRegexp) {
EXPECT_EQ(7, s.ColumnInt(0));
}
#if defined(OS_MACOSX) && !defined(OS_IOS)
#if defined(OS_MAC)
// If a database file is marked to be excluded from Time Machine, verify that
// journal files are also excluded.
TEST_F(SQLiteFeaturesTest, TimeMachine) {
......
......@@ -17,7 +17,7 @@
#include "base/strings/string_piece.h"
#include "build/build_config.h"
#if defined(OS_MACOSX) && !defined(OS_IOS)
#if defined(OS_MAC)
#include "base/mac/mac_util.h"
#endif
......@@ -192,7 +192,7 @@ int Open(sqlite3_vfs* vfs, const char* file_name, sqlite3_file* wrapper_file,
// NOTE(shess): Any early exit from here needs to call xClose() on
// |wrapped_file|.
#if defined(OS_MACOSX) && !defined(OS_IOS)
#if defined(OS_MAC)
// When opening journal files, propagate time-machine exclusion from db.
static int kJournalFlags =
SQLITE_OPEN_MAIN_JOURNAL | SQLITE_OPEN_TEMP_JOURNAL |
......
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