Migrate to OS_MAC and OS_APPLE in rlz
Bug: 1105907 Change-Id: Ibe0ee8bb499bd257519ea4451c22630a9fed7765 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2325236 Reviewed-by: Roger Tawa <rogerta@chromium.org> Commit-Queue: Avi Drissman <avi@chromium.org> Cr-Commit-Position: refs/heads/master@{#793250}
This commit is contained in:
@ -573,7 +573,7 @@ TEST_F(RlzLibTest, SendFinancialPing) {
|
||||
return;
|
||||
|
||||
#if defined(RLZ_NETWORK_IMPLEMENTATION_CHROME_NET)
|
||||
#if defined(OS_MACOSX)
|
||||
#if defined(OS_APPLE)
|
||||
base::mac::ScopedNSAutoreleasePool pool;
|
||||
#endif
|
||||
|
||||
@ -624,7 +624,7 @@ TEST_F(RlzLibTest, SendFinancialPingDuringShutdown) {
|
||||
if (!rlz_lib::SupplementaryBranding::GetBrand().empty())
|
||||
return;
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
#if defined(OS_APPLE)
|
||||
base::mac::ScopedNSAutoreleasePool pool;
|
||||
#endif
|
||||
|
||||
|
@ -19,7 +19,7 @@
|
||||
#include "rlz/win/lib/lib_mutex.h"
|
||||
#endif
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
#if defined(OS_APPLE)
|
||||
#include "base/mac/scoped_nsautorelease_pool.h"
|
||||
#endif
|
||||
|
||||
@ -103,7 +103,7 @@ class ScopedRlzValueStoreLock {
|
||||
std::unique_ptr<RlzValueStore> store_;
|
||||
#if defined(OS_WIN)
|
||||
LibMutex lock_;
|
||||
#elif defined(OS_MACOSX)
|
||||
#elif defined(OS_APPLE)
|
||||
base::mac::ScopedNSAutoreleasePool autorelease_pool_;
|
||||
#endif
|
||||
};
|
||||
|
@ -130,7 +130,7 @@ void RlzLibTestNoMachineStateHelper::SetUp() {
|
||||
#if defined(OS_WIN)
|
||||
ASSERT_NO_FATAL_FAILURE(
|
||||
InitializeRegistryOverridesForTesting(&override_manager_));
|
||||
#elif defined(OS_MACOSX)
|
||||
#elif defined(OS_APPLE)
|
||||
base::mac::ScopedNSAutoreleasePool pool;
|
||||
#endif // defined(OS_WIN)
|
||||
#if defined(OS_POSIX)
|
||||
|
Reference in New Issue
Block a user